|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mortbay.util.ThreadPool
org.mortbay.util.ThreadedServer
org.enhydra.servlet.connectionMethods.EnhydraDirector.EnhydraListener
Nested Class Summary |
Nested classes inherited from class org.mortbay.util.ThreadPool |
org.mortbay.util.ThreadPool.PoolThread |
Field Summary | |
protected java.lang.String |
authKey
|
protected java.lang.String |
bindAddress
|
protected int |
clientTimeout
|
protected static java.lang.String |
DEFAULT_AUTH_KEY
|
static int |
DEFAULT_CLIENT_TIMEOUT
|
static java.lang.String |
SESSION_AFFINITY
|
protected boolean |
sessionAffinity
|
Fields inherited from class org.mortbay.util.ThreadPool |
__DAEMON, __PRIORITY |
Fields inherited from interface org.mortbay.http.HttpListener |
ATTRIBUTE |
Constructor Summary | |
EnhydraListener()
|
|
EnhydraListener(org.mortbay.util.InetAddrPort address)
|
Method Summary | |
protected EnhydraConnection |
createConnection(java.net.Socket socket)
|
void |
customizeRequest(org.mortbay.http.HttpConnection connection,
org.mortbay.http.HttpRequest request)
Customize the request from connection. |
protected void |
customizeRequest(java.net.Socket socket,
org.mortbay.http.HttpRequest request)
Customize request from socket. |
int |
getAcceptCount()
|
java.lang.String |
getAuthKey()
Get the authentication key for this connection. |
java.lang.String |
getBindAddress()
Gets the current Bind address, if any. |
int |
getBufferReserve()
|
int |
getBufferSize()
|
int |
getClientTimeout()
Gets the client timeout associated with this connection method. |
int |
getConfidentialPort()
|
java.lang.String |
getConfidentialScheme()
|
java.lang.String |
getDefaultScheme()
|
boolean |
getEnableLookups()
|
org.mortbay.http.HttpHandler |
getHttpHandler()
|
org.mortbay.http.HttpServer |
getHttpServer()
|
boolean |
getIdentifyListener()
|
int |
getIntegralPort()
|
java.lang.String |
getIntegralScheme()
|
boolean |
getSessionAffinity()
getSessionAffinity() and setSessionAffinity(). |
int |
getThreadTimeout()
|
java.lang.String |
getURIEncoding()
|
boolean |
getUseBodyEncodingForURI()
|
void |
handleConnection(java.net.Socket socket)
|
boolean |
isConfidential(org.mortbay.http.HttpConnection connection)
|
boolean |
isIntegral(org.mortbay.http.HttpConnection connection)
|
boolean |
isLowOnResources()
Get the lowOnResource state of the listener. |
boolean |
isOutOfResources()
Get the outOfResource state of the listener. |
void |
manageServerId(java.net.Socket socket)
|
void |
persistConnection(org.mortbay.http.HttpConnection connection)
Persist the connection. |
void |
setAcceptCount(int i)
|
void |
setAuthKey(java.lang.String authKey)
Set the authentication key for this connection. |
void |
setBindAddress(java.lang.String addr)
Sets the current Bind address, if any. |
void |
setBufferReserve(int size)
|
void |
setBufferSize(int size)
|
void |
setClientTimeout(int clientTimeout)
|
void |
setConfidentialPort(int confidentialPort)
|
void |
setConfidentialScheme(java.lang.String confidentialScheme)
|
void |
setEnableLookups(boolean enable)
|
void |
setHttpHandler(org.mortbay.http.HttpHandler handler)
|
void |
setHttpServer(org.mortbay.http.HttpServer server)
|
void |
setIdentifyListener(boolean identifyListener)
|
void |
setIntegralPort(int integralPort)
|
void |
setIntegralScheme(java.lang.String integralScheme)
|
void |
setSessionAffinity(java.lang.String sessionAffinity)
|
void |
setThreadTimeout(int threadTimeout)
|
void |
setURIEncoding(java.lang.String enc)
|
void |
setUseBodyEncodingForURI(boolean use)
|
void |
start()
|
void |
stop()
|
Methods inherited from class org.mortbay.util.ThreadedServer |
acceptSocket, acceptSocket, getAcceptorThreads, getAcceptQueueSize, getHost, getInetAddress, getInetAddrPort, getLingerTimeSecs, getMaxReadTimeMs, getPort, getServerSocket, getTcpNoDelay, handle, handleConnection, newServerSocket, open, setAcceptorThreads, setAcceptQueueSize, setHost, setInetAddress, setInetAddrPort, setLingerTimeSecs, setMaxReadTimeMs, setPort, setTcpNoDelay, stopJob, toString |
Methods inherited from class org.mortbay.util.ThreadPool |
getIdleThreads, getMaxIdleTimeMs, getMaxThreads, getMinThreads, getName, getPoolName, getThreads, getThreadsPriority, isDaemon, isStarted, join, run, setDaemon, setMaxIdleTimeMs, setMaxStopTimeMs, setMaxThreads, setMinThreads, setName, setPoolName, setThreadsPriority, shrink |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.mortbay.http.HttpListener |
getHost, getPort, setHost, setPort |
Methods inherited from interface org.mortbay.util.LifeCycle |
isStarted |
Field Detail |
public static final java.lang.String SESSION_AFFINITY
protected boolean sessionAffinity
protected static final java.lang.String DEFAULT_AUTH_KEY
public static final int DEFAULT_CLIENT_TIMEOUT
protected int clientTimeout
protected java.lang.String bindAddress
protected java.lang.String authKey
Constructor Detail |
public EnhydraListener()
public EnhydraListener(org.mortbay.util.InetAddrPort address)
Method Detail |
public void setHttpServer(org.mortbay.http.HttpServer server)
setHttpServer
in interface org.mortbay.http.HttpListener
public org.mortbay.http.HttpServer getHttpServer()
getHttpServer
in interface org.mortbay.http.HttpListener
public int getBufferSize()
getBufferSize
in interface org.mortbay.http.HttpListener
public void setBufferSize(int size)
public int getBufferReserve()
getBufferReserve
in interface org.mortbay.http.HttpListener
public void setBufferReserve(int size)
public boolean getIdentifyListener()
public void setIdentifyListener(boolean identifyListener)
identifyListener
- If true, the listener name is added to all
requests as the org.mortbay.http.HttListener attributepublic java.lang.String getDefaultScheme()
getDefaultScheme
in interface org.mortbay.http.HttpListener
public void start() throws java.lang.Exception
start
in interface org.mortbay.util.LifeCycle
java.lang.Exception
public void stop() throws java.lang.InterruptedException
stop
in interface org.mortbay.util.LifeCycle
java.lang.InterruptedException
public boolean getSessionAffinity()
public void setSessionAffinity(java.lang.String sessionAffinity)
public java.lang.String getBindAddress()
public void setBindAddress(java.lang.String addr)
public boolean getUseBodyEncodingForURI()
public void setUseBodyEncodingForURI(boolean use)
public java.lang.String getURIEncoding()
public void setURIEncoding(java.lang.String enc)
public int getAcceptCount()
public void setAcceptCount(int i)
public boolean getEnableLookups()
public void setEnableLookups(boolean enable)
public int getThreadTimeout()
public void setThreadTimeout(int threadTimeout)
public java.lang.String getAuthKey()
Returns null
if authentication is not required of
clients.
null
if none.public void setAuthKey(java.lang.String authKey)
Set to null
if authentication with clients is not needed.
We don't allow auth key of all whitespace because it is most likely the result of accidental data entry in an otherwise blank 'key' field.
authKey
- The new authtication key, or null
if
authentication is not needed.public int getClientTimeout()
public void setClientTimeout(int clientTimeout)
public void manageServerId(java.net.Socket socket)
public void handleConnection(java.net.Socket socket) throws java.io.IOException
java.io.IOException
protected EnhydraConnection createConnection(java.net.Socket socket) throws java.io.IOException
java.io.IOException
public void customizeRequest(org.mortbay.http.HttpConnection connection, org.mortbay.http.HttpRequest request)
customizeRequest
in interface org.mortbay.http.HttpListener
request
- protected void customizeRequest(java.net.Socket socket, org.mortbay.http.HttpRequest request)
request
- public void persistConnection(org.mortbay.http.HttpConnection connection)
persistConnection
in interface org.mortbay.http.HttpListener
connection
- public boolean isLowOnResources()
isLowOnResources
in interface org.mortbay.http.HttpListener
public boolean isOutOfResources()
isOutOfResources
in interface org.mortbay.http.HttpListener
public boolean isIntegral(org.mortbay.http.HttpConnection connection)
isIntegral
in interface org.mortbay.http.HttpListener
public boolean isConfidential(org.mortbay.http.HttpConnection connection)
isConfidential
in interface org.mortbay.http.HttpListener
public java.lang.String getIntegralScheme()
getIntegralScheme
in interface org.mortbay.http.HttpListener
public void setIntegralScheme(java.lang.String integralScheme)
public int getIntegralPort()
getIntegralPort
in interface org.mortbay.http.HttpListener
public void setIntegralPort(int integralPort)
public java.lang.String getConfidentialScheme()
getConfidentialScheme
in interface org.mortbay.http.HttpListener
public void setConfidentialScheme(java.lang.String confidentialScheme)
public int getConfidentialPort()
getConfidentialPort
in interface org.mortbay.http.HttpListener
public void setConfidentialPort(int confidentialPort)
public org.mortbay.http.HttpHandler getHttpHandler()
getHttpHandler
in interface org.mortbay.http.HttpListener
public void setHttpHandler(org.mortbay.http.HttpHandler handler)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |