public class FuncTestRestClient extends Object
Constructor and Description |
---|
FuncTestRestClient(net.sourceforge.jwebunit.WebTester tester,
JIRAEnvironmentData environmentData) |
Modifier and Type | Method and Description |
---|---|
com.meterware.httpunit.WebResponse |
DELETE(String url) |
com.meterware.httpunit.WebResponse |
GET(String url) |
com.meterware.httpunit.WebResponse |
GET(String url,
Map<String,String> headers) |
protected URI |
getBaseUriPlus(Iterable<String> paths) |
protected URI |
getBaseUriPlus(String... paths) |
protected String |
getBaseUrl() |
protected String |
getBaseUrlPlus(Iterable<String> paths) |
protected String |
getBaseUrlPlus(String... paths) |
JSONObject |
getJSON(String url,
String... expand) |
protected URI |
getRestApiUri(Iterable<String> paths) |
protected URI |
getRestApiUri(String... paths) |
protected String |
getRestApiUrl(String... paths) |
com.meterware.httpunit.WebResponse |
POST(String url,
JSONObject json) |
com.meterware.httpunit.WebResponse |
POST(String url,
String postBody) |
com.meterware.httpunit.WebResponse |
PUT(String url,
JSONObject json) |
com.meterware.httpunit.WebResponse |
PUT(String url,
String postBody) |
public FuncTestRestClient(net.sourceforge.jwebunit.WebTester tester, JIRAEnvironmentData environmentData)
protected String getBaseUrl()
public JSONObject getJSON(String url, String... expand) throws JSONException
JSONException
public com.meterware.httpunit.WebResponse GET(String url) throws IOException, SAXException
IOException
SAXException
public com.meterware.httpunit.WebResponse GET(String url, Map<String,String> headers) throws IOException, SAXException
IOException
SAXException
public com.meterware.httpunit.WebResponse DELETE(String url) throws IOException, SAXException
IOException
SAXException
public com.meterware.httpunit.WebResponse POST(String url, JSONObject json) throws IOException, SAXException
IOException
SAXException
public com.meterware.httpunit.WebResponse POST(String url, String postBody) throws IOException, SAXException
IOException
SAXException
public com.meterware.httpunit.WebResponse PUT(String url, JSONObject json) throws IOException, SAXException
IOException
SAXException
public com.meterware.httpunit.WebResponse PUT(String url, String postBody) throws IOException, SAXException
IOException
SAXException
Copyright © 2002-2015 Atlassian. All Rights Reserved.