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
Afficher le fichier Open project: openrasta/openrasta-core

Méthodes publiques

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

Private Methods

Méthode Description
ChangePath ( Uri uri, Func getPath ) : Uri

Method Details

Apply() public méthode

public Apply ( ) : void
Résultat void

ContentTypeExtensionUriDecorator() public méthode

public ContentTypeExtensionUriDecorator ( ICommunicationContext context, IUriResolver uris, ICodecRepository codecs, ITypeSystem typeSystem ) : System
context ICommunicationContext
uris IUriResolver
codecs ICodecRepository
typeSystem ITypeSystem
Résultat System

Parse() public méthode

public Parse ( Uri uri, Uri &processedUri ) : bool
uri Uri
processedUri Uri
Résultat bool