|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ch.othello.openscep.internal.ScepHTTPGet
$Id: ScepHTTPGet.java,v 1.1 2002/02/07 12:40:56 urut Exp $ $Log: ScepHTTPGet.java,v $
Field Summary | |
(package private) HttpURLConnection |
connection
|
(package private) URL |
url
|
Constructor Summary | |
ScepHTTPGet(byte[] message,
String operation)
constructor with defaults |
|
ScepHTTPGet(byte[] message,
String operation,
String path)
constructor |
Method Summary | |
void |
disconnect()
disconnect |
byte[] |
getContent()
read content (if there is any) this one is a bit confusing - it reads till the first occurence of "Content-Length", reads the length, reads the two remaining linefeeds and then reads the number of bytes specified as Content-Length. |
String |
getContentEncoding()
|
int |
getContentLength()
|
String |
getContentType()
|
int |
getResponseCode()
HTTP code |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
URL url
HttpURLConnection connection
Constructor Detail |
public ScepHTTPGet(byte[] message, String operation, String path)
message
- Base64 encoded messageoperation
- path
- public ScepHTTPGet(byte[] message, String operation)
message
- base64 encoded messageoperation
- Method Detail |
public String getContentType()
public String getContentEncoding()
public int getContentLength()
public byte[] getContent()
public int getResponseCode() throws IOException
IOException
public void disconnect()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |