|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.confluence.it.web.HttpRequest
public class HttpRequest
Provides authenticated raw HTTP access to Confluence URLs for testing.
| Method Summary | |
|---|---|
static void |
execute(User user,
org.apache.commons.httpclient.HttpMethod method)
Executes the provided request. |
static HttpRequest |
get(User user,
String url)
Executes a GET on the provided URL. |
String |
getResponseBody()
|
String |
getResponseHeader(String headerName)
|
int |
getStatusCode()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void execute(User user,
org.apache.commons.httpclient.HttpMethod method)
throws IOException
IOException - as documented by HttpClient.executeMethod(HttpMethod)
public static HttpRequest get(User user,
String url)
RuntimeException - if any problem occurs with the request, where the cause
is any exception thrown by HttpClient.executeMethod(HttpMethod)public int getStatusCode()
public String getResponseHeader(String headerName)
public String getResponseBody()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||