Package ch.ethz.inf.vs.californium.network

Examples of ch.ethz.inf.vs.californium.network.Exchange.sendResponse()


    // check if the response is present in the cache
    if (response != null) {
      // link the retrieved response with the request to set the
      // parameters request-specific (i.e., token, id, etc)
      exchange.sendResponse(response);
      return;
    } else {

      // edit the request to be correctly forwarded if the proxy-uri is
      // set
View Full Code Here


            LOGGER.info("after manageProxyUriRequest: "+request);

        } catch (URISyntaxException e) {
          LOGGER.warning(String.format("Proxy-uri malformed: %s", request.getOptions().getProxyURI()));

          exchange.sendResponse(new Response(ResponseCode.BAD_OPTION));
        }
      }

      // handle the request as usual
      proxyCoapResolver.forwardRequest(exchange);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.