Метод | Описание | |
---|---|---|
BaseHttpHandler ( ) : System |
Creates a new BaseHttpHandler instance.
|
|
HandleRequest ( System.Web.HttpContextBase context ) : void |
Handles the request. This is where you put your business logic. This method should result in a call to one (or more) of the following methods:
etc... If you want a download box to show up with a pre-populated filename, add this call here (supplying a real filename).
Response.AddHeader("Content-Disposition" , "attachment; filename=\"" + Filename + "\""); |
|
ProcessRequest ( |
Processs the incoming HTTP request.
|
|
SetResponseCachePolicy ( HttpCachePolicyBase cache ) : void |
Sets the cache policy. Unless a handler overrides this method, handlers will not allow a respons to be cached.
|
|
ValidateParameters ( HttpContextBase context ) : bool |
Validates the parameters. Inheriting classes must implement this and return true if the parameters are valid, otherwise false.
|
Метод | Описание | |
---|---|---|
Init ( System.Web.HttpContextBase context ) : void |
Code which is necessary to initialize this instance.
|
|
RespondFileNotFound ( HttpContextBase context ) : void |
Helper method used to Respond to the request that the file was not found.
|
|
RespondForbidden ( HttpContextBase context ) : void |
Helper method used to Respond to the request that the request in attempting to access a resource that the user does not have access to.
|
|
RespondInternalError ( HttpContextBase context ) : void |
Helper method used to Respond to the request that an error occurred in processing the request.
|
public abstract HandleRequest ( System.Web.HttpContextBase context ) : void | ||
context | System.Web.HttpContextBase | Context. |
Результат | void |
protected abstract Init ( System.Web.HttpContextBase context ) : void | ||
context | System.Web.HttpContextBase | |
Результат | void |
public ProcessRequest ( |
||
context | Context. | |
Результат | void |
protected RespondFileNotFound ( HttpContextBase context ) : void | ||
context | HttpContextBase | Context. |
Результат | void |
protected RespondForbidden ( HttpContextBase context ) : void | ||
context | HttpContextBase | Context. |
Результат | void |
protected RespondInternalError ( HttpContextBase context ) : void | ||
context | HttpContextBase | Context. |
Результат | void |
public SetResponseCachePolicy ( HttpCachePolicyBase cache ) : void | ||
cache | HttpCachePolicyBase | Cache. |
Результат | void |
public abstract ValidateParameters ( HttpContextBase context ) : bool | ||
context | HttpContextBase | Context. |
Результат | bool |