public class TechnicalPrimitiveComplexProcessor extends TechnicalProcessor implements PrimitiveProcessor, PrimitiveValueProcessor, PrimitiveCollectionProcessor, CountPrimitiveCollectionProcessor, ComplexProcessor, ComplexCollectionProcessor, CountComplexCollectionProcessor
dataProvider, odata, serviceMetadata| Constructor and Description |
|---|
TechnicalPrimitiveComplexProcessor(DataProvider dataProvider,
ServiceMetadata serviceMetadata) |
| Modifier and Type | Method and Description |
|---|---|
void |
countComplexCollection(ODataRequest request,
ODataResponse response,
UriInfo uriInfo)
Counts complex properties from persistence and puts serialized content and status into the response.
|
void |
countPrimitiveCollection(ODataRequest request,
ODataResponse response,
UriInfo uriInfo)
Counts primitive properties from persistence and puts serialized content and status into the response.
|
void |
deleteComplex(ODataRequest request,
ODataResponse response,
UriInfo uriInfo)
Deletes complex-type value from an entity and puts the status into the response.
|
void |
deleteComplexCollection(ODataRequest request,
ODataResponse response,
UriInfo uriInfo)
Deletes complex-type collection from an entity and puts the status into the response.
|
void |
deletePrimitive(ODataRequest request,
ODataResponse response,
UriInfo uriInfo)
Deletes primitive-type value from an entity and puts the status into the response.
|
void |
deletePrimitiveCollection(ODataRequest request,
ODataResponse response,
UriInfo uriInfo)
Deletes primitive-type collection from an entity and puts the status into the response.
|
void |
deletePrimitiveValue(ODataRequest request,
ODataResponse response,
UriInfo uriInfo)
Deletes primitive-type raw value from an entity and puts the status into the response.
|
void |
readComplex(ODataRequest request,
ODataResponse response,
UriInfo uriInfo,
ContentType contentType)
Reads complex-type instance.
|
void |
readComplexCollection(ODataRequest request,
ODataResponse response,
UriInfo uriInfo,
ContentType contentType)
Reads complex-type collection.
|
void |
readPrimitive(ODataRequest request,
ODataResponse response,
UriInfo uriInfo,
ContentType contentType)
Reads primitive-type instance.
|
void |
readPrimitiveCollection(ODataRequest request,
ODataResponse response,
UriInfo uriInfo,
ContentType contentType)
Reads primitive-type collection.
|
void |
readPrimitiveValue(ODataRequest request,
ODataResponse response,
UriInfo uriInfo,
ContentType contentType)
Reads raw value of a primitive-type instance, e.g., of a primitive property of an entity.
|
void |
updateComplex(ODataRequest request,
ODataResponse response,
UriInfo uriInfo,
ContentType requestFormat,
ContentType responseFormat)
Update complex-type instance with send data in the persistence and
puts content, status, and Location into the response.
|
void |
updateComplexCollection(ODataRequest request,
ODataResponse response,
UriInfo uriInfo,
ContentType requestFormat,
ContentType responseFormat)
Update (replace) complex-type collection with send data in the persistence and
puts content, status, and Location into the response.
|
void |
updatePrimitive(ODataRequest request,
ODataResponse response,
UriInfo uriInfo,
ContentType requestFormat,
ContentType responseFormat)
Update primitive-type instance with send data in the persistence and
puts content, status, and Location into the response.
|
void |
updatePrimitiveCollection(ODataRequest request,
ODataResponse response,
UriInfo uriInfo,
ContentType requestFormat,
ContentType responseFormat)
Update (replace) primitive-type collection with send data in the persistence and
puts content, status, and Location into the response.
|
void |
updatePrimitiveValue(ODataRequest request,
ODataResponse response,
UriInfo uriInfo,
ContentType requestFormat,
ContentType responseFormat)
Update primitive-type instance with sent raw data in the persistence and
puts content, status, and Location into the response.
|
blockBoundActions, checkRequestFormat, getEdmEntitySet, getLastNavigation, init, isODataMetadataNone, readEntity, readEntity, readEntityCollection, validateOptionspublic TechnicalPrimitiveComplexProcessor(DataProvider dataProvider, ServiceMetadata serviceMetadata)
public void readPrimitive(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType contentType) throws ODataApplicationException, ODataLibraryException
PrimitiveProcessornull, the service responds with 204 No Content.
If it is not available, for example due to permissions, the service responds with 404 Not Found.readPrimitive in interface PrimitiveProcessorrequest - OData request object containing raw HTTP informationresponse - OData response object for collecting response datauriInfo - information of a parsed OData URIcontentType - requested content type after content negotiationODataApplicationException - if the service implementation encounters a failureODataLibraryExceptionpublic void readPrimitiveValue(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType contentType) throws ODataApplicationException, ODataLibraryException
PrimitiveValueProcessornull, the service responds with 204 No Content.
If it is not available, for example due to permissions, the service responds with 404 Not Found.readPrimitiveValue in interface PrimitiveValueProcessorrequest - OData request object containing raw HTTP informationresponse - OData response object for collecting response datauriInfo - information of a parsed OData URIcontentType - requested content type after content negotiationODataApplicationException - if the service implementation encounters a failureODataLibraryExceptionpublic void updatePrimitive(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType requestFormat, ContentType responseFormat) throws ODataApplicationException, ODataLibraryException
PrimitiveProcessorupdatePrimitive in interface PrimitiveProcessorrequest - OData request object containing raw HTTP informationresponse - OData response object for collecting response datauriInfo - information of a parsed OData URIrequestFormat - content type of body sent with requestresponseFormat - requested content type after content negotiationODataApplicationException - if the service implementation encounters a failureODataLibraryExceptionpublic void updatePrimitiveValue(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType requestFormat, ContentType responseFormat) throws ODataApplicationException, ODataLibraryException
PrimitiveValueProcessorupdatePrimitiveValue in interface PrimitiveValueProcessorrequest - OData request object containing raw HTTP informationresponse - OData response object for collecting response datauriInfo - information of a parsed OData URIrequestFormat - content type of body sent with requestresponseFormat - requested content type after content negotiationODataApplicationException - if the service implementation encounters a failureODataLibraryExceptionpublic void deletePrimitive(ODataRequest request, ODataResponse response, UriInfo uriInfo) throws ODataApplicationException, ODataLibraryException
PrimitiveProcessorNULL (see chapter "11.4.9.2 Set a Value to Null")deletePrimitive in interface PrimitiveProcessorrequest - OData request object containing raw HTTP informationresponse - OData response object for collecting response datauriInfo - information of a parsed OData URIODataApplicationException - if the service implementation encounters a failureODataLibraryExceptionpublic void deletePrimitiveValue(ODataRequest request, ODataResponse response, UriInfo uriInfo) throws ODataApplicationException, ODataLibraryException
PrimitiveValueProcessornull.deletePrimitiveValue in interface PrimitiveValueProcessorrequest - OData request object containing raw HTTP informationresponse - OData response object for collecting response datauriInfo - information of a parsed OData URIODataApplicationException - if the service implementation encounters a failureODataLibraryExceptionpublic void readPrimitiveCollection(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType contentType) throws ODataApplicationException, ODataLibraryException
PrimitiveCollectionProcessorreadPrimitiveCollection in interface PrimitiveCollectionProcessorrequest - OData request object containing raw HTTP informationresponse - OData response object for collecting response datauriInfo - information of a parsed OData URIcontentType - requested content type after content negotiationODataApplicationException - if the service implementation encounters a failureODataLibraryExceptionpublic void countPrimitiveCollection(ODataRequest request, ODataResponse response, UriInfo uriInfo) throws ODataApplicationException, ODataLibraryException
CountPrimitiveCollectionProcessortext/plain by default.countPrimitiveCollection in interface CountPrimitiveCollectionProcessorrequest - OData request object containing raw HTTP information.response - OData response object for collecting response datauriInfo - information of a parsed OData URIODataApplicationException - if the service implementation encounters a failureODataLibraryExceptionpublic void updatePrimitiveCollection(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType requestFormat, ContentType responseFormat) throws ODataApplicationException, ODataLibraryException
PrimitiveCollectionProcessorupdatePrimitiveCollection in interface PrimitiveCollectionProcessorrequest - OData request object containing raw HTTP informationresponse - OData response object for collecting response datauriInfo - information of a parsed OData URIrequestFormat - content type of body sent with requestresponseFormat - requested content type after content negotiationODataApplicationException - if the service implementation encounters a failureODataLibraryExceptionpublic void deletePrimitiveCollection(ODataRequest request, ODataResponse response, UriInfo uriInfo) throws ODataApplicationException, ODataLibraryException
PrimitiveCollectionProcessorEMPTY.deletePrimitiveCollection in interface PrimitiveCollectionProcessorrequest - OData request object containing raw HTTP informationresponse - OData response object for collecting response datauriInfo - information of a parsed OData URIODataApplicationException - if the service implementation encounters a failureODataLibraryExceptionpublic void readComplex(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType contentType) throws ODataApplicationException, ODataLibraryException
ComplexProcessorreadComplex in interface ComplexProcessorrequest - OData request object containing raw HTTP informationresponse - OData response object for collecting response datauriInfo - information of a parsed OData URIcontentType - requested content type after content negotiationODataApplicationException - if the service implementation encounters a failureODataLibraryExceptionpublic void updateComplex(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType requestFormat, ContentType responseFormat) throws ODataApplicationException, ODataLibraryException
ComplexProcessorupdateComplex in interface ComplexProcessorrequest - OData request object containing raw HTTP informationresponse - OData response object for collecting response datauriInfo - information of a parsed OData URIrequestFormat - content type of body sent with requestresponseFormat - requested content type after content negotiationODataApplicationException - if the service implementation encounters a failureODataLibraryExceptionpublic void deleteComplex(ODataRequest request, ODataResponse response, UriInfo uriInfo) throws ODataApplicationException, ODataLibraryException
ComplexProcessorNULL (see chapter "11.4.9.2 Set a Value to Null")deleteComplex in interface ComplexProcessorrequest - OData request object containing raw HTTP informationresponse - OData response object for collecting response datauriInfo - information of a parsed OData URIODataApplicationException - if the service implementation encounters a failureODataLibraryExceptionpublic void readComplexCollection(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType contentType) throws ODataApplicationException, ODataLibraryException
ComplexCollectionProcessorreadComplexCollection in interface ComplexCollectionProcessorrequest - OData request object containing raw HTTP informationresponse - OData response object for collecting response datauriInfo - information of a parsed OData URIcontentType - requested content type after content negotiationODataApplicationException - if the service implementation encounters a failureODataLibraryExceptionpublic void countComplexCollection(ODataRequest request, ODataResponse response, UriInfo uriInfo) throws ODataApplicationException, ODataLibraryException
CountComplexCollectionProcessortext/plain by default.countComplexCollection in interface CountComplexCollectionProcessorrequest - OData request object containing raw HTTP information.response - OData response object for collecting response datauriInfo - information of a parsed OData URIODataApplicationException - if the service implementation encounters a failureODataLibraryExceptionpublic void updateComplexCollection(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType requestFormat, ContentType responseFormat) throws ODataApplicationException, ODataLibraryException
ComplexCollectionProcessorupdateComplexCollection in interface ComplexCollectionProcessorrequest - OData request object containing raw HTTP informationresponse - OData response object for collecting response datauriInfo - information of a parsed OData URIrequestFormat - content type of body sent with requestresponseFormat - requested content type after content negotiationODataApplicationException - if the service implementation encounters a failureODataLibraryExceptionpublic void deleteComplexCollection(ODataRequest request, ODataResponse response, UriInfo uriInfo) throws ODataApplicationException, ODataLibraryException
ComplexCollectionProcessorEMPTY.deleteComplexCollection in interface ComplexCollectionProcessorrequest - OData request object containing raw HTTP informationresponse - OData response object for collecting response datauriInfo - information of a parsed OData URIODataApplicationException - if the service implementation encounters a failureODataLibraryExceptionCopyright © 2013–2015 The Apache Software Foundation. All rights reserved.