|
||||||||||
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 handlerMethod Detail |
---|
public String toString()
toString
in class URLConnection
public Permission getPermission()
getPermission
in class HttpURLConnection
public void connect() throws IOException
connect
in class URLConnection
IOException
public void setRequestMethod(String pMethod)
setRequestMethod
in class HttpURLConnection
public void setRequestProperty(String key, String value)
setRequestProperty
in class URLConnection
public void disconnect()
disconnect
in class HttpURLConnection
public void close()
public InputStream getInputStream() throws IOException
getInputStream
in class URLConnection
IOException
public OutputStream getOutputStream() throws RuntimeException
getOutputStream
in class URLConnection
RuntimeException
public boolean usingProxy()
usingProxy
in class HttpURLConnection
public HttpClient getHttpClient()
public String getHeaderField(String name)
getHeaderField
in class URLConnection
public String getHeaderFieldKey(int index)
getHeaderFieldKey
in class HttpURLConnection
public String getHeaderField(int index)
getHeaderField
in class HttpURLConnection
public String getRequestProperty(String key)
getRequestProperty
in class URLConnection
public String getRequestMethod()
getRequestMethod
in class HttpURLConnection
public void reset()
public int getResponseCode() throws IOException
getResponseCode
in class HttpURLConnection
IOException
public String getResponseMessage()
getResponseMessage
in class HttpURLConnection
public 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 |