test_class.file: leshan-client-core/src/test/java/org/eclipse/leshan/client/util/LinkFormatHelperTest.java
test_class.identifier: LinkFormatHelperTest
test_case.body: @Test
      public void encode_bootstrap_root() {
          List<LwM2mObjectEnabler> objectEnablers = new ArrayList<>();
  
          // object 0
          Map<Integer, LwM2mInstanceEnabler> securityInstances = new HashMap<>();
          securityInstances.put(0, Security.noSec("coap://localhost", 111));
          securityInstances.put(1, Security.noSecBootstap("coap://localhost"));
          securityInstances.put(2, Security.noSec("coap://localhost", 222));
          securityInstances.put(3, Security.noSec("coap://localhost", 333));
          ObjectEnabler securityObjectEnabler = new ObjectEnabler(0, getObjectModel(0), securityInstances, null,
                  ContentFormat.DEFAULT);
          objectEnablers.add(securityObjectEnabler);
  
          // object 1
          Map<Integer, LwM2mInstanceEnabler> serverInstances = new HashMap<>();
          serverInstances.put(0, new Server(333, 120, BindingMode.UQ, false));
          ObjectEnabler serverObjectEnabler = new ObjectEnabler(1, getVersionedObjectModel(1, "2.0"), serverInstances,
                  null, ContentFormat.DEFAULT);
          objectEnablers.add(serverObjectEnabler);
  
          // object 2
          ObjectEnabler aclObjectEnabler = new ObjectEnabler(2, getVersionedObjectModel(2, "2.0"),
                  new HashMap<Integer, LwM2mInstanceEnabler>(), null, ContentFormat.DEFAULT);
          objectEnablers.add(aclObjectEnabler);
  
          // object 3
          Map<Integer, LwM2mInstanceEnabler> deviceInstances = new HashMap<>();
          deviceInstances.put(0, new BaseInstanceEnabler());
          ObjectEnabler deviceObjectEnabler = new ObjectEnabler(3, getObjectModel(3), deviceInstances, null,
                  ContentFormat.DEFAULT);
          objectEnablers.add(deviceObjectEnabler);
  
          Link[] links = LinkFormatHelper.getBootstrapClientDescription(objectEnablers);
          String strLinks = Link.serialize(links);
  
          assertEquals(
                  "</>;lwm2m=1.0,</0/0>;ssid=111,</0/1>,</0/2>;ssid=222,</0/3>;ssid=333,</1>;ver=2.0,</1/0>;ssid=333,</2>;ver=2.0,</3/0>",
                  strLinks);
      }
test_case.class_method_signature: LinkFormatHelperTest.encode_bootstrap_root()
test_case.full_signature: @Test public void encode_bootstrap_root()
test_case.identifier: encode_bootstrap_root
test_case.invocations: put noSec put noSecBootstap put noSec put noSec getObjectModel add put getVersionedObjectModel add getVersionedObjectModel add put getObjectModel add getBootstrapClientDescription serialize assertEquals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void encode_bootstrap_root()
focal_class.file: leshan-client-core/src/main/java/org/eclipse/leshan/client/util/LinkFormatHelper.java
focal_class.identifier: LinkFormatHelper
focal_class.class_method_signature: LinkFormatHelper.LinkFormatHelper()
focal_class.full_signature: private  LinkFormatHelper()
focal_class.identifier: LinkFormatHelper
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.signature:  LinkFormatHelper()
focal_class.class_method_signature: LinkFormatHelper.getClientDescription(Collection<LwM2mObjectEnabler> objectEnablers, String rootPath)
focal_class.full_signature: public static Link[] getClientDescription(Collection<LwM2mObjectEnabler> objectEnablers, String rootPath)
focal_class.identifier: getClientDescription
focal_class.modifiers: public static
focal_class.parameters: (Collection<LwM2mObjectEnabler> objectEnablers, String rootPath)
focal_class.return: Link[]
focal_class.signature: Link[] getClientDescription(Collection<LwM2mObjectEnabler> objectEnablers, String rootPath)
focal_class.class_method_signature: LinkFormatHelper.getBootstrapClientDescription(Collection<LwM2mObjectEnabler> objectEnablers)
focal_class.full_signature: public static Link[] getBootstrapClientDescription(Collection<LwM2mObjectEnabler> objectEnablers)
focal_class.identifier: getBootstrapClientDescription
focal_class.modifiers: public static
focal_class.parameters: (Collection<LwM2mObjectEnabler> objectEnablers)
focal_class.return: Link[]
focal_class.signature: Link[] getBootstrapClientDescription(Collection<LwM2mObjectEnabler> objectEnablers)
focal_class.class_method_signature: LinkFormatHelper.getObjectDescription(LwM2mObjectEnabler objectEnabler, String root)
focal_class.full_signature: public static Link[] getObjectDescription(LwM2mObjectEnabler objectEnabler, String root)
focal_class.identifier: getObjectDescription
focal_class.modifiers: public static
focal_class.parameters: (LwM2mObjectEnabler objectEnabler, String root)
focal_class.return: Link[]
focal_class.signature: Link[] getObjectDescription(LwM2mObjectEnabler objectEnabler, String root)
focal_class.class_method_signature: LinkFormatHelper.getBootstrapObjectDescription(LwM2mObjectEnabler objectEnabler)
focal_class.full_signature: public static Link[] getBootstrapObjectDescription(LwM2mObjectEnabler objectEnabler)
focal_class.identifier: getBootstrapObjectDescription
focal_class.modifiers: public static
focal_class.parameters: (LwM2mObjectEnabler objectEnabler)
focal_class.return: Link[]
focal_class.signature: Link[] getBootstrapObjectDescription(LwM2mObjectEnabler objectEnabler)
focal_class.class_method_signature: LinkFormatHelper.getBootstrapObjectDescriptionWithoutRoot(LwM2mObjectEnabler objectEnabler)
focal_class.full_signature: private static List<Link> getBootstrapObjectDescriptionWithoutRoot(LwM2mObjectEnabler objectEnabler)
focal_class.identifier: getBootstrapObjectDescriptionWithoutRoot
focal_class.modifiers: private static
focal_class.parameters: (LwM2mObjectEnabler objectEnabler)
focal_class.return: List<Link>
focal_class.signature: List<Link> getBootstrapObjectDescriptionWithoutRoot(LwM2mObjectEnabler objectEnabler)
focal_class.class_method_signature: LinkFormatHelper.getInstanceDescription(LwM2mObjectEnabler objectEnabler, int instanceId, String root)
focal_class.full_signature: public static Link[] getInstanceDescription(LwM2mObjectEnabler objectEnabler, int instanceId, String root)
focal_class.identifier: getInstanceDescription
focal_class.modifiers: public static
focal_class.parameters: (LwM2mObjectEnabler objectEnabler, int instanceId, String root)
focal_class.return: Link[]
focal_class.signature: Link[] getInstanceDescription(LwM2mObjectEnabler objectEnabler, int instanceId, String root)
focal_class.class_method_signature: LinkFormatHelper.getResourceDescription(LwM2mObjectEnabler objectEnabler, int instanceId, int resourceId,
              String root)
