|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.net.URLConnection
java.net.HttpURLConnection
org.sblim.cimclient.internal.http.HttpUrlConnection
public class HttpUrlConnection
Class HttpUrlConnection encapsulates a http connection
| Field Summary | |
|---|---|
protected URI |
iUrl
|
| Fields inherited from class java.net.URLConnection |
|---|
allowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches |
| Constructor Summary | |
|---|---|
HttpUrlConnection(URI pUri,
HttpClientPool pHttpClientPool,
AuthorizationHandler pAuthHandler)
Ctor. |
|
| Method Summary | |
|---|---|
void |
close()
Closes the client pool |
void |
connect()
|
void |
disconnect()
|
String |
getHeaderField(int index)
|
String |
getHeaderField(String name)
|
String |
getHeaderFieldKey(int index)
|
HttpClient |
getHttpClient()
Returns the http client |
InputStream |
getInputStream()
|
OutputStream |
getOutputStream()
|
Permission |
getPermission()
|
String |
getRequestMethod()
|
String |
getRequestProperty(String key)
|
int |
getResponseCode()
|
String |
getResponseMessage()
|
void |
reset()
Resets the http client |
void |
setRequestMethod(String pMethod)
|
void |
setRequestProperty(String key,
String value)
|
String |
toString()
|
void |
useHttp11(boolean pUse11)
Enables/Disables the use of http 1.1 |
boolean |
usingProxy()
|
| Methods inherited from class java.net.HttpURLConnection |
|---|
getErrorStream, getFollowRedirects, getHeaderFieldDate, getInstanceFollowRedirects, setChunkedStreamingMode, setFixedLengthStreamingMode, setFollowRedirects, setInstanceFollowRedirects |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected URI iUrl
| Constructor Detail |
|---|
public HttpUrlConnection(URI pUri,
HttpClientPool pHttpClientPool,
AuthorizationHandler pAuthHandler)
pUri - The host URIpHttpClientPool - The client poolpAuthHandler - The authentication handler| Method Detail |
|---|
public String toString()
toString in class URLConnectionpublic Permission getPermission()
getPermission in class HttpURLConnection
public void connect()
throws IOException
connect in class URLConnectionIOExceptionpublic void setRequestMethod(String pMethod)
setRequestMethod in class HttpURLConnection
public void setRequestProperty(String key,
String value)
setRequestProperty in class URLConnectionpublic void disconnect()
disconnect in class HttpURLConnectionpublic void close()
public InputStream getInputStream()
throws IOException
getInputStream in class URLConnectionIOException
public OutputStream getOutputStream()
throws RuntimeException
getOutputStream in class URLConnectionRuntimeExceptionpublic boolean usingProxy()
usingProxy in class HttpURLConnectionpublic HttpClient getHttpClient()
public String getHeaderField(String name)
getHeaderField in class URLConnectionpublic String getHeaderFieldKey(int index)
getHeaderFieldKey in class HttpURLConnectionpublic String getHeaderField(int index)
getHeaderField in class HttpURLConnectionpublic String getRequestProperty(String key)
getRequestProperty in class URLConnectionpublic String getRequestMethod()
getRequestMethod in class HttpURLConnectionpublic void reset()
public int getResponseCode()
throws IOException
getResponseCode in class HttpURLConnectionIOExceptionpublic String getResponseMessage()
getResponseMessage in class HttpURLConnectionpublic void useHttp11(boolean pUse11)
pUse11 - If true http 1.1 is enabled.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||