public class ODataResponse extends Object
| Constructor and Description |
|---|
ODataResponse() |
| Modifier and Type | Method and Description |
|---|---|
InputStream |
getContent()
Gets the content (body).
|
Map<String,String> |
getHeaders()
Gets all headers.
|
int |
getStatusCode()
Gets the status code.
|
void |
setContent(InputStream content)
Sets the content (body).
|
void |
setHeader(String name,
String value)
Sets a header.
|
void |
setStatusCode(int statusCode)
Sets the status code.
|
public void setStatusCode(int statusCode)
HttpStatusCodepublic int getStatusCode()
HttpStatusCodepublic void setHeader(String name, String value)
name - the namevalue - the valuepublic Map<String,String> getHeaders()
public void setContent(InputStream content)
content - the content as InputStreampublic InputStream getContent()
InputStreamCopyright © 2013–2015 The Apache Software Foundation. All rights reserved.