C# 클래스 ModServer.HttpEngine

상속: HelperClass
파일 보기 프로젝트 열기: tyandjel94/RowanParkingPassApp

공개 프로퍼티들

프로퍼티 타입 설명
PAGE_NOT_FOUND String
PAGE_ROOT String
PAGE_SIGN_IN String
pageMutations string>.Dictionary

공개 메소드들

메소드 설명
HttpEngine ( Stream networkStream, TcpClient client ) : System
addPageMutation ( string placeholder, string replacement ) : bool
process ( String strmessage, byte message ) : void

보호된 메소드들

메소드 설명
on404 ( HttpRequest request ) : void
onInit ( HttpRequest request ) : String
processGet ( HttpRequest request ) : bool

This method checks that the request path exists in the PAGE_ROOT directory. Then the content-type is parsed from the request. An HttpRequest is generated and sent, followed by the file specified. Call this method conditionally from any subclass unless there are no conditions as to what clients are permitted to GET.

processHead ( HttpRequest request ) : bool
processPost ( HttpRequest request ) : void
writeHtmlStream ( Stream s, HttpResponse response ) : void
writeStream ( Stream s, HttpResponse response ) : void

메소드 상세

HttpEngine() 공개 메소드

public HttpEngine ( Stream networkStream, TcpClient client ) : System
networkStream Stream
client System.Net.Sockets.TcpClient
리턴 System

addPageMutation() 공개 정적인 메소드

public static addPageMutation ( string placeholder, string replacement ) : bool
placeholder string
replacement string
리턴 bool

on404() 보호된 추상적인 메소드

protected abstract on404 ( HttpRequest request ) : void
request HttpRequest
리턴 void

onInit() 보호된 추상적인 메소드

protected abstract onInit ( HttpRequest request ) : String
request HttpRequest
리턴 String

process() 공개 메소드

public process ( String strmessage, byte message ) : void
strmessage String
message byte
리턴 void

processGet() 보호된 메소드

This method checks that the request path exists in the PAGE_ROOT directory. Then the content-type is parsed from the request. An HttpRequest is generated and sent, followed by the file specified. Call this method conditionally from any subclass unless there are no conditions as to what clients are permitted to GET.
protected processGet ( HttpRequest request ) : bool
request HttpRequest
리턴 bool

processHead() 보호된 메소드

protected processHead ( HttpRequest request ) : bool
request HttpRequest
리턴 bool

processPost() 보호된 메소드

protected processPost ( HttpRequest request ) : void
request HttpRequest
리턴 void

writeHtmlStream() 보호된 메소드

protected writeHtmlStream ( Stream s, HttpResponse response ) : void
s Stream
response HttpResponse
리턴 void

writeStream() 보호된 메소드

protected writeStream ( Stream s, HttpResponse response ) : void
s Stream
response HttpResponse
리턴 void

프로퍼티 상세

PAGE_NOT_FOUND 공개적으로 정적으로 프로퍼티

public static String PAGE_NOT_FOUND
리턴 String

PAGE_ROOT 공개적으로 정적으로 프로퍼티

public static String PAGE_ROOT
리턴 String

PAGE_SIGN_IN 공개적으로 정적으로 프로퍼티

public static String PAGE_SIGN_IN
리턴 String

pageMutations 공개적으로 정적으로 프로퍼티

public static Dictionary pageMutations
리턴 string>.Dictionary