Class MediaProxyHandler
Proxy handler for the MediaService. Requires authentication
Inheritance
Implements
Inherited Members
Namespace: ImageVault.Client.Web
Assembly: ImageVault.Client.dll
Syntax
public class MediaProxyHandler : ImageVaultCoreProxy
Constructors
MediaProxyHandler()
Default constructor will use media as path
Declaration
public MediaProxyHandler()
MediaProxyHandler(String)
Initializes a new instance of the MediaProxyHandler class.
Declaration
public MediaProxyHandler(string path)
Parameters
Type | Name | Description |
---|---|---|
System.String | path |
Methods
CopyRequestHeaders(String, String, IHttpWebRequest)
If special handling using request header copying should occur, this method can be implemented
Declaration
protected override bool CopyRequestHeaders(string name, string value, IHttpWebRequest dest)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The request header name to copy |
System.String | value | The request header value to copy |
IHttpWebRequest | dest | The destination request to copy (or not) the header to |
Returns
Type | Description |
---|---|
System.Boolean | True if copy was handled, false if copy wasn't handled and normal copy rules should occur. |
Overrides
CopyResponseHeader(String, String, HttpResponseBase)
Declaration
protected override bool CopyResponseHeader(string name, string value, HttpResponseBase dest)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | |
System.String | value | |
System.Web.HttpResponseBase | dest |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
GetAuthorizationValue(HttpRequestBase, Boolean)
Retrieves the authorization value for the Authorization header for the real request.
Declaration
protected override string GetAuthorizationValue(HttpRequestBase request, bool forceNewAuthToken)
Parameters
Type | Name | Description |
---|---|---|
System.Web.HttpRequestBase | request | |
System.Boolean | forceNewAuthToken | If a new token should be forced |
Returns
Type | Description |
---|---|
System.String |
Overrides
Remarks
Default behaviour will use the current logged in user and get an auth token from the core server
GetCoreUrl(HttpContextBase)
Gets the core url where the real request should be headed.
Declaration
protected override string GetCoreUrl(HttpContextBase context)
Parameters
Type | Name | Description |
---|---|---|
System.Web.HttpContextBase | context |
Returns
Type | Description |
---|---|
System.String |
Overrides
IsAccessAllowed(HttpContextBase)
Determines if the current request is allowed access
Declaration
protected override bool IsAccessAllowed(HttpContextBase context)
Parameters
Type | Name | Description |
---|---|---|
System.Web.HttpContextBase | context |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
ProcessRequest(HttpContextBase)
Declaration
public override void ProcessRequest(HttpContextBase context)
Parameters
Type | Name | Description |
---|---|---|
System.Web.HttpContextBase | context |