congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
UpdateRequest.getLifeTimeInSec
Code IndexAdd Tabnine to your IDE (free)

How to use
getLifeTimeInSec
method
in
org.eclipse.leshan.core.request.UpdateRequest

Best Java code snippets using org.eclipse.leshan.core.request.UpdateRequest.getLifeTimeInSec (Showing top 2 results out of 315)

origin: eclipse/leshan

updateRequest.getLifeTimeInSec(), updateRequest.getSmsNumber(), updateRequest.getBindingMode(),
updateRequest.getObjectLinks(), updateRequest.getAdditionalAttributes());
origin: eclipse/leshan

@Override
public void visit(UpdateRequest request) {
  coapRequest = Request.newPost();
  buildRequestSettings();
  coapRequest.getOptions().setUriPath(request.getRegistrationId());
  Long lifetime = request.getLifeTimeInSec();
  if (lifetime != null)
    coapRequest.getOptions().addUriQuery("lt=" + lifetime);
  String smsNumber = request.getSmsNumber();
  if (smsNumber != null)
    coapRequest.getOptions().addUriQuery("sms=" + smsNumber);
  BindingMode bindingMode = request.getBindingMode();
  if (bindingMode != null)
    coapRequest.getOptions().addUriQuery("b=" + bindingMode.toString());
  Link[] linkObjects = request.getObjectLinks();
  if (linkObjects != null) {
    coapRequest.getOptions().setContentFormat(ContentFormat.LINK.getCode());
    coapRequest.setPayload(Link.serialize(linkObjects));
  }
}
org.eclipse.leshan.core.requestUpdateRequestgetLifeTimeInSec

Popular methods of UpdateRequest

  • <init>
  • getBindingMode
  • getObjectLinks
  • getRegistrationId
  • getSmsNumber
  • getAdditionalAttributes

Popular in Java

  • Finding current android device location
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getSystemService (Context)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • Top 25 Plugins for Webstorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now