|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
provides a simple interface to open a connection and request some content from a server
| Method Summary | |
void |
closeConnection()
Close the connection to the server. |
java.io.InputStream |
getInputStreamResponse()
Get the response as an InputStream object. |
java.util.LinkedList |
getResponseCookies()
Get the list of response cookies the remote server has sent |
java.lang.String |
getResponseHeader(java.lang.String name)
Get a specific response header by name. |
java.util.Hashtable |
getResponseHeaders()
Get the collection of response headers set by the remote server |
int |
getStatusCode()
Get the response statuse code based on the HTTP RFC (200 - OK and so on) |
java.lang.String |
getTextResponseBody()
Get the HTML response as a String object. |
int |
OpenConnection()
Opens a connection according to the properties the object was initialized with. |
| Method Detail |
public int OpenConnection()
throws java.io.IOException,
java.lang.NullPointerException
public void closeConnection()
public int getStatusCode()
throws java.io.IOException,
com.sapportals.portal.ivs.http.HttpClientException
public java.lang.String getTextResponseBody()
throws java.io.IOException
public java.io.InputStream getInputStreamResponse()
throws com.sapportals.portal.ivs.http.HttpClientException,
java.io.IOException
public java.util.LinkedList getResponseCookies()
throws com.sapportals.portal.ivs.http.HttpClientException,
java.io.IOException
public java.util.Hashtable getResponseHeaders()
throws com.sapportals.portal.ivs.http.HttpClientException,
java.io.IOException
public java.lang.String getResponseHeader(java.lang.String name)
throws com.sapportals.portal.ivs.http.HttpClientException,
java.io.IOException
name - header name to get
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||