Interface Response
-
- All Superinterfaces:
java.lang.AutoCloseable,java.io.Closeable
- All Known Implementing Classes:
DefaultResponse
public interface Response extends java.io.Closeable
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringLAST_MODIFIED_FORMATstatic java.lang.StringLAST_MODIFIED_HEADER_KEY
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()org.apache.http.client.methods.CloseableHttpResponsegetActualResponse()java.io.InputStreamgetContent()java.lang.StringgetContentEncoding()java.lang.LonggetContentLength()java.lang.StringgetContentString()java.lang.StringgetContentString(java.nio.charset.Charset encoding)java.lang.StringgetContentType()java.util.Map<java.lang.String,java.lang.String>getHeaders()java.lang.StringgetHeaderValue(java.lang.String name)longgetLastModified()org.apache.http.client.methods.HttpUriRequestgetRequest()intgetStatusCode()java.lang.StringgetStatusMessage()booleanisStatusCodeError()booleanisStatusCodeSuccess()voidthrowExceptionForError()
-
-
-
Field Detail
-
LAST_MODIFIED_FORMAT
static final java.lang.String LAST_MODIFIED_FORMAT
- See Also:
- Constant Field Values
-
LAST_MODIFIED_HEADER_KEY
static final java.lang.String LAST_MODIFIED_HEADER_KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
getRequest
org.apache.http.client.methods.HttpUriRequest getRequest()
-
getStatusCode
int getStatusCode()
-
isStatusCodeSuccess
boolean isStatusCodeSuccess()
-
isStatusCodeError
boolean isStatusCodeError()
-
getStatusMessage
java.lang.String getStatusMessage()
-
getContent
java.io.InputStream getContent() throws com.synopsys.integration.exception.IntegrationException- Throws:
com.synopsys.integration.exception.IntegrationException
-
getContentString
java.lang.String getContentString() throws com.synopsys.integration.exception.IntegrationException- Throws:
com.synopsys.integration.exception.IntegrationException
-
getContentString
java.lang.String getContentString(java.nio.charset.Charset encoding) throws com.synopsys.integration.exception.IntegrationException- Throws:
com.synopsys.integration.exception.IntegrationException
-
getContentLength
java.lang.Long getContentLength()
-
getContentEncoding
java.lang.String getContentEncoding()
-
getContentType
java.lang.String getContentType()
-
getHeaders
java.util.Map<java.lang.String,java.lang.String> getHeaders()
-
getHeaderValue
java.lang.String getHeaderValue(java.lang.String name)
-
getActualResponse
org.apache.http.client.methods.CloseableHttpResponse getActualResponse()
-
close
void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Throws:
java.io.IOException
-
getLastModified
long getLastModified() throws com.synopsys.integration.exception.IntegrationException- Throws:
com.synopsys.integration.exception.IntegrationException
-
throwExceptionForError
void throwExceptionForError() throws IntegrationRestException- Throws:
IntegrationRestException
-
-