org.mortbay.http
Class HostSocketListener
- HttpListener, LifeCycle, Serializable
public class HostSocketListener
Forced Host Listener
this simple listener extention forces the host header to be set to a specific value.
It is useful when deployed behind old apache mod_proxy implementations that
lie about the real host used by the client.
createConnection , customizeRequest , customizeRequest , getBufferReserve , getBufferSize , getConfidentialPort , getConfidentialScheme , getDefaultScheme , getHttpHandler , getHttpServer , getIdentifyListener , getIntegralPort , getIntegralScheme , getLowResourcePersistTimeMs , getLowResources , handleConnection , isConfidential , isIntegral , isLowOnResources , isOutOfResources , persistConnection , setBufferReserve , setBufferSize , setConfidentialPort , setConfidentialScheme , setDefaultScheme , setHttpHandler , setHttpServer , setIdentifyListener , setIntegralPort , setIntegralScheme , setLowResourcePersistTimeMs , setLowResources , start , stop |
acceptSocket , acceptSocket , getAcceptQueueSize , getAcceptorThreads , getHost , getInetAddrPort , getInetAddress , getLingerTimeSecs , getMaxReadTimeMs , getPort , getServerSocket , getTcpNoDelay , handle , handleConnection , handleConnection , newServerSocket , open , setAcceptQueueSize , setAcceptorThreads , setHost , setInetAddrPort , setInetAddress , setLingerTimeSecs , setMaxReadTimeMs , setPort , setTcpNoDelay , start , stop , stopJob , toString |
getIdleThreads , getMaxIdleTimeMs , getMaxThreads , getMinThreads , getName , getPoolName , getThreads , getThreadsPriority , handle , isDaemon , isStarted , join , run , setDaemon , setMaxIdleTimeMs , setMaxStopTimeMs , setMaxThreads , setMinThreads , setName , setPoolName , setThreadsPriority , shrink , start , stop , stopJob |
HostSocketListener
public HostSocketListener()
HostSocketListener
public HostSocketListener(InetAddrPort address)
Construct for specific address and port.
customizeRequest
protected void customizeRequest(Socket socket,
HttpRequest request)
Customize request from socket.
Derived versions of SocketListener may specialize this method
to customize the request with attributes of the socket used (eg
SSL session ids).
This version resets the SoTimeout if it has been reduced due to
low resources. Derived implementations should call
super.customizeRequest(socket,request) unless persistConnection
has also been overridden and not called.
- customizeRequest in interface SocketListener
getForcedHost
public String getForcedHost()
setForcedHost
public void setForcedHost(String host)
Copyright © 2004 Mortbay Consulting Pty. Ltd. All Rights Reserved.