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) |
UrlPart(URLConnection connection,
boolean isHttp) |
Modifier and Type | Method and Description |
---|---|
void |
buffer()
buffer my input stream
|
protected void |
finalize() |
URLConnection |
getConnection() |
String |
getContentType()
get the content type of the polled stuff
|
int |
getResponseCode()
get the new response code (e.g. 200 for success)
|
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
- IOException
public UrlPart(URLConnection connection, boolean isHttp) throws IOException
connection
- isHttp
- IOException
public UrlPart(javax.mail.BodyPart part) throws javax.mail.MessagingException, IOException
part
- javax.mail.MessagingException
IOException
public UrlPart(File f) throws IOException
f
- IOException
public int getResponseCode()
IPollDetails
getResponseCode
in interface IPollDetails
public String getContentType()
IPollDetails
getContentType
in interface IPollDetails
public void setInStream(InputStream inStream)
inStream
- the inStream to setpublic InputStream getResponseStream()
IPollDetails
getResponseStream
in interface IPollDetails
IPollDetails.getResponseStream()
public XMLDoc getXMLDoc()
public void buffer()
public String toString()
toString
in class Object
Object.toString()
public URLConnection getConnection()
public boolean isPush()
isPush
in interface IPollDetails
IPollDetails.isPush()
Copyright © 2018. All rights reserved.