public class ODataHandlerImpl extends Object implements ODataHandler
| Constructor and Description |
|---|
ODataHandlerImpl(OData odata,
ServiceMetadata serviceMetadata,
ServerCoreDebugger debugger) |
| Modifier and Type | Method and Description |
|---|---|
CustomContentTypeSupport |
getCustomContentTypeSupport() |
CustomETagSupport |
getCustomETagSupport() |
Exception |
getLastThrownException() |
UriInfo |
getUriInfo() |
void |
handleException(ODataRequest request,
ODataResponse response,
ODataServerError serverError,
Exception exception) |
ODataResponse |
process(ODataRequest request)
Processes an OData request.
|
void |
register(OlingoExtension extension)
Registers additional extensions for handling OData requests.
|
void |
register(Processor processor)
Registers additional custom processor implementations for handling OData requests.
|
public ODataHandlerImpl(OData odata, ServiceMetadata serviceMetadata, ServerCoreDebugger debugger)
public ODataResponse process(ODataRequest request)
ODataHandlerProcesses an OData request.
This includes URI parsing, content negotiation, dispatching the request to a specific custom processor implementation for handling data and creating the serialized content for the response object.
process in interface ODataHandlerrequest - the OData requestpublic void handleException(ODataRequest request, ODataResponse response, ODataServerError serverError, Exception exception)
public void register(Processor processor)
ODataHandlerRegisters additional custom processor implementations for handling OData requests.
If request processing requires a processor that is not registered then a "not implemented" exception will happen.
register in interface ODataHandlerpublic void register(OlingoExtension extension)
ODataHandlerRegisters additional extensions for handling OData requests.
This method is used for registration of all possible extensions and provide the extensibility for further extensions and different ODataHandler implementations/extensions.
register in interface ODataHandlerpublic CustomContentTypeSupport getCustomContentTypeSupport()
public CustomETagSupport getCustomETagSupport()
public Exception getLastThrownException()
public UriInfo getUriInfo()
Copyright © 2023. All rights reserved.