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, validateOptions
public TechnicalPrimitiveComplexProcessor(DataProvider dataProvider, ServiceMetadata serviceMetadata)
public void readPrimitive(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType contentType) throws ODataApplicationException, ODataLibraryException
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 failureODataLibraryException
public void readPrimitiveValue(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType contentType) throws ODataApplicationException, ODataLibraryException
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 failureODataLibraryException
public void updatePrimitive(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType requestFormat, ContentType responseFormat) throws ODataApplicationException, ODataLibraryException
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 failureODataLibraryException
public void updatePrimitiveValue(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType requestFormat, ContentType responseFormat) throws ODataApplicationException, ODataLibraryException
PrimitiveValueProcessor
updatePrimitiveValue
in interface PrimitiveValueProcessor
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 failureODataLibraryException
public void deletePrimitive(ODataRequest request, ODataResponse response, UriInfo uriInfo) throws ODataApplicationException, ODataLibraryException
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 failureODataLibraryException
public void deletePrimitiveValue(ODataRequest request, ODataResponse response, UriInfo uriInfo) throws ODataApplicationException, ODataLibraryException
PrimitiveValueProcessor
null
.deletePrimitiveValue
in interface PrimitiveValueProcessor
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 failureODataLibraryException
public void readPrimitiveCollection(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType contentType) throws ODataApplicationException, ODataLibraryException
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 failureODataLibraryException
public void countPrimitiveCollection(ODataRequest request, ODataResponse response, UriInfo uriInfo) throws ODataApplicationException, ODataLibraryException
CountPrimitiveCollectionProcessor
text/plain
by default.countPrimitiveCollection
in interface CountPrimitiveCollectionProcessor
request
- 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 failureODataLibraryException
public void updatePrimitiveCollection(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType requestFormat, ContentType responseFormat) throws ODataApplicationException, ODataLibraryException
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 failureODataLibraryException
public void deletePrimitiveCollection(ODataRequest request, ODataResponse response, UriInfo uriInfo) throws ODataApplicationException, ODataLibraryException
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 failureODataLibraryException
public void readComplex(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType contentType) throws ODataApplicationException, ODataLibraryException
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 failureODataLibraryException
public void updateComplex(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType requestFormat, ContentType responseFormat) throws ODataApplicationException, ODataLibraryException
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 failureODataLibraryException
public void deleteComplex(ODataRequest request, ODataResponse response, UriInfo uriInfo) throws ODataApplicationException, ODataLibraryException
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 failureODataLibraryException
public void readComplexCollection(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType contentType) throws ODataApplicationException, ODataLibraryException
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 failureODataLibraryException
public void countComplexCollection(ODataRequest request, ODataResponse response, UriInfo uriInfo) throws ODataApplicationException, ODataLibraryException
CountComplexCollectionProcessor
text/plain
by default.countComplexCollection
in interface CountComplexCollectionProcessor
request
- 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 failureODataLibraryException
public void updateComplexCollection(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType requestFormat, ContentType responseFormat) throws ODataApplicationException, ODataLibraryException
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 failureODataLibraryException
public void deleteComplexCollection(ODataRequest request, ODataResponse response, UriInfo uriInfo) throws ODataApplicationException, ODataLibraryException
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 failureODataLibraryException
Copyright © 2013–2015 The Apache Software Foundation. All rights reserved.