public abstract class TechnicalProcessor extends Object implements Processor
Modifier and Type | Field and Description |
---|---|
protected DataProvider |
dataProvider |
protected OData |
odata |
protected ServiceMetadata |
serviceMetadata |
Modifier | Constructor and Description |
---|---|
protected |
TechnicalProcessor(DataProvider dataProvider) |
protected |
TechnicalProcessor(DataProvider dataProvider,
ServiceMetadata serviceMetadata) |
Modifier and Type | Method and Description |
---|---|
protected void |
blockBoundActions(UriInfo uriInfo) |
protected void |
checkRequestFormat(ContentType requestFormat) |
protected EdmEntitySet |
getEdmEntitySet(UriInfoResource uriInfo) |
protected UriResourceNavigation |
getLastNavigation(UriInfoResource uriInfo) |
void |
init(OData odata,
ServiceMetadata serviceMetadata)
Initializes the processor for each HTTP request - response cycle.
|
protected boolean |
isODataMetadataNone(ContentType contentType) |
protected Entity |
readEntity(UriInfoResource uriInfo)
Reads an entity as specified in the resource path, including navigation.
|
protected Entity |
readEntity(UriInfoResource uriInfo,
boolean ignoreLastNavigation)
If ignoreLastNavigation is set to false see
readEntity(UriInfoResource)
otherwise returns the second last entity (Ignores the last navigation)
If no such entity exists throws an ODataApplicationException |
protected EntityCollection |
readEntityCollection(UriInfoResource uriInfo) |
protected void |
validateOptions(UriInfoResource uriInfo) |
protected final DataProvider dataProvider
protected OData odata
protected ServiceMetadata serviceMetadata
protected TechnicalProcessor(DataProvider dataProvider)
protected TechnicalProcessor(DataProvider dataProvider, ServiceMetadata serviceMetadata)
public void init(OData odata, ServiceMetadata serviceMetadata)
Processor
protected EdmEntitySet getEdmEntitySet(UriInfoResource uriInfo) throws ODataApplicationException
ODataApplicationException
protected Entity readEntity(UriInfoResource uriInfo) throws ODataApplicationException
ODataApplicationException
protected Entity readEntity(UriInfoResource uriInfo, boolean ignoreLastNavigation) throws ODataApplicationException
readEntity(UriInfoResource)
otherwise returns the second last entity (Ignores the last navigation)
If no such entity exists throws an ODataApplicationExceptionODataApplicationException
protected EntityCollection readEntityCollection(UriInfoResource uriInfo) throws ODataApplicationException
ODataApplicationException
protected UriResourceNavigation getLastNavigation(UriInfoResource uriInfo)
protected void validateOptions(UriInfoResource uriInfo) throws ODataApplicationException
ODataApplicationException
protected void blockBoundActions(UriInfo uriInfo) throws ODataApplicationException
ODataApplicationException
protected void checkRequestFormat(ContentType requestFormat) throws ODataApplicationException
ODataApplicationException
protected boolean isODataMetadataNone(ContentType contentType)
Copyright © 2013–2015 The Apache Software Foundation. All rights reserved.