|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.dc.http.HttpConnection
HttpURLConnection implementation with proxy implementation
Constructor Summary | |
HttpConnection(java.net.URL url)
|
Method Summary | |
void |
close()
|
byte[] |
getBytes()
Read the bytes from the given location to a String. |
int |
getContentLength()
|
java.lang.String |
getImageAsBase64()
Retrieves a picture from the net and returns this as a BASE64 string |
java.io.OutputStream |
getOutputStream()
|
java.lang.String |
getString(java.net.URL url)
Read the page from the given location to a String |
void |
setContentLength(int length)
|
void |
setToSoapRequest(java.lang.String soapAction)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public HttpConnection(java.net.URL url) throws java.lang.Exception
Method Detail |
public java.lang.String getString(java.net.URL url) throws java.io.IOException
url
- the target
java.io.IOException
public int getContentLength()
public void setContentLength(int length)
public void setToSoapRequest(java.lang.String soapAction) throws java.lang.Exception
java.lang.Exception
public java.io.OutputStream getOutputStream() throws java.io.IOException
java.io.IOException
public final byte[] getBytes() throws java.io.IOException
java.io.IOException
public final java.lang.String getImageAsBase64() throws java.io.IOException
java.io.IOException
public void close()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |