weblogic.net.http
Class HttpClient
java.lang.Object
|
+--weblogic.net.http.HttpClient
- Direct Known Subclasses:
- HttpsClient
- public class HttpClient
- extends java.lang.Object
- Author:
- Copyright © 2000 BEA Systems, Inc. All Rights Reserved.
Constructor Summary
|
protected |
HttpClient(java.net.URL url)
|
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
proxyHost
public static java.lang.String proxyHost
proxyPort
public static int proxyPort
kac
protected static KeepAliveCache kac
kas
protected KeepAliveStream kas
serverSocket
protected java.net.Socket serverSocket
serverOutput
protected HttpOutputStream serverOutput
serverInput
protected java.io.InputStream serverInput
usingProxy
public boolean usingProxy
host
protected java.lang.String host
port
protected int port
numReq
protected int numReq
url
protected java.net.URL url
- Url being fetched.
HttpClient
protected HttpClient(java.net.URL url)
throws java.io.IOException
resetProperties
public static void resetProperties()
- re-initialize the dontProxy list, proxyHost/proxyPort, and
maxConnections from system properties.
toString
public java.lang.String toString()
- Overrides:
- toString in class java.lang.Object
isKeepingAlive
public final boolean isKeepingAlive()
getInputStream
public java.io.InputStream getInputStream()
getOutputStream
public HttpOutputStream getOutputStream()
getDefaultPort
protected int getDefaultPort()
- return default port number (subclasses may override)
New
public static HttpClient New(java.net.URL url)
throws java.io.IOException
finished
public static void finished(HttpClient done)
openServer
protected void openServer(java.lang.String server,
int port)
throws java.io.IOException
getProtocol
protected java.lang.String getProtocol()
openServer
protected void openServer()
throws java.io.IOException
getURLFile
public java.lang.String getURLFile()
- Parse the first line of the HTTP request. It usually looks
something like: "HTTP/1.0 comment\r\n".
parseHTTP
public void parseHTTP(MessageHeader responses)
throws java.io.IOException
closeServer
public void closeServer()
- Closes server and removes from KeepAliveCache