|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
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.
| Methods inherited from interface org.mortbay.component.LifeCycle |
isFailed, isRunning, isStarted, isStarting, isStopping, start, stop |
| Methods inherited from interface org.mortbay.io.Buffers |
getBuffer, returnBuffer |
| Method Detail |
public String getName()
public void open()
throws IOException
IOException
public void close()
throws IOException
IOExceptionpublic void setServer(Server server)
public Server getServer()
public int getHeaderBufferSize()
public void setHeaderBufferSize(int headerBufferSize)
headerBufferSize - The headerBufferSize to set.public int getRequestBufferSize()
public void setRequestBufferSize(int requestBufferSize)
requestBufferSize - The requestBufferSize to set.public int getResponseBufferSize()
public void setResponseBufferSize(int responseBufferSize)
responseBufferSize - The responseBufferSize to set.public int getIntegralPort()
public String getIntegralScheme()
public boolean isIntegral(Request request)
public int getConfidentialPort()
public String getConfidentialScheme()
public boolean isConfidential(Request request)
public void customize(EndPoint endpoint,
Request request)
throws IOException
endpoint - request -
IOExceptionpublic Continuation newContinuation()
public String getHost()
public void setHost(String hostname)
public void setPort(int port)
port - The port fto listen of for connections or 0 if any available
port may be used.public int getPort()
public int getLocalPort()
public int getMaxIdleTime()
public void setMaxIdleTime(int ms)
public int getLowResourceMaxIdleTime()
public void setLowResourceMaxIdleTime(int ms)
public Object getConnection()
public boolean getResolveNames()
public int getRequests()
public long getConnectionsDurationMin()
public long getConnectionsDurationTotal()
public int getConnectionsOpenMin()
public int getConnectionsRequestsMin()
public int getConnections()
public int getConnectionsOpen()
public int getConnectionsOpenMax()
public long getConnectionsDurationAve()
public long getConnectionsDurationMax()
public int getConnectionsRequestsAve()
public int getConnectionsRequestsMax()
public void statsReset()
public void setStatsOn(boolean on)
public boolean getStatsOn()
public long getStatsOnMs()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||