|
||||||||||
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.
Method Summary | |
---|---|
void |
close()
|
void |
customize(EndPoint endpoint,
Request request)
|
int |
getConfidentialPort()
|
String |
getConfidentialScheme()
|
int |
getHeaderBufferSize()
|
String |
getHost()
|
int |
getIntegralPort()
|
String |
getIntegralScheme()
|
long |
getMaxIdleTime()
|
int |
getPort()
|
int |
getRequestBufferSize()
|
int |
getResponseBufferSize()
|
Server |
getServer()
|
boolean |
isConfidential(Request request)
|
boolean |
isIntegral(Request request)
|
Continuation |
newContinuation()
|
void |
open()
|
void |
setHeaderBufferSize(int headerBufferSize)
Set the size of the buffer to be used for request and response headers. |
void |
setHost(String hostname)
|
void |
setMaxIdleTime(long 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)
|
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 |
---|
void open() throws IOException
IOException
void close() throws IOException
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()
String getIntegralScheme()
boolean isIntegral(Request request)
int getConfidentialPort()
String getConfidentialScheme()
boolean isConfidential(Request request)
void customize(EndPoint endpoint, Request request) throws IOException
IOException
Continuation newContinuation()
String getHost()
void setHost(String hostname)
int getPort()
void setPort(int port)
long getMaxIdleTime()
void setMaxIdleTime(long ms)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |