|
BEA Systems, Inc. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | 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 ContentLengthOutputStream |
clenOS
|
protected HttpClient |
http
|
protected java.io.InputStream |
inputStream
|
protected weblogic.utils.io.UnsyncByteArrayOutputStream |
poster
|
protected HttpOutputStream |
ps
|
protected MessageHeader |
requests
|
protected MessageHeader |
responses
|
protected boolean |
setRequests
|
static java.lang.String |
userAgent
|
Fields inherited from class java.net.HttpURLConnection |
HTTP_ACCEPTED,
HTTP_BAD_GATEWAY,
HTTP_BAD_METHOD,
HTTP_BAD_REQUEST,
HTTP_CLIENT_TIMEOUT,
HTTP_CONFLICT,
HTTP_CREATED,
HTTP_ENTITY_TOO_LARGE,
HTTP_FORBIDDEN,
HTTP_GATEWAY_TIMEOUT,
HTTP_GONE,
HTTP_INTERNAL_ERROR,
HTTP_LENGTH_REQUIRED,
HTTP_MOVED_PERM,
HTTP_MOVED_TEMP,
HTTP_MULT_CHOICE,
HTTP_NO_CONTENT,
HTTP_NOT_ACCEPTABLE,
HTTP_NOT_AUTHORITATIVE,
HTTP_NOT_FOUND,
HTTP_NOT_MODIFIED,
HTTP_OK,
HTTP_PARTIAL,
HTTP_PAYMENT_REQUIRED,
HTTP_PRECON_FAILED,
HTTP_PROXY_AUTH,
HTTP_REQ_TOO_LONG,
HTTP_RESET,
HTTP_SEE_OTHER,
HTTP_SERVER_ERROR,
HTTP_UNAUTHORIZED,
HTTP_UNAVAILABLE,
HTTP_UNSUPPORTED_TYPE,
HTTP_USE_PROXY,
HTTP_VERSION,
method,
responseCode,
responseMessage |
Fields inherited from class java.net.URLConnection |
allowUserInteraction,
connected,
doInput,
doOutput,
ifModifiedSince,
url,
useCaches |
Constructor Summary | |
HttpURLConnection(java.net.URL u)
|
Method Summary | |
void |
connect()
|
void |
disconnect()
Disconnect from the server. |
protected void |
doSetRequests()
|
protected boolean |
followRedirect()
|
static java.lang.String |
getAuthInfo(java.lang.String host,
int port,
java.lang.String header)
|
java.lang.String |
getHeaderField(int n)
Gets a header field by index. |
java.lang.String |
getHeaderField(java.lang.String name)
Gets a header field by name. |
java.lang.String |
getHeaderFieldKey(int n)
Gets a header field by index. |
protected HttpClient |
getHttpClient()
|
java.io.InputStream |
getInputStream()
|
java.io.OutputStream |
getOutputStream()
|
protected java.lang.String |
getProtocol()
|
java.lang.String |
getRequestProperty(java.lang.String key)
|
void |
setRequestProperty(java.lang.String key,
java.lang.String value)
|
boolean |
usingProxy()
|
protected void |
writeRequests()
|
Methods inherited from class java.net.HttpURLConnection |
getErrorStream,
getFollowRedirects,
getPermission,
getRequestMethod,
getResponseCode,
getResponseMessage,
setFollowRedirects,
setRequestMethod |
Methods inherited from class java.net.URLConnection |
getAllowUserInteraction,
getContent,
getContentEncoding,
getContentLength,
getContentType,
getDate,
getDefaultAllowUserInteraction,
getDefaultRequestProperty,
getDefaultUseCaches,
getDoInput,
getDoOutput,
getExpiration,
getFileNameMap,
getHeaderFieldDate,
getHeaderFieldInt,
getIfModifiedSince,
getLastModified,
getURL,
getUseCaches,
guessContentTypeFromName,
guessContentTypeFromStream,
setAllowUserInteraction,
setContentHandlerFactory,
setDefaultAllowUserInteraction,
setDefaultRequestProperty,
setDefaultUseCaches,
setDoInput,
setDoOutput,
setFileNameMap,
setIfModifiedSince,
setUseCaches,
toString |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
public static final java.lang.String userAgent
protected HttpClient http
protected HttpOutputStream ps
protected MessageHeader requests
protected MessageHeader responses
protected java.io.InputStream inputStream
protected ContentLengthOutputStream clenOS
protected weblogic.utils.io.UnsyncByteArrayOutputStream poster
protected boolean setRequests
Constructor Detail |
public HttpURLConnection(java.net.URL u)
Method Detail |
protected java.lang.String getProtocol()
protected void writeRequests() throws java.io.IOException
public void connect() throws java.io.IOException
protected HttpClient getHttpClient() throws java.io.IOException
public java.io.OutputStream getOutputStream() throws java.io.IOException
public static java.lang.String getAuthInfo(java.lang.String host, int port, java.lang.String header) throws java.io.IOException
public java.io.InputStream getInputStream() throws java.io.IOException
protected boolean followRedirect() throws java.io.IOException
public void disconnect()
public boolean usingProxy()
public java.lang.String getHeaderField(java.lang.String name)
name
- the name of the header fieldpublic java.lang.String getHeaderField(int n)
n
- the index of the header fieldpublic java.lang.String getHeaderFieldKey(int n)
n
- the index of the header fieldpublic void setRequestProperty(java.lang.String key, java.lang.String value)
public java.lang.String getRequestProperty(java.lang.String key)
protected void doSetRequests()
|
Documentation is available at http://www.weblogic.com/docs51 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |