HTTP Connector.
Implementations of this interface provide connectors for the HTTP protocol.
A connector receives requests (normally from a socket) and calls the
handle method of the Handler object. These operations are performed using
threads from the ThreadPool set on the connector.
When a connector is registered with an instance of Server, then the server
will set itself as both the ThreadPool and the Handler. Note that a connector
can be used without a Server if a thread pool and handler are directly provided.
author: gregw
Customize a request for an endpoint.
Called on every request to allow customization of the request for
the particular endpoint (eg security properties from a SSL connection).
Parameters: endpoint - Parameters: request - throws: IOException -
Persist an endpoint.
Called after every request if the connection is to remain open.
Parameters: endpoint - Parameters: request - throws: IOException -
Set the size of the buffer to be used for request and response headers.
An idle connection will at most have one buffer of this size allocated.
Parameters: headerBufferSize - The headerBufferSize to set.
Set the size of the content buffer for receiving requests.
These buffers are only used for active connections that have
requests with bodies that will not fit within the header buffer.
Parameters: requestBufferSize - The requestBufferSize to set.
Set the size of the content buffer for sending responses.
These buffers are only used for active connections that are sending
responses with bodies that will not fit within the header buffer.
Parameters: responseBufferSize - The responseBufferSize to set.