Class ODataSingleRequestImpl
java.lang.Object
org.apache.olingo.client.core.communication.request.AbstractODataStreamer
org.apache.olingo.client.core.communication.request.batch.AbstractODataBatchRequestItem
org.apache.olingo.client.core.communication.request.batch.ODataSingleRequestImpl
- All Implemented Interfaces:
ODataBatchRequestItem,ODataSingleRequest,ODataStreamer
public class ODataSingleRequestImpl
extends AbstractODataBatchRequestItem
implements ODataSingleRequest
Retrieve request wrapper for the corresponding batch item.
-
Field Summary
Fields inherited from class org.apache.olingo.client.core.communication.request.batch.AbstractODataBatchRequestItem
hasStreamedSomething, reqFields inherited from class org.apache.olingo.client.core.communication.request.AbstractODataStreamer
LOGFields inherited from interface org.apache.olingo.client.api.communication.request.ODataStreamer
CRLF -
Constructor Summary
ConstructorsConstructorDescriptionODataSingleRequestImpl(ODataBatchRequest req, ODataSingleResponseItem expectedResItem, ODataBatchRequestContext batchRequestController) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidClose item.setRequest(ODataBatchableRequest request) Serialize and send the given request.Methods inherited from class org.apache.olingo.client.core.communication.request.batch.AbstractODataBatchRequestItem
close, hasStreamedSomething, isOpen, streamRequestHeader, streamRequestHeaderMethods inherited from class org.apache.olingo.client.core.communication.request.AbstractODataStreamer
getBodyStreamWriter, newLine, streamMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.olingo.client.api.communication.request.batch.ODataBatchRequestItem
close, hasStreamedSomething, isOpenMethods inherited from interface org.apache.olingo.client.api.communication.request.ODataStreamer
getBodyStreamWriter
-
Constructor Details
-
ODataSingleRequestImpl
public ODataSingleRequestImpl(ODataBatchRequest req, ODataSingleResponseItem expectedResItem, ODataBatchRequestContext batchRequestController) Constructor.- Parameters:
req- batch request.expectedResItem- expected OData response items.batchRequestController- batch request configuration
-
-
Method Details
-
closeItem
protected void closeItem()Close item.- Specified by:
closeItemin classAbstractODataBatchRequestItem
-
setRequest
Serialize and send the given request.An IllegalArgumentException is thrown in case of no GET request.
- Specified by:
setRequestin interfaceODataSingleRequest- Parameters:
request- request to be serialized.- Returns:
- current item instance.
-