Search Results for

    Show / Hide Table of Contents

    Class MediaProxyHandler

    Proxy handler for the MediaService. Requires authentication

    Inheritance
    System.Object
    HttpHandlerBase
    RouteHandlerBase
    ImageVaultCoreProxy
    MediaProxyHandler
    AnonymousMediaProxyHandler
    PublishedMediaProxyHandler
    Implements
    System.Web.IHttpHandler
    System.Web.Routing.IRouteHandler
    Inherited Members
    ImageVaultCoreProxy.XForwardedUrlHeaderName
    ImageVaultCoreProxy.GetQuery(HttpContextBase)
    ImageVaultCoreProxy.GetRealUri(HttpContextBase)
    ImageVaultCoreProxy.PerformRealRequest(HttpContextBase, Uri, String, Boolean)
    ImageVaultCoreProxy.CopyResponseHeaders(IHttpWebResponse, HttpResponseBase)
    ImageVaultCoreProxy.CopyRequestHeaders(HttpRequestBase, IHttpWebRequest, Boolean)
    ImageVaultCoreProxy.HttpWebRequestFactory
    RouteHandlerBase.GetHttpHandler(RequestContext)
    RouteHandlerBase.CreateRoute()
    RouteHandlerBase.GetLocalPath(String)
    RouteHandlerBase.GetHandlerBaseUrl(String)
    RouteHandlerBase.HandlerPath
    HttpHandlerBase.Log
    HttpHandlerBase.SendInternalServerError(Exception, HttpContextBase)
    HttpHandlerBase.SendFileNotFoundResponse(HttpContextBase, String)
    HttpHandlerBase.SendAccessDeniedResponse(HttpContextBase)
    HttpHandlerBase.IsReusable
    HttpHandlerBase.DenyAnonymous
    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: 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
    ImageVaultCoreProxy.CopyRequestHeaders(String, String, IHttpWebRequest)

    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
    ImageVaultCoreProxy.CopyResponseHeader(String, String, HttpResponseBase)

    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
    ImageVaultCoreProxy.GetAuthorizationValue(HttpRequestBase, Boolean)
    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
    ImageVaultCoreProxy.GetCoreUrl(HttpContextBase)

    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
    HttpHandlerBase.IsAccessAllowed(HttpContextBase)

    ProcessRequest(HttpContextBase)

    Declaration
    public override void ProcessRequest(HttpContextBase context)
    Parameters
    Type Name Description
    System.Web.HttpContextBase context
    Overrides
    HttpHandlerBase.ProcessRequest(HttpContextBase)

    Implements

    System.Web.IHttpHandler
    System.Web.Routing.IRouteHandler

    Extension Methods

    EnumExtensions.GetNames<TEnum>(TEnum)
    In This Article
    Back to top (c) Meriworks 2002-2022