C# Класс Pretzel.FileContentProvider

Наследование: IWebContent
Показать файл Открыть проект

Открытые методы

Метод Описание
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