There are a whole number of methods for each request type; however the general forms are ([...] means that the enclosed is optional):
HTTPConnection
connects to a specified host on a specified port by establishing an HTTP/1.1 tunnel. This uses HTTP CONNECT to create a persistent connection and uses that to send and receive data.
@author Raghu
@version 0.1
@see hamsam.net.SocksConnection SocksConnection
@see hamsam.net.DirectConnection DirectConnection
The following options are set on the socket before getting the input/output streams in the {@link #open()} method:
Socket Method | Sockets Option | Configuration |
---|---|---|
{@link java.net.Socket#setTcpNoDelay(boolean)} | SO_NODELAY | {@link HttpConnectionParams#setTcpNoDelay(boolean)} |
{@link java.net.Socket#setSoTimeout(int)} | SO_TIMEOUT | {@link HttpConnectionParams#setSoTimeout(int)} |
{@link java.net.Socket#setSendBufferSize(int)} | SO_SNDBUF | {@link HttpConnectionParams#setSendBufferSize(int)} |
{@link java.net.Socket#setReceiveBufferSize(int)} | SO_RCVBUF | {@link HttpConnectionParams#setReceiveBufferSize(int)} |
HttpConnection
represents a persistent http or https connection and contains various utility methods to access that connection.
A {@link Connection} that handles the HTTP protocol.
There are a whole number of methods for each request type; however the general forms are ([...] means that the enclosed is optional):
A HttpConnection represents the connection of a HTTP client to the server and is created by an instance of a {@link Connector}. It's prime function is to associate {@link Request} and {@link Response} instances with a {@link EndPoint}.
A connection is also the prime mechanism used by jetty to recycle objects without pooling. The {@link Request}, {@link Response}, {@link HttpParser}, {@link HttpGenerator}and {@link HttpFields} instances are all recycled for the duraction ofa connection. Where appropriate, allocated buffers are also kept associated with the connection via the parser and/or generator.
@author gregw
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|