@Exported public class ServiceResponse extends Object
| Modifier and Type | Class and Description | 
|---|---|
| static class  | ServiceResponse.ResponseType | 
| Constructor and Description | 
|---|
| ServiceResponse(DataFactory dataFactory,
               String encoding,
               Map<String,String> headers,
               InputStream inputStream,
               ServiceResponse.ResponseType type) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | close()Close this response. | 
| String | getHeader(String name)Retrieve the header by name | 
| Collection<String> | getHeaderNames() | 
| DataBinder | getResponseAsBinder()Convert the response stream to a data binder | 
| DataBinder | getResponseAsBinder(boolean checkErrors)Convert the response stream to a data binder | 
| String | getResponseAsString() | 
| InputStream | getResponseStream() | 
| ServiceResponse.ResponseType | getResponseType() | 
| boolean | isReleased() | 
| void | setCloseMethod(CloseNotifyInputStream.CloseMethod closeMethod)Set the method to call upon closure of the stream | 
| void | setResponseStream(InputStream inputStream) | 
| void | setServiceLog(ServiceLog serviceLog) | 
public ServiceResponse(DataFactory dataFactory, String encoding, Map<String,String> headers, InputStream inputStream, ServiceResponse.ResponseType type)
public void setServiceLog(ServiceLog serviceLog)
public void setCloseMethod(CloseNotifyInputStream.CloseMethod closeMethod)
closeMethod - the close methodpublic boolean isReleased()
public String getHeader(String name)
name - the header namepublic Collection<String> getHeaderNames()
public DataBinder getResponseAsBinder() throws IdcClientException
IdcClientExceptionpublic DataBinder getResponseAsBinder(boolean checkErrors) throws IdcClientException
checkErrors - true to examine the binder for errorsIdcClientExceptionpublic void setResponseStream(InputStream inputStream)
public InputStream getResponseStream()
public String getResponseAsString() throws IOException
IOExceptionpublic ServiceResponse.ResponseType getResponseType()
public void close()
getResponseStream() object.