fi.hut.tml.xsmiles.util.HTTPClient
Class HTTPClientImpl
java.lang.Object
fi.hut.tml.xsmiles.util.HTTPClient.HTTPClientImpl
- All Implemented Interfaces:
- HTTPInterface
- public class HTTPClientImpl
- extends java.lang.Object
- implements HTTPInterface
- Author:
- honkkis
|
Method Summary |
void |
enableDebug(boolean debug)
|
XSmilesConnection |
get(java.net.URL dest,
BrowserWindow b)
|
java.lang.String |
getAcceptHeader()
|
protected void |
init()
|
XSmilesConnection |
post(java.net.URL dest,
byte[] data,
java.util.Hashtable properties,
java.lang.String content_type)
Post data to an URL and return the InputStream to the reply
TODO: support for authentication! |
XSmilesConnection |
put(java.net.URL dest,
byte[] data,
java.util.Hashtable properties,
java.lang.String content_type)
Post data to an URL and return the InputStream to the reply
TODO: support for authentication! |
void |
setBrowser(BrowserWindow b)
|
protected void |
setProxy(org.apache.commons.httpclient.HttpClient client,
java.lang.String proxyhost,
int proxyport)
|
void |
setRequestProperties(org.apache.commons.httpclient.HttpMethod connection)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
allowUntrustedCertificates
public boolean allowUntrustedCertificates
HTTPClientImpl
public HTTPClientImpl()
init
protected void init()
setProxy
protected void setProxy(org.apache.commons.httpclient.HttpClient client,
java.lang.String proxyhost,
int proxyport)
get
public XSmilesConnection get(java.net.URL dest,
BrowserWindow b)
throws java.lang.Exception
- Specified by:
get in interface HTTPInterface
- Throws:
java.lang.Exception
post
public XSmilesConnection post(java.net.URL dest,
byte[] data,
java.util.Hashtable properties,
java.lang.String content_type)
throws java.lang.Exception
- Description copied from interface:
HTTPInterface
- Post data to an URL and return the InputStream to the reply
TODO: support for authentication!
- Specified by:
post in interface HTTPInterface
- Throws:
java.lang.Exception
setRequestProperties
public void setRequestProperties(org.apache.commons.httpclient.HttpMethod connection)
put
public XSmilesConnection put(java.net.URL dest,
byte[] data,
java.util.Hashtable properties,
java.lang.String content_type)
throws java.lang.Exception
- Description copied from interface:
HTTPInterface
- Post data to an URL and return the InputStream to the reply
TODO: support for authentication!
- Specified by:
put in interface HTTPInterface
- Throws:
java.lang.Exception
getAcceptHeader
public java.lang.String getAcceptHeader()
setBrowser
public void setBrowser(BrowserWindow b)
- Specified by:
setBrowser in interface HTTPInterface
enableDebug
public void enableDebug(boolean debug)
- Specified by:
enableDebug in interface HTTPInterface
X-Smiles 1.2