|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.sblim.slp.internal.AdvertiserImpl
public class AdvertiserImpl
The class AdvertiserImpl implements the Advertister interface as defined by RFC 3224
Constructor Summary | |
---|---|
AdvertiserImpl(java.util.Locale pLocale)
|
Method Summary | |
---|---|
void |
addAttributes(ServiceURL pUrl,
java.util.Vector pAttributes)
Update the registration by adding the given attributes. |
void |
deleteAttributes(ServiceURL pUrl,
java.util.Vector pAttributeIds)
Delete the attributes from a URL for the locale with which the Advertiser was created. |
void |
deregister(ServiceURL pServiceUrl)
Deregister a service from the SLP framework. |
java.util.Locale |
getLocale()
Return the language locale with which this object was created. |
void |
register(ServiceURL pServiceUrl,
java.util.Vector pAttibutes)
Register a new service with SLP having the given attributes. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AdvertiserImpl(java.util.Locale pLocale)
Method Detail |
---|
public java.util.Locale getLocale()
Advertiser
getLocale
in interface Advertiser
public void register(ServiceURL pServiceUrl, java.util.Vector pAttibutes) throws ServiceLocationException
Advertiser
register
in interface Advertiser
pServiceUrl
- The URL for the service.pAttibutes
- A vector of ServiceLocationAttribute objects describing the
service.
ServiceLocationException
public void deregister(ServiceURL pServiceUrl) throws ServiceLocationException
Advertiser
deregister
in interface Advertiser
pServiceUrl
- The URL for the service.
ServiceLocationException
public void addAttributes(ServiceURL pUrl, java.util.Vector pAttributes) throws ServiceLocationException
Advertiser
addAttributes
in interface Advertiser
pUrl
- The URL for the service.pAttributes
- A Vector of ServiceLocationAttribute objects to add to the
existing registration. Use an empty vector to update the URL
alone. May not be null.
ServiceLocationException
public void deleteAttributes(ServiceURL pUrl, java.util.Vector pAttributeIds) throws ServiceLocationException
Advertiser
deleteAttributes
in interface Advertiser
pUrl
- The URL for the service.pAttributeIds
- A vector of Strings indicating the ids of the attributes to
remove. The strings may be attribute ids or they may be
wildcard patterns to match ids. See [7] for the syntax of
wildcard patterns. The strings may include SLP reserved
characters, they will be escaped by the API before
transmission. May not be the empty vector or null.
ServiceLocationException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |