|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Connector
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.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.mortbay.component.LifeCycle |
---|
LifeCycle.Listener |
Method Summary | |
---|---|
void |
close()
|
void |
customize(EndPoint endpoint,
Request request)
Customize a request for an endpoint. |
int |
getConfidentialPort()
|
java.lang.String |
getConfidentialScheme()
|
java.lang.Object |
getConnection()
|
int |
getConnections()
|
long |
getConnectionsDurationAve()
|
long |
getConnectionsDurationMax()
|
long |
getConnectionsDurationMin()
|
long |
getConnectionsDurationTotal()
|
int |
getConnectionsOpen()
|
int |
getConnectionsOpenMax()
|
int |
getConnectionsOpenMin()
|
int |
getConnectionsRequestsAve()
|
int |
getConnectionsRequestsMax()
|
int |
getConnectionsRequestsMin()
|
int |
getHeaderBufferSize()
|
java.lang.String |
getHost()
|
int |
getIntegralPort()
|
java.lang.String |
getIntegralScheme()
|
int |
getLocalPort()
|
int |
getLowResourceMaxIdleTime()
|
int |
getMaxIdleTime()
|
java.lang.String |
getName()
|
int |
getPort()
|
int |
getRequestBufferSize()
|
int |
getRequests()
|
boolean |
getResolveNames()
|
int |
getResponseBufferSize()
|
Server |
getServer()
|
boolean |
getStatsOn()
|
long |
getStatsOnMs()
|
boolean |
isConfidential(Request request)
|
boolean |
isIntegral(Request request)
|
Continuation |
newContinuation()
|
void |
open()
Opens the connector |
void |
persist(EndPoint endpoint)
Persist an endpoint. |
void |
setHeaderBufferSize(int headerBufferSize)
Set the size of the buffer to be used for request and response headers. |
void |
setHost(java.lang.String hostname)
|
void |
setLowResourceMaxIdleTime(int ms)
|
void |
setMaxIdleTime(int ms)
|
void |
setPort(int port)
|
void |
setRequestBufferSize(int requestBufferSize)
Set the size of the content buffer for receiving requests. |
void |
setResponseBufferSize(int responseBufferSize)
Set the size of the content buffer for sending responses. |
void |
setServer(Server server)
|
void |
setStatsOn(boolean on)
|
void |
statsReset()
Reset statistics. |
Methods inherited from interface org.mortbay.component.LifeCycle |
---|
addLifeCycleListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop |
Methods inherited from interface org.mortbay.io.Buffers |
---|
getBuffer, returnBuffer |
Method Detail |
---|
java.lang.String getName()
void open() throws java.io.IOException
java.io.IOException
void close() throws java.io.IOException
java.io.IOException
void setServer(Server server)
Server getServer()
int getHeaderBufferSize()
void setHeaderBufferSize(int headerBufferSize)
headerBufferSize
- The headerBufferSize to set.int getRequestBufferSize()
void setRequestBufferSize(int requestBufferSize)
requestBufferSize
- The requestBufferSize to set.int getResponseBufferSize()
void setResponseBufferSize(int responseBufferSize)
responseBufferSize
- The responseBufferSize to set.int getIntegralPort()
Constraint.getDataConstraint()
java.lang.String getIntegralScheme()
Constraint.getDataConstraint()
boolean isIntegral(Request request)
request
- A request
int getConfidentialPort()
Constraint.getDataConstraint()
java.lang.String getConfidentialScheme()
Constraint.getDataConstraint()
boolean isConfidential(Request request)
request
- A request
void customize(EndPoint endpoint, Request request) throws java.io.IOException
endpoint
- request
-
java.io.IOException
void persist(EndPoint endpoint) throws java.io.IOException
endpoint
- request
-
java.io.IOException
Continuation newContinuation()
java.lang.String getHost()
void setHost(java.lang.String hostname)
void setPort(int port)
port
- The port fto listen of for connections or 0 if any available
port may be used.int getPort()
int getLocalPort()
int getMaxIdleTime()
void setMaxIdleTime(int ms)
int getLowResourceMaxIdleTime()
void setLowResourceMaxIdleTime(int ms)
java.lang.Object getConnection()
boolean getResolveNames()
int getRequests()
long getConnectionsDurationMin()
long getConnectionsDurationTotal()
int getConnectionsOpenMin()
int getConnectionsRequestsMin()
int getConnections()
int getConnectionsOpen()
int getConnectionsOpenMax()
long getConnectionsDurationAve()
long getConnectionsDurationMax()
int getConnectionsRequestsAve()
int getConnectionsRequestsMax()
void statsReset()
void setStatsOn(boolean on)
boolean getStatsOn()
long getStatsOnMs()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |