congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
UpdateRequest.getObjectLinks
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: eclipse/leshan

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.requestUpdateRequestgetObjectLinks

Popular methods of UpdateRequest

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

Popular in Java

  • Finding current android device location
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getApplicationContext (Context)
  • getSupportFragmentManager (FragmentActivity)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • Join (org.hibernate.mapping)
  • Top 17 Plugins for Android Studio
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