|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.sblim.slp.TemplateRegistry
public abstract class TemplateRegistry
Subclasses of the TemplateRegistry abstract class provide access to service location templates [8]. Classes implementing TemplateRegistry perform a variety of functions. They manage the registration and access of service type template documents. They create attribute verifiers from service templates, for verification of attributes and introspection on template documents. Note that clients of the Advertiser are not required to verify attributes before registering (though they may get a TYPE_ERROR if the implementation supports type checking and there is a mismatch with the template).
Constructor Summary | |
---|---|
TemplateRegistry()
|
Method Summary | |
---|---|
abstract ServiceLocationAttributeVerifier |
attributeVerifier(String pDocumentURL)
Reads the template document URL and returns an attribute verifier for the service type. |
abstract void |
deregisterServiceTemplate(ServiceType pType,
Locale pLocale,
String pVersion)
Deregister the template for the service type. |
abstract String |
findTemplateURL(ServiceType pType,
Locale pLocale,
String pVersion)
Returns the URL for the template document. |
static TemplateRegistry |
getTemplateRegistry()
Returns the distinguished TemplateRegistry object for performing operations on and with service templates. |
abstract void |
registerServiceTemplate(ServiceType pType,
String pDocumentURL,
Locale pLocale,
String pVersion)
Register the service template with the template registry. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TemplateRegistry()
Method Detail |
---|
public static TemplateRegistry getTemplateRegistry()
public abstract void registerServiceTemplate(ServiceType pType, String pDocumentURL, Locale pLocale, String pVersion) throws ServiceLocationException
pType
- The service type.pDocumentURL
- A string containing the URL of the template document. May not
be the empty string.pLocale
- A Locale object containing the language locale of the
template.pVersion
- The version number identifier of template document.
ServiceLocationException
public abstract void deregisterServiceTemplate(ServiceType pType, Locale pLocale, String pVersion) throws ServiceLocationException
pType
- The service type.pLocale
- A Locale object containing the language locale of the
template.pVersion
- A String containing the version number. Use null to indicate
the latest version.
ServiceLocationException
public abstract String findTemplateURL(ServiceType pType, Locale pLocale, String pVersion) throws ServiceLocationException
pType
- The service type.pLocale
- A Locale object containing the language locale of the
template.pVersion
- A String containing the version number. Use null to indicate
the latest version.
ServiceLocationException
public abstract ServiceLocationAttributeVerifier attributeVerifier(String pDocumentURL) throws ServiceLocationException
pDocumentURL
- A String containing the template document's URL. May not be
the empty string.
ServiceLocationException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |