Commit 856bc757 authored by Bjoern Konieczek's avatar Bjoern Konieczek
Browse files

Multithreaded Send/Receive and Java SE 6 compliance to enable usage of JamaicaVM

parent 8648fb91
......@@ -35,9 +35,9 @@ public class CoreResource implements CoapResource {
private final static String uriPath = "/.well-known/core";
private HashMap<Resource, String> coreStrings = new HashMap<Resource, String>();
ResourceServer serverListener = null;
CoapResourceServer server = null;
ResourceServer server = null;
public CoreResource (CoapResourceServer server){
public CoreResource (ResourceServer server){
this.server = server;
}
......
......@@ -16,6 +16,7 @@
package org.ws4d.coap.rest;
import java.net.URI;
import java.util.HashMap;
import org.ws4d.coap.interfaces.CoapRequest;
......@@ -73,4 +74,6 @@ public interface ResourceServer {
public URI getHostUri();
public void resourceChanged(Resource resource);
public HashMap<String, Resource> getResources();
}
......@@ -23,6 +23,7 @@ import java.util.Map.Entry;
import java.util.Set;
public class TimeoutHashMap<K, V> extends HashMap<Object, Object> {
private static final long serialVersionUID = 4987370276778256858L;
......@@ -117,14 +118,14 @@ public class TimeoutHashMap<K, V> extends HashMap<Object, Object> {
public Object clone() {
// TODO implement function
throw new IllegalStateException();
// return super.clone();
// return super.clone();
}
@Override
public boolean containsKey(Object arg0) {
// TODO implement function
throw new IllegalStateException();
// return super.containsKey(arg0);
// throw new IllegalStateException();
return super.containsKey(arg0);
}
@Override
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment