org.webbitserver.wrapper
Class HttpControlWrapper

java.lang.Object
  extended by org.webbitserver.wrapper.HttpControlWrapper
All Implemented Interfaces:
Executor, HttpControl

public class HttpControlWrapper
extends Object
implements HttpControl


Constructor Summary
HttpControlWrapper(HttpControl control)
           
 
Method Summary
 EventSourceConnection eventSourceConnection()
           
 void execute(Runnable command)
           
 Executor handlerExecutor()
           
 void nextHandler()
           
 void nextHandler(HttpRequest request, HttpResponse response)
           
 void nextHandler(HttpRequest request, HttpResponse response, HttpControl control)
           
 HttpControl originalControl()
           
 HttpControl underlyingControl()
           
 HttpControlWrapper underlyingControl(HttpControl control)
           
 EventSourceConnection upgradeToEventSourceConnection(EventSourceHandler handler)
           
 WebSocketConnection upgradeToWebSocketConnection(WebSocketHandler handler)
           
 WebSocketConnection webSocketConnection()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpControlWrapper

public HttpControlWrapper(HttpControl control)
Method Detail

underlyingControl

public HttpControl underlyingControl()

underlyingControl

public HttpControlWrapper underlyingControl(HttpControl control)

originalControl

public HttpControl originalControl()

nextHandler

public void nextHandler()
Specified by:
nextHandler in interface HttpControl

nextHandler

public void nextHandler(HttpRequest request,
                        HttpResponse response)
Specified by:
nextHandler in interface HttpControl

nextHandler

public void nextHandler(HttpRequest request,
                        HttpResponse response,
                        HttpControl control)
Specified by:
nextHandler in interface HttpControl

upgradeToWebSocketConnection

public WebSocketConnection upgradeToWebSocketConnection(WebSocketHandler handler)
Specified by:
upgradeToWebSocketConnection in interface HttpControl

webSocketConnection

public WebSocketConnection webSocketConnection()
Specified by:
webSocketConnection in interface HttpControl

upgradeToEventSourceConnection

public EventSourceConnection upgradeToEventSourceConnection(EventSourceHandler handler)
Specified by:
upgradeToEventSourceConnection in interface HttpControl

eventSourceConnection

public EventSourceConnection eventSourceConnection()
Specified by:
eventSourceConnection in interface HttpControl

handlerExecutor

public Executor handlerExecutor()
Specified by:
handlerExecutor in interface HttpControl

execute

public void execute(Runnable command)
Specified by:
execute in interface Executor


Copyright © 2013. All Rights Reserved.