org.mortbay.http.ajp
public class AJP13Listener extends ThreadedServer implements HttpListener
This code uses the AJP13 code from tomcat3.3 as the protocol specification, but is new implementation.
Version: $Id: AJP13Listener.java,v 1.20 2006/10/08 14:13:05 gregwilkins Exp $
Constructor Summary | |
---|---|
AJP13Listener() | |
AJP13Listener(InetAddrPort address) |
Method Summary | |
---|---|
protected AJP13Connection | createConnection(Socket socket)
Create an AJP13Connection instance. |
void | customizeRequest(HttpConnection connection, HttpRequest request)
Customize the request from connection. |
protected void | customizeRequest(Socket socket, HttpRequest request)
Customize request from socket. |
int | getBufferReserve() |
int | getBufferSize() |
int | getConfidentialPort() |
String | getConfidentialScheme() |
String | getDefaultScheme() |
HttpHandler | getHttpHandler() |
HttpServer | getHttpServer() |
boolean | getIdentifyListener() |
int | getIntegralPort() |
String | getIntegralScheme() |
String[] | getRemoteServers() |
void | handleConnection(Socket socket)
Handle Job. |
boolean | isConfidential(HttpConnection connection) |
boolean | isIntegral(HttpConnection connection) |
boolean | isLowOnResources() |
boolean | isOutOfResources() |
void | persistConnection(HttpConnection connection)
Persist the connection.
|
void | setBufferReserve(int size) |
void | setBufferSize(int size) |
void | setConfidentialPort(int confidentialPort) |
void | setConfidentialScheme(String confidentialScheme) |
void | setHttpHandler(HttpHandler handler) |
void | setHttpServer(HttpServer server) |
void | setIdentifyListener(boolean identifyListener) |
void | setIntegralPort(int integralPort) |
void | setIntegralScheme(String integralScheme) |
void | setRemoteServers(String[] servers)
Set accepted remote servers. |
void | start() |
void | stop() |
Parameters: socket The underlying socket.
Parameters: request
Parameters: request
Returns: Array of accepted remote server hostnames or IPs.
Parameters: socket A Connection.
Returns: True if low on idle threads.
Returns: True if out of resources.
Parameters: connection
Parameters: identifyListener If true, the listener name is added to all requests as the org.mortbay.http.HttListener attribute
Parameters: servers Array of accepted remote server hostnames or IPs