C# Class Pretzel.FileContentProvider

Inheritance: IWebContent
Afficher le fichier Open project: Code52/pretzel

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
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

Method Details

GetBinaryContent() public méthode

Read file
public GetBinaryContent ( string request ) : byte[]
request string Request string
Résultat byte[]

GetContent() public méthode

Read file
public GetContent ( string request ) : string
request string Request string
Résultat string

IsAvailable() public méthode

Check if file is found
public IsAvailable ( string request ) : bool
request string Request string
Résultat bool

IsDirectory() public méthode

Checks if request points to a directory
public IsDirectory ( string request ) : bool
request string
Résultat bool

SetBasePath() public méthode

Set a base path to work from
public SetBasePath ( string path ) : void
path string Base path
Résultat void