|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hbase.rest.client.Response
public class Response
The HTTP result code, response headers, and body of a HTTP response.
Constructor Summary | |
---|---|
Response(int code)
Constructor |
|
Response(int code,
org.apache.commons.httpclient.Header[] headers)
Constructor |
|
Response(int code,
org.apache.commons.httpclient.Header[] headers,
byte[] body)
Constructor |
Method Summary | |
---|---|
byte[] |
getBody()
|
int |
getCode()
|
String |
getHeader(String key)
|
org.apache.commons.httpclient.Header[] |
getHeaders()
|
String |
getLocation()
|
boolean |
hasBody()
|
void |
setBody(byte[] body)
|
void |
setCode(int code)
|
void |
setHeaders(org.apache.commons.httpclient.Header[] headers)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Response(int code)
code
- the HTTP response codepublic Response(int code, org.apache.commons.httpclient.Header[] headers)
code
- the HTTP response codeheaders
- the HTTP response headerspublic Response(int code, org.apache.commons.httpclient.Header[] headers, byte[] body)
code
- the HTTP response codeheaders
- the HTTP response headersbody
- the response body, can be nullMethod Detail |
---|
public int getCode()
public org.apache.commons.httpclient.Header[] getHeaders()
public String getHeader(String key)
public String getLocation()
public boolean hasBody()
public byte[] getBody()
public void setCode(int code)
code
- the HTTP response codepublic void setHeaders(org.apache.commons.httpclient.Header[] headers)
headers
- the HTTP response headerspublic void setBody(byte[] body)
body
- the response body
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |