public class UrlPart extends Object implements IPollDetails
| Modifier and Type | Field and Description |
|---|---|
long |
contentLength
the content length of this UrlPart
|
| Constructor and Description |
|---|
UrlPart(javax.mail.BodyPart part) |
UrlPart(File f) |
UrlPart(HttpURLConnection connection) |
| Modifier and Type | Method and Description |
|---|---|
void |
buffer()
buffer my input stream
|
protected void |
finalize() |
HttpURLConnection |
getConnection() |
String |
getContentType()
get the content type of the polled stuff
|
int |
getResponseCode()
get the new response code (e.g.
|
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(InputStream inStream) |
String |
toString() |
public UrlPart(HttpURLConnection connection) throws IOException
connection - IOExceptionpublic UrlPart(javax.mail.BodyPart part)
throws javax.mail.MessagingException,
IOException
part - javax.mail.MessagingExceptionIOExceptionpublic UrlPart(File f) throws IOException
f - IOExceptionpublic int getResponseCode()
IPollDetailsgetResponseCode in interface IPollDetailspublic String getContentType()
IPollDetailsgetContentType in interface IPollDetailspublic void setInStream(InputStream inStream)
inStream - the inStream to setpublic InputStream getResponseStream()
IPollDetailsgetResponseStream in interface IPollDetailsIPollDetails.getResponseStream()public XMLDoc getXMLDoc()
public void buffer()
public String toString()
toString in class ObjectObject.toString()public HttpURLConnection getConnection()
public boolean isPush()
isPush in interface IPollDetailsIPollDetails.isPush()Copyright © 2015. All rights reserved.