| java.lang.Object org.wfp.vam.intermap.kernel.map.mapServices.HttpClient
HttpClient | public class HttpClient (Code) | | |
disconnect | public void disconnect()(Code) | | Disconnects from the server
|
getElement | public Element getElement() throws Exception(Code) | | Sends the request and gets the response as a JDOM Element
the response as a JDOM Element throws: IOException - if a connection failure occurs throws: JDOMException - if a xml parsing error occurs |
getFile | public void getFile(File f) throws IOException(Code) | | Gets the image from the remote server, and save in the given file
the response as a String throws: IOException - if a connection failure occurs |
getResponseCode | public int getResponseCode() throws IOException(Code) | | Returns the response code from the server
|
getResponseHeader | public String getResponseHeader(String key)(Code) | | Returns the HTTP response header with the given key
|
getString | public String getString() throws IOException(Code) | | Sends the request and gets the response as a String
the response as a String throws: IOException - if a connection failure occurs |
setPassword | public void setPassword(String password)(Code) | | Set the password for HTTP basic authentication
|
setRequestHeader | public void setRequestHeader(String key, String value)(Code) | | Sets a request property
|
setUser | public void setUser(String user)(Code) | | Sets the user id for HTTP basic authentication
|
|
|