public class HttpClientFacade extends Object implements IScriptingFacade
Constructor and Description |
---|
HttpClientFacade() |
Modifier and Type | Method and Description |
---|---|
static String |
delete(String url,
String options)
Performs a DELETE request for the specified URL and options
|
static String |
get(String url,
String options)
Performs a GET request for the specified URL and options
|
static String |
head(String url,
String options)
Performs a HEAD request for the specified URL and options
|
static String |
post(String url,
String options)
Performs a POST request for the specified URL and options
|
static String |
put(String url,
String options)
Performs a PUT request for the specified URL and options
|
static String |
trace(String url,
String options)
Performs a TRACE request for the specified URL and options
|
public static final String get(String url, String options) throws IOException
url
- the URLoptions
- the optionsIOException
- In case an I/O exception occurspublic static final String post(String url, String options) throws IOException
url
- the URLoptions
- the optionsIOException
- In case an I/O exception occurspublic static final String put(String url, String options) throws IOException
url
- the URLoptions
- the optionsIOException
- Signals that an I/O exception has occurred.public static final String delete(String url, String options) throws IOException
url
- the URLoptions
- the optionsIOException
- In case an I/O exception occurspublic static final String head(String url, String options) throws IOException
url
- the URLoptions
- the optionsIOException
- In case an I/O exception occurspublic static final String trace(String url, String options) throws IOException
url
- the URLoptions
- the optionsIOException
- In case an I/O exception occursCopyright © 2010–2018 Eclipse Foundation. All rights reserved.