Package org.sblim.slp.example
Class SLPClient
- java.lang.Object
-
- org.sblim.slp.example.SLPClient
-
public class SLPClient extends java.lang.Object
Sample simplified SLP client that provides methods to find wbem services and others.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
DEFAULT_SCOPE
static java.util.Vector
SCOPE
static java.lang.String
SERVICE_WBEM
static java.lang.String
SERVICE_WBEM_HTTP
static java.lang.String
SERVICE_WBEM_HTTPS
-
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 urljava.util.List
findService(java.lang.String pServiceType)
Finds all services of a given typejava.util.List
findService(java.lang.String pServiceType, java.util.Vector pScopeList)
Finds all services of a given typejava.util.List
findWbemServices()
Finds all WBEM servicesstatic void
main(java.lang.String[] args)
Test method.static java.lang.String
unescape(java.lang.String pString)
Unescapes a attribute string
-
-
-
Field Detail
-
DEFAULT_SCOPE
public static final java.lang.String DEFAULT_SCOPE
- See Also:
- Constant Field Values
-
SCOPE
public static final java.util.Vector SCOPE
-
SERVICE_WBEM
public static final java.lang.String SERVICE_WBEM
- See Also:
- Constant Field Values
-
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
-
-
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 typepScopeList
- 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 urlpScopes
- The scopepAttributeIds
- 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
-
-