|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.cip4.jdflib.util.UrlPart
public class UrlPart
simple struct to contain the stream and type of a bodypart
| Field Summary | |
|---|---|
long |
contentLength
the content length of this UrlPart |
| Constructor Summary | |
|---|---|
UrlPart(javax.mail.BodyPart part)
|
|
UrlPart(File f)
|
|
UrlPart(HttpURLConnection connection)
|
|
| Method Summary | |
|---|---|
void |
buffer()
buffer my input stream |
HttpURLConnection |
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 |
void |
setInStream(InputStream inStream)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public long contentLength
| Constructor Detail |
|---|
public UrlPart(HttpURLConnection connection)
throws IOException
connection -
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| Method Detail |
|---|
public int getResponseCode()
IPollDetails
getResponseCode in interface IPollDetailspublic String getContentType()
IPollDetails
getContentType in interface IPollDetailspublic void setInStream(InputStream inStream)
inStream - the inStream to setpublic InputStream getResponseStream()
IPollDetails
getResponseStream in interface IPollDetailsIPollDetails.getResponseStream()public XMLDoc getXMLDoc()
public void buffer()
public String toString()
toString in class ObjectObject.toString()public HttpURLConnection getConnection()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||