C# Class ServiceStack.WebHost.Endpoints.Support.EndpointHandlerBase

Inheritance: IServiceStackHttpHandler, IHttpHandler
Mostrar archivo Open project: firstsee/ServiceStack

Public Methods

Method Description
CreateRequest ( IHttpRequest request, string operationName ) : object
GetContentFilters ( ) : IContentTypeFilter
GetEndpointAttributes ( IHttpRequest request ) : EndpointAttributes
GetEndpointAttributes ( System operationContext ) : EndpointAttributes
GetIpAddress ( System context ) : IPAddress
GetOperationType ( string operationName ) : Type
GetResponse ( IHttpRequest httpReq, object request ) : object
ProcessRequest ( HttpContext context ) : void
ProcessRequest ( HttpListenerContext context ) : void
ProcessRequest ( IHttpRequest httpReq, IHttpResponse httpRes, string operationName ) : void

Protected Methods

Method Description
AssertOperationExists ( string operationName, Type type ) : void
DefaultHandledRequest ( HttpContext context ) : bool
DefaultHandledRequest ( HttpListenerContext context ) : bool
DeserializeContentType ( Type operationType, IHttpRequest httpReq, string contentType ) : object
ExecuteService ( object request, EndpointAttributes endpointAttributes, IHttpRequest httpReq ) : object

Private Methods

Method Description
EndpointHandlerBase ( ) : System
GetIpAddressEndpointAttributes ( IPAddress ipAddress ) : EndpointAttributes
IsInLocalSubnet ( IPAddress ipAddress ) : bool

Method Details

AssertOperationExists() protected static method

protected static AssertOperationExists ( string operationName, Type type ) : void
operationName string
type System.Type
return void

CreateRequest() public abstract method

public abstract CreateRequest ( IHttpRequest request, string operationName ) : object
request IHttpRequest
operationName string
return object

DefaultHandledRequest() protected static method

protected static DefaultHandledRequest ( HttpContext context ) : bool
context System.Web.HttpContext
return bool

DefaultHandledRequest() protected static method

protected static DefaultHandledRequest ( HttpListenerContext context ) : bool
context System.Net.HttpListenerContext
return bool

DeserializeContentType() protected method

protected DeserializeContentType ( Type operationType, IHttpRequest httpReq, string contentType ) : object
operationType System.Type
httpReq IHttpRequest
contentType string
return object

ExecuteService() protected static method

protected static ExecuteService ( object request, EndpointAttributes endpointAttributes, IHttpRequest httpReq ) : object
request object
endpointAttributes EndpointAttributes
httpReq IHttpRequest
return object

GetContentFilters() public method

public GetContentFilters ( ) : IContentTypeFilter
return IContentTypeFilter

GetEndpointAttributes() public method

public GetEndpointAttributes ( IHttpRequest request ) : EndpointAttributes
request IHttpRequest
return EndpointAttributes

GetEndpointAttributes() public method

public GetEndpointAttributes ( System operationContext ) : EndpointAttributes
operationContext System
return EndpointAttributes

GetIpAddress() public static method

public static GetIpAddress ( System context ) : IPAddress
context System
return System.Net.IPAddress

GetOperationType() public static method

public static GetOperationType ( string operationName ) : Type
operationName string
return System.Type

GetResponse() public abstract method

public abstract GetResponse ( IHttpRequest httpReq, object request ) : object
httpReq IHttpRequest
request object
return object

ProcessRequest() public method

public ProcessRequest ( HttpContext context ) : void
context System.Web.HttpContext
return void

ProcessRequest() public method

public ProcessRequest ( HttpListenerContext context ) : void
context System.Net.HttpListenerContext
return void

ProcessRequest() public method

public ProcessRequest ( IHttpRequest httpReq, IHttpResponse httpRes, string operationName ) : void
httpReq IHttpRequest
httpRes IHttpResponse
operationName string
return void