C# Class Pomona.PomonaJsonResponseProcessor

Inheritance: PomonaResponseProcessorBase
Datei anzeigen Open project: Pomona/Pomona

Public Methods

Method Description
CanProcess ( Nancy.Responses.Negotiation.MediaRange requestedMediaRange, dynamic model, Nancy.NancyContext context ) : Nancy.Responses.Negotiation.ProcessorMatch

Determines whether the the processor can handle a given content type and model

PomonaJsonResponseProcessor ( IRouteCacheProvider routeCacheProvider ) : System

Protected Methods

Method Description
GetSerializerFactory ( Nancy.NancyContext context ) : ITextSerializerFactory

Private Methods

Method Description
IsExactJsonContentType ( Nancy.Responses.Negotiation.MediaRange requestedContentType ) : bool
IsWildcardJsonContentType ( Nancy.Responses.Negotiation.MediaRange requestedContentType ) : bool

Method Details

CanProcess() public method

Determines whether the the processor can handle a given content type and model
public CanProcess ( Nancy.Responses.Negotiation.MediaRange requestedMediaRange, dynamic model, Nancy.NancyContext context ) : Nancy.Responses.Negotiation.ProcessorMatch
requestedMediaRange Nancy.Responses.Negotiation.MediaRange Content type requested by the client
model dynamic The model for the given media range
context Nancy.NancyContext The nancy context
return Nancy.Responses.Negotiation.ProcessorMatch

GetSerializerFactory() protected method

protected GetSerializerFactory ( Nancy.NancyContext context ) : ITextSerializerFactory
context Nancy.NancyContext
return ITextSerializerFactory

PomonaJsonResponseProcessor() public method

public PomonaJsonResponseProcessor ( IRouteCacheProvider routeCacheProvider ) : System
routeCacheProvider IRouteCacheProvider
return System