|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface HttpContainer
Interface provided by containers that will handle requests from the HTTP dispatcher.
Method Summary | |
---|---|
java.lang.Runnable |
createRunnableHandler(HttpInboundConnection inboundConnection)
Examine the inbound request to ensure the container is configured to handle the incoming request and construct a runnable for request execution. |
Method Detail |
---|
java.lang.Runnable createRunnableHandler(HttpInboundConnection inboundConnection)
Request processing should not be performed during this method-- it should wait for invocation of the runnable via the ExecutorService for proper workload balancing/scheduling.
The container should not assume that the runnable will be invoked on the same thread that called this method. Any state that should be saved between the creation and invocation of the runnable should/can be stored in the runnable instance itself.
inboundConnection
- HttpInboundConnection
containing information inbound
request: remote host/port, HttpRequest containing the URI and
method.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |