Class StaticFileRemapHandler

Remaps incoming requests targeted at VPP paths to the static file handler.

Inheritance
System.Object
StaticFileRemapHandler
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: EPiServer.Web
Assembly: EPiServer.Framework.dll
Version: 8.11.0
Syntax
[ServiceConfiguration(Lifecycle = ServiceInstanceScope.Singleton)]
public class StaticFileRemapHandler

Constructors

StaticFileRemapHandler()

Declaration
public StaticFileRemapHandler()

Methods

RegisterRemapPaths(IEnumerable<String>)

Adds virtual paths to the list of paths that are remapped to the static file handler.

Declaration
public void RegisterRemapPaths(IEnumerable<string> appRelativeVirtualPaths)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<System.String> appRelativeVirtualPaths

The virtual paths to remap.

ShouldRemapPath(String)

Checks if the specified path is registered to be remapped.

Declaration
public bool ShouldRemapPath(string path)
Parameters
Type Name Description
System.String path

The path to check against the list of registered paths.

Returns
Type Description
System.Boolean

UnregisterRemapPath(IEnumerable<String>)

Removes virtual paths from the list of paths that are remapped to the static file handler.

Declaration
public void UnregisterRemapPath(IEnumerable<string> appRelativeVirtualPaths)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<System.String> appRelativeVirtualPaths

The virtual paths to remap.