Class Util


  • public class Util
    extends Object
    • Constructor Detail

      • Util

        public Util()
    • Method Detail

      • getBundleName

        public static String getBundleName​(org.osgi.framework.Bundle bundle)
      • getUnderlineString

        public static String getUnderlineString​(int len)
      • getValueString

        public static String getValueString​(Object obj)
      • getService

        public static <T> T getService​(org.osgi.framework.BundleContext bc,
                                       Class<T> clazz,
                                       List<org.osgi.framework.ServiceReference<?>> refs)
      • ungetServices

        public static void ungetServices​(org.osgi.framework.BundleContext bc,
                                         List<org.osgi.framework.ServiceReference<?>> refs)
      • unparseSubstring

        public static String unparseSubstring​(List<String> pieces)
      • compareSubstring

        public static boolean compareSubstring​(List<String> pieces,
                                               String s)
      • resolveUri

        public static String resolveUri​(org.apache.felix.service.command.CommandSession session,
                                        String relativeUri)
                                 throws IOException
        Intepret a string as a URI relative to the current working directory.
        Parameters:
        session - the session (where the CWD is stored)
        relativeUri - the input URI
        Returns:
        the resulting URI as a string
        Throws:
        IOException