focal_class.full_signature: public static Link getResourceDescription(LwM2mObjectEnabler objectEnabler, int instanceId, int resourceId,
              String root)
focal_class.identifier: getResourceDescription
focal_class.modifiers: public static
focal_class.parameters: (LwM2mObjectEnabler objectEnabler, int instanceId, int resourceId,
              String root)
focal_class.return: Link
focal_class.signature: Link getResourceDescription(LwM2mObjectEnabler objectEnabler, int instanceId, int resourceId,
              String root)
focal_class.class_method_signature: LinkFormatHelper.getPath(String first, String... more)
focal_class.full_signature: private static final String getPath(String first, String... more)
focal_class.identifier: getPath
focal_class.modifiers: private static final
focal_class.parameters: (String first, String... more)
focal_class.return: String
focal_class.signature: String getPath(String first, String... more)
focal_class.class_method_signature: LinkFormatHelper.normalizeAndCheck(String input)
focal_class.full_signature: private static String normalizeAndCheck(String input)
focal_class.identifier: normalizeAndCheck
focal_class.modifiers: private static
focal_class.parameters: (String input)
focal_class.return: String
focal_class.signature: String normalizeAndCheck(String input)
focal_class.class_method_signature: LinkFormatHelper.checkNotNul(char c)
focal_class.full_signature: private static void checkNotNul(char c)
focal_class.identifier: checkNotNul
focal_class.modifiers: private static
focal_class.parameters: (char c)
focal_class.return: void
focal_class.signature: void checkNotNul(char c)
focal_class.class_method_signature: LinkFormatHelper.normalize(String input, int len, int off)
focal_class.full_signature: private static String normalize(String input, int len, int off)
focal_class.identifier: normalize
focal_class.modifiers: private static
focal_class.parameters: (String input, int len, int off)
focal_class.return: String
focal_class.signature: String normalize(String input, int len, int off)
focal_class.class_method_signature: LinkFormatHelper.getObjectAttributes(ObjectModel objectModel)
focal_class.full_signature: private static Map<String, String> getObjectAttributes(ObjectModel objectModel)
focal_class.identifier: getObjectAttributes
focal_class.modifiers: private static
focal_class.parameters: (ObjectModel objectModel)
focal_class.return: Map<String, String>
focal_class.signature: Map<String, String> getObjectAttributes(ObjectModel objectModel)
focal_class.class_method_signature: LinkFormatHelper.getVersion(ObjectModel objectModel)
focal_class.full_signature: private static String getVersion(ObjectModel objectModel)
focal_class.identifier: getVersion
focal_class.modifiers: private static
focal_class.parameters: (ObjectModel objectModel)
focal_class.return: String
focal_class.signature: String getVersion(ObjectModel objectModel)
focal_method.body: public static Link[] getBootstrapClientDescription(Collection<LwM2mObjectEnabler> objectEnablers) {
          List<Link> links = new ArrayList<>();
          Map<String, String> rootAttributes = new HashMap<>();
          rootAttributes.put("lwm2m", ObjectModel.DEFAULT_VERSION);
          links.add(new Link("/", rootAttributes));
  
          for (LwM2mObjectEnabler objectEnabler : objectEnablers) {
              links.addAll(getBootstrapObjectDescriptionWithoutRoot(objectEnabler));
          }
          return links.toArray(new Link[] {});
      }
focal_method.class_method_signature: LinkFormatHelper.getBootstrapClientDescription(Collection<LwM2mObjectEnabler> objectEnablers)
focal_method.full_signature: public static Link[] getBootstrapClientDescription(Collection<LwM2mObjectEnabler> objectEnablers)
focal_method.identifier: getBootstrapClientDescription
focal_method.invocations: put add addAll getBootstrapObjectDescriptionWithoutRoot toArray
focal_method.modifiers: public static
focal_method.parameters: (Collection<LwM2mObjectEnabler> objectEnablers)
focal_method.return: Link[]
focal_method.signature: Link[] getBootstrapClientDescription(Collection<LwM2mObjectEnabler> objectEnablers)