org.sblim.slp.example
Class SLPClient

java.lang.Object
  extended by 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
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
SLPClient()
          Ctor.
 
Method Summary
 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

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


Copyright © 2005, 2006 IBM Corporation. All Rights Reserved.