org.webbitserver.stub
Class StubDataHolder

java.lang.Object
  extended by org.webbitserver.stub.StubDataHolder
All Implemented Interfaces:
DataHolder
Direct Known Subclasses:
StubConnection, StubHttpRequest

public class StubDataHolder
extends Object
implements DataHolder


Constructor Summary
StubDataHolder()
           
 
Method Summary
 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.
 DataHolder data(String key, Object value)
          Store data value by key.
 Set<String> dataKeys()
          List data keys.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StubDataHolder

public StubDataHolder()
Method Detail

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 DataHolder data(String key,
                       Object value)
Description copied from interface: DataHolder
Store data value by key.

Specified by:
data in interface DataHolder
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()


Copyright © 2012. All Rights Reserved.