org.sblim.slp.example

Class SLPClient


public class SLPClient
extends java.lang.Object

Sample simplified SLP client that provides methods to find wbem services and others.

Field Summary

static String
DEFAULT_SCOPE
static Vector
SCOPE
static String
SERVICE_WBEM
static String
SERVICE_WBEM_HTTP
static String
SERVICE_WBEM_HTTPS

Constructor Summary

SLPClient()
Ctor.

Method Summary

List
findAttributes(String pUrl, Vector pScopes, Vector pAttributeIds)
Find the specified attributes of a given service url
List
findService(String pServiceType)
Finds all services of a given type
List
findService(String pServiceType, Vector pScopeList)
Finds all services of a given type
List
findWbemServices()
Finds all WBEM services
static void
main(String[] args)
Test method.
static String
unescape(String pString)
Unescapes a attribute string

Field Details

DEFAULT_SCOPE

public static final String DEFAULT_SCOPE

SCOPE

public static final Vector SCOPE

SERVICE_WBEM

public static final String SERVICE_WBEM

SERVICE_WBEM_HTTP

public static final String SERVICE_WBEM_HTTP

SERVICE_WBEM_HTTPS

public static final String SERVICE_WBEM_HTTPS

Constructor Details

SLPClient

public SLPClient()
Ctor.

Method Details

findAttributes

public List findAttributes(String pUrl,
                           Vector pScopes,
                           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

findService

public List findService(String pServiceType)
Finds all services of a given type
Parameters:
pServiceType - The service type
Returns:
List of services

findService

public List findService(String pServiceType,
                        Vector pScopeList)
Finds all services of a given type
Parameters:
pServiceType - The service type
pScopeList - The scope
Returns:
List of services

findWbemServices

public List findWbemServices()
Finds all WBEM services
Returns:
List of WBEM services

main

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

unescape

public static String unescape(String pString)
Unescapes a attribute string
Parameters:
pString - The escaped string
Returns:
The unescaped string

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