public class UrlPart extends java.lang.Object implements IPollDetails, IStreamWriter
| Modifier and Type | Field and Description |
|---|---|
long |
contentLength
the content length of this UrlPart
|
| Constructor and Description |
|---|
UrlPart(javax.mail.BodyPart part) |
UrlPart(java.io.File f) |
UrlPart(java.net.HttpURLConnection connection) |
UrlPart(java.net.URLConnection connection,
boolean isHttp) |
| Modifier and Type | Method and Description |
|---|---|
void |
buffer()
buffer my input stream
|
protected void |
finalize() |
java.net.URLConnection |
getConnection() |
java.lang.String |
getContentType()
get the content type of the polled stuff
|
int |
getResponseCode()
get the new response code (e.g.
|
java.io.InputStream |
getResponseStream()
get the resulting stream - may be null
|
XMLDoc |
getXMLDoc()
returns an xmldoc corresponding to this part
|
boolean |
isPush()
we are polling
|
void |
setInStream(java.io.InputStream inStream) |
java.lang.String |
toString() |
void |
writeStream(java.io.OutputStream os)
write myself to a stream
|
public UrlPart(java.net.HttpURLConnection connection)
throws java.io.IOException
connection - java.io.IOExceptionpublic UrlPart(java.net.URLConnection connection,
boolean isHttp)
throws java.io.IOException
connection - isHttp - java.io.IOExceptionpublic UrlPart(javax.mail.BodyPart part)
throws javax.mail.MessagingException,
java.io.IOException
part - javax.mail.MessagingExceptionjava.io.IOExceptionpublic UrlPart(java.io.File f)
throws java.io.IOException
f - java.io.IOExceptionpublic int getResponseCode()
IPollDetailsgetResponseCode in interface IPollDetailspublic void writeStream(java.io.OutputStream os)
throws java.io.IOException
IStreamWriterwriteStream in interface IStreamWriteros - the output streamjava.io.IOException - if io snafu...public java.lang.String getContentType()
IPollDetailsgetContentType in interface IPollDetailspublic void setInStream(java.io.InputStream inStream)
inStream - the inStream to setpublic java.io.InputStream getResponseStream()
IPollDetailsgetResponseStream in interface IPollDetailsIPollDetails.getResponseStream()public XMLDoc getXMLDoc()
public void buffer()
public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public java.net.URLConnection getConnection()
public boolean isPush()
isPush in interface IPollDetailsIPollDetails.isPush()protected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwable