public class DefaultProcessor extends Object implements MetadataProcessor, ServiceDocumentProcessor, ExceptionProcessor
| Constructor and Description |
|---|
DefaultProcessor() |
| Modifier and Type | Method and Description |
|---|---|
void |
init(OData odata,
Edm edm)
Initialize processor for each http request - response cycle.
|
void |
processException(ODataRequest request,
ODataResponse response,
ODataServerError serverError,
ContentType requestedContentType) |
void |
readMetadata(ODataRequest request,
ODataResponse response,
UriInfo uriInfo,
ContentType requestedContentType)
Read data from persistency and puts serialized content and status into the response.
|
void |
readServiceDocument(ODataRequest request,
ODataResponse response,
UriInfo uriInfo,
ContentType requestedContentType)
Read service document information from persistency and puts serialized content and status into the response.
|
public void init(OData odata, Edm edm)
Processorpublic void readServiceDocument(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType requestedContentType)
ServiceDocumentProcessorreadServiceDocument in interface ServiceDocumentProcessorrequest - - OData request object containing raw http information.response - - OData response object for collecting response datauriInfo - - information of a parsed OData urirequestedContentType - - requested content type after content negotiationpublic void readMetadata(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType requestedContentType)
MetadataProcessorreadMetadata in interface MetadataProcessorrequest - - OData request object containing raw http information.response - - OData response object for collecting response datauriInfo - - information of a parsed OData urirequestedContentType - - requested content type after content negotiationpublic void processException(ODataRequest request, ODataResponse response, ODataServerError serverError, ContentType requestedContentType)
processException in interface ExceptionProcessorCopyright © 2013–2014 The Apache Software Foundation. All rights reserved.