Class FileHandler
HTTP handler that returns the content of the stored file through a HTTP GET request. The requests must be formated like: {handler name and extension}?fileKey={file key}.
Inheritance
System.Object
FileHandler
Implements
System.Web.IHttpHandler
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Nevatech.Vsb.Repository.Services
Assembly: Nevatech.Vsb.Repository.dll
Syntax
public sealed class FileHandler : IHttpHandler
Constructors
FileHandler()
Declaration
public FileHandler()
Properties
IsReusable
Gets True indicating that this instance can be reused (singleton).
Declaration
public bool IsReusable { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
GetContentType(String)
Returns MIME content type corresponding to the file extension.
Declaration
public static string GetContentType(string fileName)
Parameters
Type | Name | Description |
---|---|---|
System.String | fileName | File name which content type needs to be returned. |
Returns
Type | Description |
---|---|
System.String | MIME content type corresponding to the file extension. |
ProcessRequest(HttpContext)
Process HTTP request and responses recorded message content corresponding to provided identifier.
Declaration
public void ProcessRequest(HttpContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Web.HttpContext | context | An object encapsulating all HTTP-specific information about the request. |
ProcessRequest(HttpContextBase)
Process HTTP request and responses recorded message content corresponding to provided identifier.
Declaration
public static void ProcessRequest(HttpContextBase context)
Parameters
Type | Name | Description |
---|---|---|
System.Web.HttpContextBase | context | An object encapsulating all HTTP-specific information about the request. |
Implements
System.Web.IHttpHandler