private Server targetServerA;
public ProxyHttpCoAPServer() throws IOException {
ForwardingResource coap2coap = new ProxyCoapClientResource("coap2coap");
ForwardingResource coap2http = new ProxyHttpClientResource("coap2http");
// Create CoAP Server on PORT with proxy resources form CoAP to CoAP and HTTP
targetServerA = new Server(PORT);
targetServerA.add(coap2coap);
targetServerA.add(coap2http);