Package oracle.stellent.ridc.protocol
Class ServiceResponse
java.lang.Object
oracle.stellent.ridc.protocol.ServiceResponse
Represents a response from the Content Server
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionServiceResponse(DataFactory dataFactory, String encoding, Map<String, String> headers, InputStream inputStream, ServiceResponse.ResponseType type) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Close this response.Retrieve the header by nameConvert the response stream to a data bindergetResponseAsBinder(boolean checkErrors) Convert the response stream to a data binderbooleanvoidsetCloseMethod(CloseNotifyInputStream.CloseMethod closeMethod) Set the method to call upon closure of the streamvoidsetResponseStream(InputStream inputStream) voidsetServiceLog(ServiceLog serviceLog)
-
Constructor Details
-
ServiceResponse
public ServiceResponse(DataFactory dataFactory, String encoding, Map<String, String> headers, InputStream inputStream, ServiceResponse.ResponseType type)
-
-
Method Details
-
setServiceLog
-
setCloseMethod
Set the method to call upon closure of the stream- Parameters:
closeMethod- the close method
-
isReleased
public boolean isReleased()- Returns:
- true if the connection is released
-
getHeader
Retrieve the header by name- Parameters:
name- the header name- Returns:
- the value or null if not found
-
getHeaderNames
- Returns:
- a collection of the header names
-
getResponseAsBinder
Convert the response stream to a data binder- Returns:
- the response as a data binder
- Throws:
IdcClientException
-
getResponseAsBinder
Convert the response stream to a data binder- Parameters:
checkErrors- true to examine the binder for errors- Returns:
- the data binder
- Throws:
IdcClientException
-
setResponseStream
-
getResponseStream
-
getResponseAsString
- Throws:
IOException
-
getResponseType
-
close
public void close()Close this response. Shortcut for calling close on thegetResponseStream()object.
-