public class TechnicalPrimitiveComplexProcessor extends TechnicalProcessor implements PrimitiveProcessor, PrimitiveValueProcessor, ActionPrimitiveProcessor, PrimitiveCollectionProcessor, ActionPrimitiveCollectionProcessor, ComplexProcessor, ActionComplexProcessor, ComplexCollectionProcessor, ActionComplexCollectionProcessor
dataProvider, odata
Constructor and Description |
---|
TechnicalPrimitiveComplexProcessor(DataProvider dataProvider) |
Modifier and Type | Method and Description |
---|---|
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 |
processActionComplex(ODataRequest request,
ODataResponse response,
UriInfo uriInfo,
ContentType requestFormat,
ContentType responseFormat)
Process an action which has as return type a complex-type.
|
void |
processActionComplexCollection(ODataRequest request,
ODataResponse response,
UriInfo uriInfo,
ContentType requestFormat,
ContentType responseFormat)
Process an action which has as return type a complex-type collection.
|
void |
processActionPrimitive(ODataRequest request,
ODataResponse response,
UriInfo uriInfo,
ContentType requestFormat,
ContentType responseFormat)
Process an action which has as return type a primitive-type.
|
void |
processActionPrimitiveCollection(ODataRequest request,
ODataResponse response,
UriInfo uriInfo,
ContentType requestFormat,
ContentType responseFormat)
Process an action which has as return type a primitive-type collection.
|
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.
|
getEdmEntitySet, init, validateOptions
public TechnicalPrimitiveComplexProcessor(DataProvider dataProvider)
public void readPrimitive(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType contentType) throws ODataApplicationException, SerializerException
PrimitiveProcessor
null
, 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 PrimitiveProcessor
request
- 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 failureSerializerException
- if serialization failedpublic void updatePrimitive(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType requestFormat, ContentType responseFormat) throws ODataApplicationException, DeserializerException, SerializerException
PrimitiveProcessor
updatePrimitive
in interface PrimitiveProcessor
request
- 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 failureDeserializerException
- if deserialization failedSerializerException
- if serialization failedpublic void deletePrimitive(ODataRequest request, ODataResponse response, UriInfo uriInfo) throws ODataApplicationException
PrimitiveProcessor
NULL
(see chapter "11.4.9.2 Set a Value to Null")deletePrimitive
in interface PrimitiveProcessor
request
- 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 failurepublic void processActionPrimitive(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType requestFormat, ContentType responseFormat) throws ODataApplicationException, DeserializerException, SerializerException
ActionPrimitiveProcessor
processActionPrimitive
in interface ActionPrimitiveProcessor
request
- 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 failureDeserializerException
- if deserialization failedSerializerException
- if serialization failedpublic void readPrimitiveCollection(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType contentType) throws ODataApplicationException, SerializerException
PrimitiveCollectionProcessor
readPrimitiveCollection
in interface PrimitiveCollectionProcessor
request
- 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 failureSerializerException
- if serialization failedpublic void updatePrimitiveCollection(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType requestFormat, ContentType responseFormat) throws ODataApplicationException, DeserializerException, SerializerException
PrimitiveCollectionProcessor
updatePrimitiveCollection
in interface PrimitiveCollectionProcessor
request
- 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 failureDeserializerException
- if deserialization failedSerializerException
- if serialization failedpublic void deletePrimitiveCollection(ODataRequest request, ODataResponse response, UriInfo uriInfo) throws ODataApplicationException
PrimitiveCollectionProcessor
EMPTY
.deletePrimitiveCollection
in interface PrimitiveCollectionProcessor
request
- 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 failurepublic void processActionPrimitiveCollection(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType requestFormat, ContentType responseFormat) throws ODataApplicationException, DeserializerException, SerializerException
ActionPrimitiveCollectionProcessor
processActionPrimitiveCollection
in interface ActionPrimitiveCollectionProcessor
request
- 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 failureDeserializerException
- if deserialization failedSerializerException
- if serialization failedpublic void readComplex(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType contentType) throws ODataApplicationException, SerializerException
ComplexProcessor
readComplex
in interface ComplexProcessor
request
- 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 failureSerializerException
- if serialization failedpublic void updateComplex(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType requestFormat, ContentType responseFormat) throws ODataApplicationException, DeserializerException, SerializerException
ComplexProcessor
updateComplex
in interface ComplexProcessor
request
- 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 failureDeserializerException
- if de-serialization failedSerializerException
- if serialization failedpublic void processActionComplex(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType requestFormat, ContentType responseFormat) throws ODataApplicationException, DeserializerException, SerializerException
ActionComplexProcessor
processActionComplex
in interface ActionComplexProcessor
request
- 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 failureDeserializerException
- if deserialization failedSerializerException
- if serialization failedpublic void deleteComplex(ODataRequest request, ODataResponse response, UriInfo uriInfo) throws ODataApplicationException
ComplexProcessor
NULL
(see chapter "11.4.9.2 Set a Value to Null")deleteComplex
in interface ComplexProcessor
request
- 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 failurepublic void readComplexCollection(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType contentType) throws ODataApplicationException, SerializerException
ComplexCollectionProcessor
readComplexCollection
in interface ComplexCollectionProcessor
request
- 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 failureSerializerException
- if serialization failedpublic void updateComplexCollection(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType requestFormat, ContentType responseFormat) throws ODataApplicationException, DeserializerException, SerializerException
ComplexCollectionProcessor
updateComplexCollection
in interface ComplexCollectionProcessor
request
- 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 failureDeserializerException
- if de-serialization failedSerializerException
- if serialization failedpublic void processActionComplexCollection(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType requestFormat, ContentType responseFormat) throws ODataApplicationException, DeserializerException, SerializerException
ActionComplexCollectionProcessor
processActionComplexCollection
in interface ActionComplexCollectionProcessor
request
- 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 failureDeserializerException
- if deserialization failedSerializerException
- if serialization failedpublic void deleteComplexCollection(ODataRequest request, ODataResponse response, UriInfo uriInfo) throws ODataApplicationException
ComplexCollectionProcessor
EMPTY
.deleteComplexCollection
in interface ComplexCollectionProcessor
request
- 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 failurepublic void readPrimitiveValue(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType contentType) throws ODataApplicationException, SerializerException
PrimitiveValueProcessor
null
, 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 PrimitiveValueProcessor
request
- 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 failureSerializerException
- if serialization failedCopyright © 2013–2015 The Apache Software Foundation. All rights reserved.