public interface HttpContainer
Modifier and Type | Method and Description |
---|---|
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.
|
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.