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)
HttpStatusCode
public int getStatusCode()
HttpStatusCode
public void setHeader(String name, String value)
name
- the namevalue
- the valuepublic Map<String,String> getHeaders()
public void setContent(InputStream content)
content
- the content as InputStream
public InputStream getContent()
InputStream
Copyright © 2013–2015 The Apache Software Foundation. All rights reserved.