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)
Processor
public void readServiceDocument(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType requestedContentType)
ServiceDocumentProcessor
readServiceDocument
in interface ServiceDocumentProcessor
request
- - 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)
MetadataProcessor
readMetadata
in interface MetadataProcessor
request
- - 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 ExceptionProcessor
Copyright © 2013–2014 The Apache Software Foundation. All rights reserved.