public class Response extends Object
| Constructor and Description |
|---|
Response(InputStream is,
ResponseStatus status)
Instantiates a new response.
|
Response(ResponseStatus status)
Instantiates a new response.
|
Response(String data,
ResponseStatus status)
Instantiates a new response.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getEncoding()
Gets the encoding.
|
String |
getResponse()
Gets the response.
|
InputStream |
getResponseStream()
Gets the response stream.
|
ResponseStatus |
getStatus()
Gets the status.
|
String |
getText()
Gets the text of the response.
|
void |
setEncoding(String encoding)
Sets the encoding.
|
String |
toString() |
public Response(ResponseStatus status)
status - the statuspublic Response(String data, ResponseStatus status)
data - the datastatus - the statuspublic Response(InputStream is, ResponseStatus status)
is - the isstatus - the statuspublic void setEncoding(String encoding)
encoding - the new encodingpublic String getResponse()
public String getText()
public InputStream getResponseStream()
public ResponseStatus getStatus()
public String getEncoding()
Copyright © 2005–2016 Alfresco Software. All rights reserved.