public class ApiBatchRequestElement extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ApiBatchRequestElement.HTTPMethod |
Constructor and Description |
---|
ApiBatchRequestElement() |
Modifier and Type | Method and Description |
---|---|
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() |
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)
Copyright © Cloudera, Inc. Released under Apache License, Version 2.0.