C# Class OpenRasta.Web.UriDecorators.ContentTypeExtensionUriDecorator

Decorates a uri with an extension, similar to a file system extension, to override content-type negotiation.
The extension is always processed at the end of the uri, and separated by a dot. The matching is done per-resource, based on the extension declared for the codec associated with a resource.
Inheritance: IUriDecorator
Mostrar archivo Open project: openrasta/openrasta-core

Public Methods

Method Description
Apply ( ) : void
ContentTypeExtensionUriDecorator ( ICommunicationContext context, IUriResolver uris, ICodecRepository codecs, ITypeSystem typeSystem ) : System
Parse ( Uri uri, Uri &processedUri ) : bool

Private Methods

Method Description
ChangePath ( Uri uri, Func getPath ) : Uri

Method Details

Apply() public method

public Apply ( ) : void
return void

ContentTypeExtensionUriDecorator() public method

public ContentTypeExtensionUriDecorator ( ICommunicationContext context, IUriResolver uris, ICodecRepository codecs, ITypeSystem typeSystem ) : System
context ICommunicationContext
uris IUriResolver
codecs ICodecRepository
typeSystem ITypeSystem
return System

Parse() public method

public Parse ( Uri uri, Uri &processedUri ) : bool
uri Uri
processedUri Uri
return bool