Click or drag to resize
GetFileHandler Class
Base class for GetFile handlers. Handles client caching and range requests.
Inheritance Hierarchy

Namespace: CMS.Routing.Web
Assembly: CMS.Routing.Web (in CMS.Routing.Web.dll) Version: 12.0.0
Syntax
C#
public abstract class GetFileHandler : IHttpHandler

The GetFileHandler type exposes the following members.

Constructors
  NameDescription
Protected methodGetFileHandler
Top
Properties
  NameDescription
Protected propertyAllowClientCache
Returns true if client cache is allowed for the current request.
Protected propertyClientCacheMinutes
Client cache minutes.
Protected propertyContext
Current HTTP context.
Protected propertyIsLiveSite
Indicates if live site mode.
Public propertyIsReusable
Indicates if handler is reusable.
Protected propertyResponse
Current HTTP response.
Protected propertyRevalidateClientCache
Indicates if client cache should be revalidated.
Protected propertySender
Instance of the sender object that is used for writing data to the response.
Top
Methods
  NameDescription
Protected methodCompleteRequest
Completes the request.
Protected methodFileNotFound
Responds HTTP code 404 Not Found.
Protected methodHandleClientCache
Sets client cache headers. Responds HTTP code 304 Not Modified and returns true when requested file is in client's cache.
Public methodProcessRequest
Process the request.
Protected methodProcessRequestInternal
Process the request.
Protected methodRespondNotModified
Responds HTTP code 304 Not Modified.
Protected methodSetResponseHeaders
Sets response headers.
Protected methodWriteBytes
Streams the byte array to the response.
Top
See Also