public class

HttpClientHttpResponse

extends Object
implements HttpResponse
java.lang.Object
   ↳ com.atlassian.confluence.util.http.httpclient.HttpClientHttpResponse

Summary

Public Constructors
HttpClientHttpResponse(HttpRequest httpRequest, HttpMethod method)
Public Methods
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()
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.confluence.util.http.HttpResponse

Public Constructors

public HttpClientHttpResponse (HttpRequest httpRequest, HttpMethod method)

Public Methods

public void finish ()

public String getContentType ()

public 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.

public InputStream getResponse ()

Throws
IOException

public int getStatusCode ()

public String getStatusMessage ()

public boolean isCached ()

public boolean isFailed ()

public boolean isNotFound ()

public boolean isNotPermitted ()