Class SLPClient


  • public class SLPClient
    extends java.lang.Object
    Sample simplified SLP client that provides methods to find wbem services and others.
    • Constructor Summary

      Constructors 
      Constructor Description
      SLPClient()
      Ctor.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List findAttributes​(java.lang.String pUrl, java.util.Vector pScopes, java.util.Vector pAttributeIds)
      Find the specified attributes of a given service url
      java.util.List findService​(java.lang.String pServiceType)
      Finds all services of a given type
      java.util.List findService​(java.lang.String pServiceType, java.util.Vector pScopeList)
      Finds all services of a given type
      java.util.List findWbemServices()
      Finds all WBEM services
      static void main​(java.lang.String[] args)
      Test method.
      static java.lang.String unescape​(java.lang.String pString)
      Unescapes a attribute string
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • SCOPE

        public static final java.util.Vector SCOPE
      • SERVICE_WBEM_HTTP

        public static final java.lang.String SERVICE_WBEM_HTTP
        See Also:
        Constant Field Values
      • SERVICE_WBEM_HTTPS

        public static final java.lang.String SERVICE_WBEM_HTTPS
        See Also:
        Constant Field Values
    • Constructor Detail

      • SLPClient

        public SLPClient()
        Ctor.
    • Method Detail

      • findWbemServices

        public java.util.List findWbemServices()
        Finds all WBEM services
        Returns:
        List of WBEM services
      • findService

        public java.util.List findService​(java.lang.String pServiceType)
        Finds all services of a given type
        Parameters:
        pServiceType - The service type
        Returns:
        List of services
      • findService

        public java.util.List findService​(java.lang.String pServiceType,
                                          java.util.Vector pScopeList)
        Finds all services of a given type
        Parameters:
        pServiceType - The service type
        pScopeList - The scope
        Returns:
        List of services
      • findAttributes

        public java.util.List findAttributes​(java.lang.String pUrl,
                                             java.util.Vector pScopes,
                                             java.util.Vector pAttributeIds)
        Find the specified attributes of a given service url
        Parameters:
        pUrl - The service url
        pScopes - The scope
        pAttributeIds - List of attribute to look for, null represents all attributes
        Returns:
        List of attributes
      • unescape

        public static java.lang.String unescape​(java.lang.String pString)
        Unescapes a attribute string
        Parameters:
        pString - The escaped string
        Returns:
        The unescaped string
      • main

        public static void main​(java.lang.String[] args)
        Test method.
        Parameters:
        args - Ignored