com.atlassian.confluence.util.http
Interface HttpResponse

All Known Implementing Classes:
HttpClientHttpResponse

public interface HttpResponse


Method Summary
 void finish()
           
 String getContentType()
           
 String[] getHeaders(String name)
          Retrieves all HTTP response headers with the specified name and returns an array of their values.
 InputStream getResponse()
           
 int getStatusCode()
           
 String getStatusMessage()
           
 boolean isCached()
           
 boolean isFailed()
           
 boolean isNotFound()
           
 boolean isNotPermitted()
           
 

Method Detail

isCached

boolean isCached()

isFailed

boolean isFailed()

isNotFound

boolean isNotFound()

isNotPermitted

boolean isNotPermitted()

getResponse

InputStream getResponse()
                        throws IOException
Throws:
IOException

getContentType

String getContentType()

getHeaders

String[] getHeaders(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:
IllegalArgumentException - if the name parameter is null
Since:
2.10

getStatusMessage

String getStatusMessage()

getStatusCode

int getStatusCode()

finish

void finish()


Copyright © 2003-2011 Atlassian. All Rights Reserved.