private static final int PORT = NetworkConfig.getStandard().getInt(NetworkConfigDefaults.DEFAULT_COAP_PORT);
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);