public class WBEMServiceAdvertisementSLP extends Object implements WBEMServiceAdvertisement
AUTH_MECH_DESC, AUTH_MECH_SUPP, CLASSINFO, COMM_MECHANISM, FUNCTIONAL_PROF_DESC, FUNCTIONAL_PROF_SUPP, INTEROP_NS, MULT_OPERATIONS_SUPP, NAMESPACE, OTHER_COMM_MECHN_DESC, PROTOCOL_VERSION, REG_PROF_SUPP, SERVICE_HI_DESC, SERVICE_HI_NAME, SERVICE_ID, TEMPLATE_DESCRIPTION, TEMPLATE_TYPE, TEMPLATE_URL_SYNTAX, TEMPLATE_VERSION| Constructor and Description |
|---|
WBEMServiceAdvertisementSLP(String pDA,
ServiceURL pUrl,
List<String> pAttributes)
Ctor.
|
| Modifier and Type | Method and Description |
|---|---|
WBEMClient |
createClient(Subject pSubject,
Locale[] pLocales)
Creates a fully-initialized WBEMClient instance connected to the service
that is subject of this advertisement.
|
boolean |
equals(Object pObj) |
String |
getAttribute(String pAttributeName)
Return the attribute value for a given attribute name
|
Set<Map.Entry<String,String>> |
getAttributes()
Return the set of attributes of this advertisement
|
String |
getConcreteServiceType()
Returns the concrete service type.
|
String |
getDirectory()
Gets the URL of the directory from which this advertisement was received
|
String[] |
getInteropNamespaces()
Returns the interop namespaces
|
String |
getServiceId()
Returns the service id
|
String |
getServiceUrl()
Returns the service url, e.g.
|
int |
hashCode() |
boolean |
isExpired()
Returns the expiration state of the advertisement.
|
void |
setExpired(boolean pExpired)
Sets the expirations state of the advertisement.
|
String |
toString() |
public WBEMServiceAdvertisementSLP(String pDA, ServiceURL pUrl, List<String> pAttributes)
pDA - The Directory Agent from which this advertisement was receivedpUrl - The SLP service url returned by Locator.findServices().pAttributes - The attribute list (List<String>) where each entry looks
either like this key=value or this
(key=value).public String getAttribute(String pAttributeName)
WBEMServiceAdvertisementgetAttribute in interface WBEMServiceAdvertisementpAttributeName - The attribute namepublic Set<Map.Entry<String,String>> getAttributes()
WBEMServiceAdvertisementgetAttributes in interface WBEMServiceAdvertisementpublic String getConcreteServiceType()
WBEMServiceAdvertisementservice:wbem:https this method would return
https.getConcreteServiceType in interface WBEMServiceAdvertisementpublic String getServiceUrl()
WBEMServiceAdvertisementgetServiceUrl in interface WBEMServiceAdvertisementpublic WBEMClient createClient(Subject pSubject, Locale[] pLocales) throws Exception
WBEMServiceAdvertisementcreateClient in interface WBEMServiceAdvertisementpSubject - The credential for authenticating with the servicepLocales - An array of locales ordered by preferenceExceptionpublic String getDirectory()
WBEMServiceAdvertisementgetDirectory in interface WBEMServiceAdvertisementpublic String[] getInteropNamespaces()
WBEMServiceAdvertisementgetInteropNamespaces in interface WBEMServiceAdvertisementpublic String getServiceId()
WBEMServiceAdvertisementgetServiceId in interface WBEMServiceAdvertisementpublic boolean isExpired()
WBEMServiceAdvertisementisExpired in interface WBEMServiceAdvertisementtrue when advertisement is expired.public void setExpired(boolean pExpired)
WBEMServiceAdvertisementsetExpired in interface WBEMServiceAdvertisementpExpired - The new valueCopyright © 2005, 2012 IBM Corporation. All Rights Reserved.