C# 클래스 Pomona.PomonaResponseProcessorBase

Default response processor base class for Pomona.
상속: IResponseProcessor
파일 보기 프로젝트 열기: Pomona/Pomona

공개 메소드들

메소드 설명
CanProcess ( Nancy.Responses.Negotiation.MediaRange requestedMediaRange, dynamic model, Nancy.NancyContext context ) : Nancy.Responses.Negotiation.ProcessorMatch

Determines whether this instance can process the specified requested media range.

Process ( Nancy.Responses.Negotiation.MediaRange requestedMediaRange, dynamic model, Nancy.NancyContext context ) : Response

Process the response

보호된 메소드들

메소드 설명
GetSerializerFactory ( Nancy.NancyContext context ) : ITextSerializerFactory
IsTextHtmlContentType ( Nancy.Responses.Negotiation.MediaRange requestedMediaRange ) : bool
PomonaResponseProcessorBase ( IRouteCacheProvider routeCacheProvider ) : System

Initializes a new instance of the PomonaResponseProcessorBase class.

비공개 메소드들

메소드 설명
GetHtmlLinks ( Nancy.NancyContext context ) : string
GetSerializer ( Nancy.NancyContext context ) : ITextSerializer

메소드 상세

CanProcess() 공개 추상적인 메소드

Determines whether this instance can process the specified requested media range.
public abstract CanProcess ( Nancy.Responses.Negotiation.MediaRange requestedMediaRange, dynamic model, Nancy.NancyContext context ) : Nancy.Responses.Negotiation.ProcessorMatch
requestedMediaRange Nancy.Responses.Negotiation.MediaRange The requested media range.
model dynamic The model.
context Nancy.NancyContext The context.
리턴 Nancy.Responses.Negotiation.ProcessorMatch

GetSerializerFactory() 보호된 추상적인 메소드

protected abstract GetSerializerFactory ( Nancy.NancyContext context ) : ITextSerializerFactory
context Nancy.NancyContext
리턴 ITextSerializerFactory

IsTextHtmlContentType() 보호된 메소드

protected IsTextHtmlContentType ( Nancy.Responses.Negotiation.MediaRange requestedMediaRange ) : bool
requestedMediaRange Nancy.Responses.Negotiation.MediaRange
리턴 bool

PomonaResponseProcessorBase() 보호된 메소드

Initializes a new instance of the PomonaResponseProcessorBase class.
routeCacheProvider
protected PomonaResponseProcessorBase ( IRouteCacheProvider routeCacheProvider ) : System
routeCacheProvider IRouteCacheProvider The route cache provider.
리턴 System

Process() 공개 메소드

Process the response
public Process ( Nancy.Responses.Negotiation.MediaRange requestedMediaRange, dynamic model, Nancy.NancyContext context ) : Response
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
리턴 Nancy.Response