|
BEA Systems, Inc. | |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.net.URLConnection java.net.HttpURLConnection weblogic.net.http.HttpURLConnection
A class to represent an HTTP connection to a remote object.
Field Summary | |
protected static int |
defaultConnectTimeout
|
Fields inherited from class java.net.URLConnection |
allowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches |
Constructor Summary | |
HttpURLConnection(URL u)
|
Method Summary | |
void |
addRequestProperty(String key,
String value)
Adds a general request property specified by a key-value pair. |
void |
connect()
|
void |
disconnect()
Disconnect from the server. |
protected void |
doSetRequests()
|
protected boolean |
followRedirect()
|
static String |
getAuthInfo(String host,
int port,
String header)
|
int |
getConnectTimeout()
|
InputStream |
getErrorStream()
|
String |
getHeaderField(int n)
Gets a header field by index. |
String |
getHeaderField(String name)
Gets a header field by name. |
String |
getHeaderFieldKey(int n)
Gets a header field by index. |
Map |
getHeaderFields()
Gets all header fields. |
protected weblogic.net.http.HttpClient |
getHttpClient()
|
InputStream |
getInputStream()
|
OutputStream |
getOutputStream()
|
protected String |
getProtocol()
|
protected static String |
getProxyAuthString()
|
int |
getReadTimeout()
|
Map |
getRequestProperties()
|
String |
getRequestProperty(String key)
|
int |
getResponseCode()
|
SocketFactory |
getSocketFactory()
Gets the SocketFactory to be used when creating sockets
for http URL connections. |
int |
getTimeout()
Deprecated. since 9.0. Use getReadTimeout() instead |
void |
setChunkedStreamingMode(int chunkLength)
|
void |
setConnectTimeout(int i)
|
void |
setEmptyRequestProperty(String key)
|
void |
setFixedLengthStreamingMode(int fixedContentLength)
|
void |
setMuxableSocket(Object socket)
|
void |
setReadTimeout(int i)
|
void |
setRequestProperty(String key,
String value)
|
void |
setSocketFactory(SocketFactory fact)
Sets the SocketFactory to be used when creating sockets
for http URL connections. |
void |
setTimeout(int i)
Deprecated. since 9.0. Use setReadTimeout(int) instead |
boolean |
usingProxy()
|
protected void |
writeRequests()
|
Methods inherited from class java.net.HttpURLConnection |
getFollowRedirects, getHeaderFieldDate, getInstanceFollowRedirects, getPermission, getRequestMethod, getResponseMessage, setFollowRedirects, setInstanceFollowRedirects, setRequestMethod |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected static int defaultConnectTimeout
Constructor Detail |
public HttpURLConnection(URL u)
Method Detail |
public void addRequestProperty(String key, String value)
key
- - request header namevalue
- - request header valuepublic void connect() throws IOException
IOException
public void disconnect()
protected void doSetRequests()
protected boolean followRedirect() throws IOException
IOException
public static String getAuthInfo(String host, int port, String header) throws IOException
IOException
public int getConnectTimeout()
public InputStream getErrorStream()
public String getHeaderField(int n)
n
- the index of the header fieldpublic String getHeaderField(String name)
name
- the name of the header fieldpublic String getHeaderFieldKey(int n)
n
- the index of the header fieldpublic Map getHeaderFields()
protected weblogic.net.http.HttpClient getHttpClient() throws IOException
IOException
public InputStream getInputStream() throws IOException
IOException
public OutputStream getOutputStream() throws IOException
IOException
protected String getProtocol()
protected static String getProxyAuthString()
public int getReadTimeout()
public Map getRequestProperties()
public String getRequestProperty(String key)
public int getResponseCode() throws IOException
IOException
public final SocketFactory getSocketFactory()
SocketFactory
to be used when creating sockets
for http URL connections.
public int getTimeout()
public void setChunkedStreamingMode(int chunkLength)
public void setConnectTimeout(int i)
public void setEmptyRequestProperty(String key)
public void setFixedLengthStreamingMode(int fixedContentLength)
public void setMuxableSocket(Object socket)
public void setReadTimeout(int i)
public void setRequestProperty(String key, String value)
public final void setSocketFactory(SocketFactory fact)
SocketFactory
to be used when creating sockets
for http URL connections.
public void setTimeout(int i)
i
- in millisecondspublic boolean usingProxy()
protected void writeRequests() throws IOException
IOException
|
Documentation is available at http://download.oracle.com/docs/cd/E13222_01/wls/docs91 Copyright 2005 BEA Systems Inc. |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |