public class ODataNettyHandlerImpl extends Object implements ODataNettyHandler
Modifier and Type | Field and Description |
---|---|
static int |
COPY_BUFFER_SIZE |
Constructor and Description |
---|
ODataNettyHandlerImpl(OData odata,
ServiceMetadata serviceMetadata) |
Modifier and Type | Method and Description |
---|---|
ODataResponse |
process(ODataRequest request) |
void |
processNettyRequest(io.netty.handler.codec.http.HttpRequest request,
io.netty.handler.codec.http.HttpResponse response,
Map<String,String> requestParameters)
Processes a NettyRequest as an OData request.
|
void |
register(Processor processor)
Registers additional custom processor implementations for handling OData requests.
|
public static final int COPY_BUFFER_SIZE
public ODataNettyHandlerImpl(OData odata, ServiceMetadata serviceMetadata)
public void processNettyRequest(io.netty.handler.codec.http.HttpRequest request, io.netty.handler.codec.http.HttpResponse response, Map<String,String> requestParameters)
ODataNettyHandler
Processes a NettyRequest as 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.
processNettyRequest
in interface ODataNettyHandler
request
- - must be a HTTP OData requestresponse
- - HTTP OData responsepublic ODataResponse process(ODataRequest request)
public void register(Processor processor)
ODataNettyHandler
Registers 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 ODataNettyHandler
Copyright © 2013–2018 The Apache Software Foundation. All rights reserved.