org.webbitserver.wrapper
Class EventSourceConnectionWrapper

java.lang.Object
  extended by org.webbitserver.wrapper.EventSourceConnectionWrapper
All Implemented Interfaces:
Executor, DataHolder, EventSourceConnection, HttpConnection

public class EventSourceConnectionWrapper
extends Object
implements EventSourceConnection


Constructor Summary
EventSourceConnectionWrapper(EventSourceConnection connection)
           
 
Method Summary
 EventSourceConnectionWrapper close()
           
 Map<String,Object> data()
          Arbitrary data that can be stored for the lifetime of the connection.
 Object data(String key)
          Retrieve data value by key.
 EventSourceConnectionWrapper data(String key, Object value)
          Store data value by key.
 Set<String> dataKeys()
          List data keys.
 void execute(Runnable command)
           
 Executor handlerExecutor()
           
 HttpRequest httpRequest()
           
 EventSourceConnection originalControl()
           
 EventSourceConnectionWrapper send(EventSourceMessage message)
           
 EventSourceConnection underlyingControl()
           
 EventSourceConnectionWrapper underlyingControl(EventSourceConnection control)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventSourceConnectionWrapper

public EventSourceConnectionWrapper(EventSourceConnection connection)
Method Detail

underlyingControl

public EventSourceConnection underlyingControl()

underlyingControl

public EventSourceConnectionWrapper underlyingControl(EventSourceConnection control)

originalControl

public EventSourceConnection originalControl()

httpRequest

public HttpRequest httpRequest()
Specified by:
httpRequest in interface HttpConnection

send

public EventSourceConnectionWrapper send(EventSourceMessage message)
Specified by:
send in interface EventSourceConnection

close

public EventSourceConnectionWrapper close()
Specified by:
close in interface EventSourceConnection
Specified by:
close in interface HttpConnection

data

public Map<String,Object> data()
Description copied from interface: DataHolder
Arbitrary data that can be stored for the lifetime of the connection.

Specified by:
data in interface DataHolder

data

public Object data(String key)
Description copied from interface: DataHolder
Retrieve data value by key.

Specified by:
data in interface DataHolder
See Also:
DataHolder.data()

data

public EventSourceConnectionWrapper data(String key,
                                         Object value)
Description copied from interface: DataHolder
Store data value by key.

Specified by:
data in interface DataHolder
Specified by:
data in interface EventSourceConnection
See Also:
DataHolder.data()

dataKeys

public Set<String> dataKeys()
Description copied from interface: DataHolder
List data keys.

Specified by:
dataKeys in interface DataHolder
See Also:
DataHolder.data()

handlerExecutor

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

execute

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


Copyright © 2013. All Rights Reserved.