org.webbitserver.stub.StubDataHolder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of webbit Show documentation
Show all versions of webbit Show documentation
A Java event based WebSocket and HTTP server
package org.webbitserver.stub;
import org.webbitserver.DataHolder;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
public class StubDataHolder implements DataHolder {
private Map data = new HashMap();
@Override
public Map data() {
return data;
}
@Override
public Object data(String key) {
return data.get(key);
}
@Override
public DataHolder data(String key, Object value) {
data.put(key, value);
return this;
}
@Override
public Set dataKeys() {
return data.keySet();
}
}