public class AJP13Connection extends HttpConnection
_dotVersion, _keepAlive, _persistent, _request, _response__CLOSED, __CLOSING, __COMMITING, __FIRST_WRITE, __RESET_BUFFER| Constructor and Description |
|---|
AJP13Connection(AJP13Listener listener,
java.io.InputStream in,
java.io.OutputStream out,
java.net.Socket socket,
int bufferSize) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
commit() |
void |
destroy()
Destroy the connection.
|
protected void |
firstWrite()
Setup the reponse output stream.
|
java.lang.String |
getDefaultScheme()
Get the listeners Default scheme.
|
java.lang.String |
getRemoteAddr()
Get the Remote address.
|
java.lang.String |
getRemoteHost()
Get the Remote address.
|
java.net.InetAddress |
getRemoteInetAddress()
Get the Remote address.
|
java.lang.String |
getServerName()
Get the listeners HttpServer .
|
int |
getServerPort()
Get the listeners Port .
|
boolean |
handleNext()
Handle next request off the connection.
|
boolean |
isSSL() |
protected void |
setupOutputStream() |
associateThread, close, disassociateThread, forceClose, getConnection, getHttpServer, getHttpTunnel, getInputStream, getListener, getObject, getOutputStream, getRemotePort, getRequest, getResponse, getServerAddr, handle, isThrottled, outputNotify, readRequest, recycle, service, setHttpTunnel, setObject, setThrottled, statsRequestEnd, statsRequestStartpublic AJP13Connection(AJP13Listener listener, java.io.InputStream in, java.io.OutputStream out, java.net.Socket socket, int bufferSize) throws java.io.IOException
java.io.IOExceptionpublic java.net.InetAddress getRemoteInetAddress()
getRemoteInetAddress in class HttpConnectionpublic void destroy()
HttpConnectiondestroy in class HttpConnectionpublic java.lang.String getRemoteAddr()
getRemoteAddr in class HttpConnectionpublic java.lang.String getRemoteHost()
getRemoteHost in class HttpConnectionpublic java.lang.String getServerName()
getServerName in class HttpConnectionpublic int getServerPort()
getServerPort in class HttpConnectionpublic java.lang.String getDefaultScheme()
getDefaultScheme in class HttpConnectionpublic boolean isSSL()
public boolean handleNext()
HttpConnectionIf a HttpTunnel has been set on this connection, it's handle method is called and when that completes, false is return from this method.
The Connection is set as a ThreadLocal of the calling thread and is available via the getHttpConnection() method.
handleNext in class HttpConnectionprotected void firstWrite()
throws java.io.IOException
HttpConnectionfirstWrite in class HttpConnectionjava.io.IOExceptionprotected void commit()
throws java.io.IOException
commit in class HttpConnectionjava.io.IOExceptionprotected void setupOutputStream()
throws java.io.IOException
java.io.IOExceptionCopyright © 2004 Mortbay Consulting Pty. Ltd. All Rights Reserved.