com.atlassian.confluence.util.http
Interface HttpResponse
- All Known Implementing Classes:
- HttpClientHttpResponse
public interface HttpResponse
isCached
boolean isCached()
isFailed
boolean isFailed()
isNotFound
boolean isNotFound()
isNotPermitted
boolean isNotPermitted()
getResponse
java.io.InputStream getResponse()
throws java.io.IOException
- Throws:
java.io.IOException
getContentType
java.lang.String getContentType()
getHeaders
java.lang.String[] getHeaders(java.lang.String name)
- Retrieves all HTTP response headers with the specified name and returns an array of their values.
- Parameters:
name - the HTTP response header to retreive. Must not be null, or an
IllegalArgumentException will be thrown.
- Returns:
- an array of the header values found on the response, or an empty array. Must not return
null.
- Throws:
java.lang.IllegalArgumentException - if the name parameter is null- Since:
- 2.10
getStatusMessage
java.lang.String getStatusMessage()
getStatusCode
int getStatusCode()
finish
void finish()
Copyright © 2003-2010 Atlassian. All Rights Reserved.