org.apache.olingo.odata2.api.client.batch
Class BatchQueryPart
java.lang.Object
org.apache.olingo.odata2.api.client.batch.BatchQueryPart
- All Implemented Interfaces:
- BatchPart
public abstract class BatchQueryPart
- extends Object
- implements BatchPart
A BatchQueryPart
BatchQueryPart represents a single retrieve request
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BatchQueryPart
public BatchQueryPart()
getHeaders
public abstract Map<String,String> getHeaders()
getUri
public abstract String getUri()
getMethod
public abstract String getMethod()
getContentId
public abstract String getContentId()
headers
public static BatchQueryPart.BatchQueryPartBuilder headers(Map<String,String> headers)
- Parameters:
headers
-
- Returns:
- a new builder object
uri
public static BatchQueryPart.BatchQueryPartBuilder uri(String uri)
- Parameters:
uri
- should not be null
- Returns:
- a new builder object
method
public static BatchQueryPart.BatchQueryPartBuilder method(String method)
- Parameters:
method
- MUST be the HTTP GET method
- Returns:
- a new builder object
contentId
public static BatchQueryPart.BatchQueryPartBuilder contentId(String contentId)
- Parameters:
contentId
- can be used to identify the different request within a the batch
- Returns:
- a new builder object
newBuilder
public static BatchQueryPart.BatchQueryPartBuilder newBuilder()
- Returns:
- returns a new builder object
Copyright © 2013-2015 The Apache Software Foundation. All Rights Reserved.