C# 클래스 Pretzel.FileContentProvider

상속: IWebContent
파일 보기 프로젝트 열기: Code52/pretzel

공개 메소드들

메소드 설명
GetBinaryContent ( string request ) : byte[]

Read file

GetContent ( string request ) : string

Read file

IsAvailable ( string request ) : bool

Check if file is found

IsDirectory ( string request ) : bool

Checks if request points to a directory

SetBasePath ( string path ) : void

Set a base path to work from

비공개 메소드들

메소드 설명
GetFullPath ( string request ) : string

Combines and unescapes the path for the request

GetRequestedPage ( string request ) : string

Get the path for the page to send to the user

메소드 상세

GetBinaryContent() 공개 메소드

Read file
public GetBinaryContent ( string request ) : byte[]
request string Request string
리턴 byte[]

GetContent() 공개 메소드

Read file
public GetContent ( string request ) : string
request string Request string
리턴 string

IsAvailable() 공개 메소드

Check if file is found
public IsAvailable ( string request ) : bool
request string Request string
리턴 bool

IsDirectory() 공개 메소드

Checks if request points to a directory
public IsDirectory ( string request ) : bool
request string
리턴 bool

SetBasePath() 공개 메소드

Set a base path to work from
public SetBasePath ( string path ) : void
path string Base path
리턴 void