public class URLWriter
extends java.lang.Object
| Constructor and Description |
|---|
URLWriter(java.io.InputStream is,
java.lang.String strUrl,
java.lang.String method,
java.lang.String contentType,
HTTPDetails details) |
URLWriter(java.io.InputStream is,
java.net.URL url,
java.lang.String method,
java.lang.String contentType,
HTTPDetails details) |
URLWriter(java.lang.String strUrl,
IStreamWriter streamWriter,
java.lang.String method,
java.lang.String contentType,
HTTPDetails details) |
URLWriter(java.net.URL url,
IStreamWriter streamWriter,
java.lang.String method,
java.lang.String contentType,
HTTPDetails details) |
| Modifier and Type | Method and Description |
|---|---|
protected UrlPart |
callProxy(java.net.Proxy proxy) |
protected UrlPart |
callProxy(java.net.Proxy proxy,
boolean bWantLog) |
java.lang.Throwable |
getLastException() |
protected java.util.List<java.net.Proxy> |
getProxies(java.net.URI uri) |
boolean |
isAddDirect() |
void |
setAddDirect(boolean addDirect) |
java.lang.String |
toString() |
UrlPart |
writeToURL()
write a Stream to an output URL File: and http: are currently supported Use HttpURLConnection.getInputStream() to retrieve the http response
|
public URLWriter(java.net.URL url,
IStreamWriter streamWriter,
java.lang.String method,
java.lang.String contentType,
HTTPDetails details)
strUrl - the URL to write tostream - the input stream to read fromstreamWriter - method - HEAD, GET or POSTcontentType - the contenttype to set, if NULL defaults to TEXT/UNKNOWNdetails - public URLWriter(java.lang.String strUrl,
IStreamWriter streamWriter,
java.lang.String method,
java.lang.String contentType,
HTTPDetails details)
strUrl - the URL to write tostream - the input stream to read fromstreamWriter - method - HEAD, GET or POSTcontentType - the contenttype to set, if NULL defaults to TEXT/UNKNOWNdetails - public URLWriter(java.io.InputStream is,
java.lang.String strUrl,
java.lang.String method,
java.lang.String contentType,
HTTPDetails details)
strUrl - the URL to write tostream - the input stream to read fromstreamWriter - method - HEAD, GET or POSTcontentType - the contenttype to set, if NULL defaults to TEXT/UNKNOWNdetails - public URLWriter(java.io.InputStream is,
java.net.URL url,
java.lang.String method,
java.lang.String contentType,
HTTPDetails details)
strUrl - the URL to write tostream - the input stream to read fromstreamWriter - method - HEAD, GET or POSTcontentType - the contenttype to set, if NULL defaults to TEXT/UNKNOWNdetails - public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public boolean isAddDirect()
public void setAddDirect(boolean addDirect)
public UrlPart writeToURL()
UrlPart the opened http connection, null in case of errorprotected java.util.List<java.net.Proxy> getProxies(java.net.URI uri)
protected UrlPart callProxy(java.net.Proxy proxy, boolean bWantLog)
proxy - bWantLog - protected UrlPart callProxy(java.net.Proxy proxy) throws java.io.IOException, java.net.ProtocolException
java.io.IOExceptionjava.net.ProtocolExceptionpublic java.lang.Throwable getLastException()