public class HttpUtilsExtensions
extends it.geosolutions.geonetwork.util.HTTPUtils
| Constructor and Description |
|---|
HttpUtilsExtensions() |
HttpUtilsExtensions(String userName,
String password) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
delete(String arg0) |
boolean |
exists(String arg0) |
String |
get(String arg0) |
String |
getJSON(String url) |
int |
getLastHttpStatus() |
boolean |
httpPing(String arg0) |
String |
post(String url,
File file,
String contentType) |
String |
post(String url,
InputStream content,
String contentType) |
String |
post(String url,
org.apache.commons.httpclient.methods.RequestEntity requestEntity) |
String |
post(String url,
String content,
String contentType) |
String |
post(String arg0,
String arg1,
String arg2,
String arg3) |
String |
postXml(String url,
InputStream content) |
String |
postXml(String url,
String content) |
String |
postXml(String url,
String content,
String encoding) |
String |
put(String url,
File file,
String contentType) |
String |
put(String url,
org.apache.commons.httpclient.methods.RequestEntity requestEntity) |
String |
put(String arg0,
String arg1,
String arg2) |
String |
putJSON(String url,
String content) |
String |
putXml(String url,
String content) |
protected void |
setAuth(org.apache.commons.httpclient.HttpClient client,
String url,
String username,
String pw) |
public String getJSON(String url) throws MalformedURLException, it.geosolutions.geonetwork.exception.GNServerException
MalformedURLExceptionit.geosolutions.geonetwork.exception.GNServerExceptionpublic String putJSON(String url, String content) throws UnsupportedEncodingException, it.geosolutions.geonetwork.exception.GNServerException
UnsupportedEncodingExceptionit.geosolutions.geonetwork.exception.GNServerExceptionprotected void setAuth(org.apache.commons.httpclient.HttpClient client,
String url,
String username,
String pw)
throws MalformedURLException
MalformedURLExceptionpublic int getLastHttpStatus()
getLastHttpStatus in class it.geosolutions.geonetwork.util.HTTPUtilspublic boolean delete(String arg0)
delete in class it.geosolutions.geonetwork.util.HTTPUtilspublic boolean exists(String arg0)
exists in class it.geosolutions.geonetwork.util.HTTPUtilspublic String get(String arg0) throws MalformedURLException
get in class it.geosolutions.geonetwork.util.HTTPUtilsMalformedURLExceptionpublic boolean httpPing(String arg0)
httpPing in class it.geosolutions.geonetwork.util.HTTPUtilspublic String post(String arg0, String arg1, String arg2, String arg3)
post in class it.geosolutions.geonetwork.util.HTTPUtilspublic String post(String url, File file, String contentType)
post in class it.geosolutions.geonetwork.util.HTTPUtilspublic String post(String url, InputStream content, String contentType)
post in class it.geosolutions.geonetwork.util.HTTPUtilspublic String post(String url, org.apache.commons.httpclient.methods.RequestEntity requestEntity)
post in class it.geosolutions.geonetwork.util.HTTPUtilspublic String post(String url, String content, String contentType)
post in class it.geosolutions.geonetwork.util.HTTPUtilspublic String postXml(String url, InputStream content)
postXml in class it.geosolutions.geonetwork.util.HTTPUtilspublic String postXml(String url, String content)
postXml in class it.geosolutions.geonetwork.util.HTTPUtilspublic String postXml(String url, String content, String encoding)
postXml in class it.geosolutions.geonetwork.util.HTTPUtilspublic String put(String arg0, String arg1, String arg2)
put in class it.geosolutions.geonetwork.util.HTTPUtilspublic String put(String url, File file, String contentType)
put in class it.geosolutions.geonetwork.util.HTTPUtilspublic String put(String url, org.apache.commons.httpclient.methods.RequestEntity requestEntity)
put in class it.geosolutions.geonetwork.util.HTTPUtilsCopyright © 2022. All Rights Reserved.