|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.sblim.slp.internal.LocatorImpl
public class LocatorImpl
The class LocatorImpl implements the Locator interface as defined by RFC 3224
Method Summary | |
---|---|
ServiceLocationEnumeration |
findAttributes(ServiceType pServiceType,
java.util.Vector pScopes,
java.util.Vector pAttributeIds)
For the type and scope, return a Vector of all ServiceLocationAttribute objects whose ids match the String patterns in the attributeIds Vector regardless of the Locator's locale. |
ServiceLocationEnumeration |
findAttributes(ServiceType pType,
java.util.Vector pScopes,
java.util.Vector pAttributeIds,
java.util.Vector directoryAgents)
For the type and scope, return a Vector of all ServiceLocationAttribute objects whose ids match the String patterns in the attributeIds Vector regardless of the Locator's locale. |
ServiceLocationEnumeration |
findAttributes(ServiceURL pServiceUrl,
java.util.Vector pScopes,
java.util.Vector pAttributeIds)
For the URL and scope, return a Vector of ServiceLocationAttribute objects whose ids match the String patterns in the attributeIds Vector. |
ServiceLocationEnumeration |
findAttributes(ServiceURL pURL,
java.util.Vector pScopes,
java.util.Vector pAttributeIds,
java.util.Vector directoryAgents)
For the URL and scope, return a Vector of ServiceLocationAttribute objects whose ids match the String patterns in the attributeIds Vector. |
ServiceLocationEnumeration |
findServices(ServiceType pServicetype,
java.util.Vector pScopes,
java.lang.String pQuery)
Returns a vector of ServiceURL objects for services matching the query, and having a matching type in the given scopes. |
ServiceLocationEnumeration |
findServices(ServiceType pServicetype,
java.util.Vector pScopes,
java.lang.String pQuery,
java.util.Vector pDiscoveryAgents)
Returns a vector of ServiceURL objects for services matching the query, and having a matching type in the given scopes. |
ServiceLocationEnumeration |
findServiceTypes(java.lang.String pNamingAuthority,
java.util.Vector pScopes)
Returns an enumeration of ServiceType objects giving known service types for the given scopes and given naming authority. |
ServiceLocationEnumeration |
findServiceTypes(java.lang.String pNamingAuthority,
java.util.Vector pScopes,
java.util.Vector pDirectoryAgent)
Returns an enumeration of ServiceType objects giving known service types for the given scopes and given naming authority. |
java.util.Locale |
getLocale()
Return the language locale with which this object was created. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public ServiceLocationEnumeration findServices(ServiceType pServicetype, java.util.Vector pScopes, java.lang.String pQuery) throws ServiceLocationException
Locator
findServices
in interface Locator
pServicetype
- The SLP service type of the service.pScopes
- A Vector of scope names. The vector should be selected from
the results of a findScopes() API invocation. Use "DEFAULT"
for the default scope.pQuery
- An LDAPv3 [4] string encoded query. If the filter is empty,
i.e. "", all services of the requested type in the specified
scopes are returned. SLP reserved characters must be escaped
in the query. Use ServiceLocationAttribute.escapeId() and
ServiceLocationAttribute.escapeValue() to construct the query.
ServiceLocationException
public ServiceLocationEnumeration findServices(ServiceType pServicetype, java.util.Vector pScopes, java.lang.String pQuery, java.util.Vector pDiscoveryAgents) throws ServiceLocationException
Locator
findServices
in interface Locator
pServicetype
- The SLP service type of the service.pScopes
- A Vector of scope names. The vector should be selected from
the results of a findScopes() API invocation. Use "DEFAULT"
for the default scope.pQuery
- An LDAPv3 [4] string encoded query. If the filter is empty,
i.e. "", all services of the requested type in the specified
scopes are returned. SLP reserved characters must be escaped
in the query. Use ServiceLocationAttribute.escapeId() and
ServiceLocationAttribute.escapeValue() to construct the query.pDiscoveryAgents
- A vector of InetAddress that specify the directory agents to
look for.
ServiceLocationException
public java.util.Locale getLocale()
Locator
getLocale
in interface Locator
public ServiceLocationEnumeration findServiceTypes(java.lang.String pNamingAuthority, java.util.Vector pScopes) throws ServiceLocationException
Locator
findServiceTypes
in interface Locator
pNamingAuthority
- The naming authority. Use "" for the default naming authority
and "*" for all naming authorities.pScopes
- A Vector of scope names. The vector should be selected from
the results of a findScopes() API invocation. Use "DEFAULT"
for the default scope.
ServiceLocationException
public ServiceLocationEnumeration findAttributes(ServiceURL pServiceUrl, java.util.Vector pScopes, java.util.Vector pAttributeIds) throws ServiceLocationException
Locator
findAttributes
in interface Locator
pServiceUrl
- The URL for which the attributes are desired.pScopes
- A Vector of scope names. The vector should be selected from
the results of a findScopes() API invocation. Use "DEFAULT"
for the default scope.pAttributeIds
- A Vector of String patterns identifying the desired
attributes. An empty vector means return all attributes. As
described in [7], the patterns may include wildcards to match
substrings. The strings may include SLP reserved characters,
they will be escaped by the API before transmission.
ServiceLocationException
public ServiceLocationEnumeration findAttributes(ServiceType pServiceType, java.util.Vector pScopes, java.util.Vector pAttributeIds) throws ServiceLocationException
Locator
findAttributes
in interface Locator
pServiceType
- The service type.pScopes
- A Vector of scope names. The vector should be selected from
the results of a findScopes() API invocation. Use "DEFAULT"
for the default scope.pAttributeIds
- A Vector of String patterns identifying the desired
attributes. An empty vector means return all attributes. As
described in [7], the patterns may include wildcards to match
all prefixes or suffixes. The patterns may include SLP
reserved characters, they will be escaped by the API before
transmission.
ServiceLocationException
public ServiceLocationEnumeration findServiceTypes(java.lang.String pNamingAuthority, java.util.Vector pScopes, java.util.Vector pDirectoryAgent) throws ServiceLocationException
Locator
findServiceTypes
in interface Locator
pNamingAuthority
- The naming authority. Use "" for the default naming authority
and "*" for all naming authorities.pScopes
- A Vector of scope names. The vector should be selected from
the results of a findScopes() API invocation. Use "DEFAULT"
for the default scope.pDirectoryAgent
- A vector of InetAddress that specify the directory agents to
look for.
ServiceLocationException
public ServiceLocationEnumeration findAttributes(ServiceURL pURL, java.util.Vector pScopes, java.util.Vector pAttributeIds, java.util.Vector directoryAgents) throws ServiceLocationException
Locator
findAttributes
in interface Locator
pURL
- The URL for which the attributes are desired.pScopes
- A Vector of scope names. The vector should be selected from
the results of a findScopes() API invocation. Use "DEFAULT"
for the default scope.pAttributeIds
- A Vector of String patterns identifying the desired
attributes. An empty vector means return all attributes. As
described in [7], the patterns may include wildcards to match
substrings. The strings may include SLP reserved characters,
they will be escaped by the API before transmission.directoryAgents
- A vector of InetAddress that specify the directory agents to
look for.
ServiceLocationException
public ServiceLocationEnumeration findAttributes(ServiceType pType, java.util.Vector pScopes, java.util.Vector pAttributeIds, java.util.Vector directoryAgents) throws ServiceLocationException
Locator
findAttributes
in interface Locator
pType
- The service type.pScopes
- A Vector of scope names. The vector should be selected from
the results of a findScopes() API invocation. Use "DEFAULT"
for the default scope.pAttributeIds
- A Vector of String patterns identifying the desired
attributes. An empty vector means return all attributes. As
described in [7], the patterns may include wildcards to match
all prefixes or suffixes. The patterns may include SLP
reserved characters, they will be escaped by the API before
transmission.directoryAgents
- A vector of InetAddress that specify the directory agents to
look for.
ServiceLocationException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |