Class ReadHandler
java.lang.Object
de.hybris.platform.odata2services.odata.processor.handler.read.ReadHandler
- All Implemented Interfaces:
ODataProcessorHandler<ReadParam,org.apache.olingo.odata2.api.processor.ODataResponse>
public class ReadHandler
extends Object
implements ODataProcessorHandler<ReadParam,org.apache.olingo.odata2.api.processor.ODataResponse>
ODataProcessor handler that a read request
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.olingo.odata2.api.processor.ODataResponseaugmentResponse(ItemLookupRequest itemLookupRequest, org.apache.olingo.odata2.api.processor.ODataResponse readerResponse) Augment the givenODataResponseprotected EntityReaderRegistryprotected ItemLookupRequestFactoryprotected org.apache.olingo.odata2.api.processor.ODataResponse.ODataResponseBuildergetODataResponseBuilder(org.apache.olingo.odata2.api.processor.ODataResponse readerResponse) org.apache.olingo.odata2.api.processor.ODataResponsevoidsetEntityReaderRegistry(EntityReaderRegistry entityReaderRegistry) voidsetItemLookupRequestFactory(ItemLookupRequestFactory itemLookupRequestFactory)
-
Constructor Details
-
ReadHandler
public ReadHandler()
-
-
Method Details
-
handle
public org.apache.olingo.odata2.api.processor.ODataResponse handle(ReadParam param) throws org.apache.olingo.odata2.api.exception.ODataException - Specified by:
handlein interfaceODataProcessorHandler<ReadParam,org.apache.olingo.odata2.api.processor.ODataResponse> - Throws:
org.apache.olingo.odata2.api.exception.ODataException
-
augmentResponse
protected org.apache.olingo.odata2.api.processor.ODataResponse augmentResponse(ItemLookupRequest itemLookupRequest, org.apache.olingo.odata2.api.processor.ODataResponse readerResponse) Augment the givenODataResponse- Parameters:
itemLookupRequest- Item lookup request contains the information on how to create the responsereaderResponse- Response to augment- Returns:
- The
ODataResponse
-
getODataResponseBuilder
protected org.apache.olingo.odata2.api.processor.ODataResponse.ODataResponseBuilder getODataResponseBuilder(org.apache.olingo.odata2.api.processor.ODataResponse readerResponse) -
getItemLookupRequestFactory
-
setItemLookupRequestFactory
-
getEntityReaderRegistry
-
setEntityReaderRegistry
-