/** * Sends an advanced asynchronous request that has to be configured by the * developer. * @param handler the response handler * @param request the custom request */ public void advanced(CoapHandler handler, Request request) { assignClientUriIfEmpty(request); asynchronous(request, handler); }
/** * Sends an advanced asynchronous request that has to be configured by the * developer. * @param handler the response handler * @param request the custom request */ public void advanced(CoapHandler handler, Request request) { request.setURI(uri); asynchronous(request, handler); }
/** * Sends a GET request and invokes the specified handler when a response * arrives. * * @param handler the Response handler */ public void get(CoapHandler handler) { asynchronous(Request.newGet().setURI(uri), handler); }
/** * Sends a DELETE request and invokes the specified handler when a response * arrives. * * @param handler the response handler */ public void delete(CoapHandler handler) { asynchronous(Request.newDelete().setURI(uri), handler); }
/** * Sends a DELETE request and invokes the specified handler when a response * arrives. * * @param handler the response handler */ public void delete(CoapHandler handler) { asynchronous(newDelete().setURI(uri), handler); }
/** * Sends a GET request and invokes the specified handler when a response * arrives. * * @param handler the Response handler */ public void get(CoapHandler handler) { asynchronous(newGet().setURI(uri), handler); }
/** * Sends aGET request with the specified Accept option and invokes the * handler when a response arrives. * * @param handler the Response handler * @param accept the Accept option */ public void get(CoapHandler handler, int accept) { asynchronous(accept(newGet().setURI(uri), accept), handler); }
/** * Sends aGET request with the specified Accept option and invokes the * handler when a response arrives. * * @param handler the Response handler * @param accept the Accept option */ public void get(CoapHandler handler, int accept) { asynchronous(accept(Request.newGet().setURI(uri), accept), handler); }
/** * Sends a POST request with the specified payload and the specified content * format and invokes the specified handler when a response arrives. * * @param handler the Response handler * @param payload the payload * @param format the Content-Format */ public void post(CoapHandler handler, byte[] payload, int format) { asynchronous(format(newPost().setURI(uri).setPayload(payload), format), handler); }
/** * Sends a POST request with the specified payload and the specified content * format and invokes the specified handler when a response arrives. * * @param handler the Response handler * @param payload the payload * @param format the Content-Format */ public void post(CoapHandler handler, String payload, int format) { asynchronous(format(newPost().setURI(uri).setPayload(payload), format), handler); }
/** * Sends a PUT request with the specified payload and the specified content * format and invokes the specified handler when a response arrives. * * @param handler the Response handler * @param payload the payload * @param format the Content-Format */ public void put(CoapHandler handler, byte[] payload, int format) { asynchronous(format(newPut().setURI(uri).setPayload(payload), format), handler); }
/** * Sends a POST request with the specified payload and the specified content * format and invokes the specified handler when a response arrives. * * @param handler the Response handler * @param payload the payload * @param format the Content-Format */ public void post(CoapHandler handler, byte[] payload, int format) { asynchronous(format(Request.newPost().setURI(uri).setPayload(payload), format), handler); }
/** * Sends a PUT request with the specified payload and the specified content * format and invokes the specified handler when a response arrives. * * @param handler the Response handler * @param payload the payload * @param format the Content-Format */ public void put(CoapHandler handler, String payload, int format) { asynchronous(format(newPut().setURI(uri).setPayload(payload), format), handler); }
/** * Sends a POST request with the specified payload and the specified content * format and invokes the specified handler when a response arrives. * * @param handler the Response handler * @param payload the payload * @param format the Content-Format */ public void post(CoapHandler handler, String payload, int format) { asynchronous(format(Request.newPost().setURI(uri).setPayload(payload), format), handler); }
/** * Sends a PUT request with the specified payload and the specified content * format and invokes the specified handler when a response arrives. * * @param handler the Response handler * @param payload the payload * @param format the Content-Format */ public void put(CoapHandler handler, String payload, int format) { asynchronous(format(Request.newPut().setURI(uri).setPayload(payload), format), handler); }
/** * * @param handler the Response handler * @param payload the payload * @param format the Content-Format * @param etags the ETags for the If-Match option */ public void putIfMatch(CoapHandler handler, byte[] payload, int format, byte[] ... etags) { asynchronous(ifMatch(format(newPut().setURI(uri).setPayload(payload), format), etags), handler); }
/** * * @param handler the Response handler * @param payload the payload * @param format the Content-Format */ public void putIfNoneMatch(CoapHandler handler, byte[] payload, int format) { asynchronous(ifNoneMatch(format(newPut().setURI(uri).setPayload(payload), format)), handler); }
/** * * @param handler the Response handler * @param payload the payload * @param format the Content-Format * @param etags the ETags for the If-Match option */ public void putIfMatch(CoapHandler handler, String payload, int format, byte[] ... etags) { asynchronous(ifMatch(format(Request.newPut().setURI(uri).setPayload(payload), format), etags), handler); }
/** * * @param handler the Response handler * @param payload the payload * @param format the Content-Format * @param etags the ETags for the If-Match option */ public void putIfMatch(CoapHandler handler, String payload, int format, byte[] ... etags) { asynchronous(ifMatch(format(newPut().setURI(uri).setPayload(payload), format), etags), handler); }
/** * * @param handler the Response handler * @param payload the payload * @param format the Content-Format * @param etags the ETags for the If-Match option */ public void putIfMatch(CoapHandler handler, byte[] payload, int format, byte[] ... etags) { asynchronous(ifMatch(format(Request.newPut().setURI(uri).setPayload(payload), format), etags), handler); }