| AdvancedGetFileHandler Class | 
 Inheritance Hierarchy
Inheritance HierarchyNamespace: CMS.Routing.Web
 Syntax
Syntaxpublic abstract class AdvancedGetFileHandler : IHttpHandler, IReadOnlySessionState, IRequiresSessionState
The AdvancedGetFileHandler type exposes the following members.
 Constructors
Constructors| Name | Description | |
|---|---|---|
|  | AdvancedGetFileHandler | 
 Fields
Fields| Name | Description | |
|---|---|---|
|  | deviceResizeIsUsed | 
            Indicates if max resize for mobile device is used.
             | 
|  | mAllowCache | 
            If true, the caching is allowed.
             | 
|  | mCacheMinutes | 
            Cache minutes
             | 
|  | mClientCacheMinutes | 
            Client cache minutes
             | 
|  | mCompleted | 
            Indicates whether request is completed
             | 
|  | mHeight | 
            Height
             | 
|  | mMaxSideSize | 
            Max. side size
             | 
|  | mResizeToDevice | 
            Indicates whether resizing should be used for device
             | 
|  | mRevalidateClientCache | 
            Indicates whether client cache should be revalidated
             | 
|  | mWidth | 
            Width
             | 
|  | useCacheItemName | 
            Cache item name for the request.
             | 
 Properties
Properties| Name | Description | |
|---|---|---|
|  | AcceptRange | 
            Indicates if resumable downloads should be supported for current file.
             | 
|   | AcceptRanges | 
            Indicates whether range requests are enabled (ex. for resumable downloads). If false, the HTTP Handler
            ignores the Range HTTP Header and returns the entire contents.
             | 
|  | AllowCache | 
            Returns true if the process allows cache.
             | 
|  | AllowClientCache | 
            Returns true if client cache is allowed for the current request.
             | 
|  | AreRangesValid | 
            Indicates whether ranges are valid.
            TRUE: ranges are valid or request is not range request
            FALSE: all other cases
             | 
|  | CacheItemName | 
            Cache item name for current request.
             | 
|  | CacheMinutes | 
            Cache minutes.
             | 
|  | ClientCacheMinutes | 
            Cache minutes.
             | 
|  | Context | 
            Returns the current context
             | 
|  | CurrentSite | 
            Current site.
             | 
|  | CurrentSiteName | 
            Current site name.
             | 
|  | CurrentUser | 
            Current User.
             | 
|  | DataLength | 
            Size of data.
             | 
|  | ETag | 
            HTTP header entity tag.
             | 
|   | ExcludedResumableExtensions | 
            List of file extensions for which the resumable downloads are disabled.
             | 
|   | GetFileEndRequest | 
            When true, the request is completed, when false, the Request.End is called.
             | 
|  | Height | 
            Image height.
             | 
|  | IsLiveSite | 
            Indicates if live site mode.
             | 
|  | IsMultipart | 
            Indicates whether it is multipart range request.
             | 
|  | IsRangeRequest | 
            Indicates whether it is range request.
             | 
|  | IsReusable | 
            Indicates if handler is reusable.
             | 
|  | LogCommunicationExceptions | 
            Whether to log exception caused by communication problems (e.g. when remote host closes the connection).
            Log exceptions has to be set to TRUE.
             | 
|  | LogExceptions | 
            Logs the exceptions caused by the process.
             | 
|  | MaxSideSize | 
            Image maximum side size.
             | 
|  | OutputDataCacheItemName | 
            Cache item name for the file output data.
             | 
|   | RangeRegExp | 
            The range from HTTP header regular expression.
             | 
|  | Ranges | 
            2D Array in format {{START_RANGE,END_RANGE},{START_RANGE, END_RANGE}}.
             | 
|  | ResizeToDevice | 
            Indicates if max side size parameter should be changes to device profile dimensions.
             | 
|  | Response | 
            Returns the current response
             | 
|  | RevalidateClientCache | 
            Cache minutes.
             | 
|  | Sender | 
            Gets or sets sender object that is used for writing data to the response.
             | 
|  | Watermark | 
            If set, watermark image is applied to the image. Name of the watermark image from ~/App_Themes/{theme}/Images/Watermarks
             | 
|  | WatermarkPosition | 
            Watermark position.
             | 
|  | Width | 
            Image width.
             | 
 Methods
Methods| Name | Description | |
|---|---|---|
|  | CompleteRequest | 
            Completes the request.
             | 
|  | ETagsMatch | 
            Responds with 304 Not Modified if ETags match and object has current timestamp.
             | 
|  | GetBaseCacheKey | 
            Returns the base cache key (created with all parameters considered to be valid for proper caching).
             | 
|  | GetCacheDependency | 
            Creates the cache dependency from the given keys.
             | 
|  | GetCachedOutputData | 
            Gets the cached data for the current request.
             | 
|  | GetRange | 
            Parses the range header from the request.
             | 
|  | HandleDeviceDimension | 
            Handles max side size according to device profile dimensions.
             | 
|  | HandleDeviceResize | 
            Changes MaxSideSize to device dimensions if device resizing is enabled.
             | 
|  | IsExtensionExcludedFromRanges | 
            Indicates if file with given extension is excluded from resumable downloads.
             | 
|  | LoadSiteName | 
            Loads the site name from the query string.
             | 
|  | ProcessRequest | 
            Processes the handler request
             | 
|  | ProcessRequestInternal | 
            Processes the handler request
             | 
|  | RespondNotModified | 
            Responds with the not modified code.
             | 
|  | SaveOutputDataToCache | 
            Saves the data for current request to cache.
             | 
|  | SetCacheability | 
            Sets the cache-ability with dependence on connection type
            IE browser doesn't support No-Cache if current connection is secured
             | 
|  | SetDisposition | 
            Sets response header according to file type.
             | 
|  | SetResponseContentType | 
            Sets content type of the response based on file MIME type
             | 
|  | SetRevalidation | 
            Sets the revalidation of the client caches.
             | 
|  | SetTimeStamps | 
            Sets the last modified and expires header to the response
             | 
|  | WriteBytes | 
            Streams the byte array to the response.
             | 
|  | WriteFile | 
            Streams the data file to the response.
             | 
 See Also
See Also