|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.cloudera.api.model.ApiBatchRequestElement
public class ApiBatchRequestElement
A single element of a batch request, often part of a list with other elements.
Nested Class Summary | |
---|---|
static class |
ApiBatchRequestElement.HTTPMethod
|
Constructor Summary | |
---|---|
ApiBatchRequestElement()
|
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
String |
getAcceptType()
Accept header of the request element. |
Object |
getBody()
Optional body of the request. |
String |
getContentType()
Content-Type header of the request element. |
ApiBatchRequestElement.HTTPMethod |
getMethod()
The type of request (e.g. |
String |
getUrl()
The URL of the request. |
int |
hashCode()
|
void |
setAcceptType(String acceptType)
|
void |
setBody(Object body)
|
void |
setContentType(String contentType)
|
void |
setMethod(ApiBatchRequestElement.HTTPMethod method)
|
void |
setUrl(String url)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ApiBatchRequestElement()
Method Detail |
---|
public String toString()
toString
in class Object
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
public ApiBatchRequestElement.HTTPMethod getMethod()
public void setMethod(ApiBatchRequestElement.HTTPMethod method)
public String getUrl()
public void setUrl(String url)
public Object getBody()
getContentType()
. For application/json, use
ApiObjectMapper
.
public void setBody(Object body)
public String getContentType()
public void setContentType(String contentType)
public String getAcceptType()
public void setAcceptType(String acceptType)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |