public class ProfileServiceCached extends Object implements ProfileService, ProfileServiceInternal
| Modifier and Type | Class and Description |
|---|---|
static interface |
ProfileServiceCached.AttributeContainer |
PROFILE_SERVICE| Constructor and Description |
|---|
ProfileServiceCached(ProfileServiceCached.AttributeContainer container) |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteDocument(javax.servlet.sip.Address requestor,
String docSel)
Deletes a document.
|
void |
deleteDocument(String docSel)
Deletes a document.
|
static Element |
getChild(Element e,
String tagName) |
Document |
getDocument(javax.servlet.sip.Address requestor,
String docSel)
Gets a document.
|
Document |
getDocument(String docSel)
Gets a document.
|
static Element |
getElement(Element e,
String path) |
void |
putDocument(javax.servlet.sip.Address requestor,
String docSel,
Document doc)
Updates a document.
|
void |
putDocument(String docSel,
Document doc)
Updates a document.
|
void |
registerSpi(String protocol,
ProfileServiceSpi provider)
Registers a ProfileServiceSpi for a named protocol.
|
ProfileSubscription |
subscribe(javax.servlet.sip.Address subscriber,
javax.servlet.sip.SipApplicationSession session,
String docSel,
int duration,
Serializable info)
Subscribes to change notifications for a document described by the docSel
document selector.
|
ProfileSubscription |
subscribe(javax.servlet.sip.Address subscriber,
javax.servlet.sip.SipApplicationSession session,
String docSel,
Serializable info)
Subscribes to change notifications for a document described by the docSel
document selector.
|
ProfileSubscription |
subscribe(javax.servlet.sip.SipApplicationSession session,
String docSel,
int duration,
Serializable info)
Subscribes to change notifications for a document described by the docSel
document selector.
|
ProfileSubscription |
subscribe(javax.servlet.sip.SipApplicationSession session,
String docSel,
Serializable info)
Subscribes to change notifications for a document described by the docSel
document selector.
|
void |
unregisterSpi(String protocol)
Unregisters a ProfileServiceSpi for a named protocol.
|
public ProfileServiceCached(ProfileServiceCached.AttributeContainer container)
public Document getDocument(String docSel) throws ProfileException
ProfileServicegetDocument in interface ProfileServicedocSel - the document selector to useProfileExceptionpublic Document getDocument(javax.servlet.sip.Address requestor, String docSel) throws ProfileException
ProfileServicegetDocument in interface ProfileServicerequestor - the party making the requestdocSel - the DocumentProfileExceptionpublic void putDocument(String docSel, Document doc) throws ProfileException
ProfileServiceputDocument in interface ProfileServicedocSel - the document selector to usedoc - the Document to updateProfileExceptionpublic void putDocument(javax.servlet.sip.Address requestor,
String docSel,
Document doc)
throws ProfileException
ProfileServiceputDocument in interface ProfileServicerequestor - the party making the requestdocSel - the document selector to usedoc - the Document to updateProfileExceptionpublic void deleteDocument(String docSel) throws ProfileException
ProfileServicedeleteDocument in interface ProfileServicedocSel - the document selector to useProfileExceptionpublic void deleteDocument(javax.servlet.sip.Address requestor,
String docSel)
throws ProfileException
ProfileServicedeleteDocument in interface ProfileServicerequestor - the party ordering the deletedocSel - the document selector to useProfileExceptionpublic ProfileSubscription subscribe(javax.servlet.sip.SipApplicationSession session, String docSel, Serializable info) throws ProfileException
ProfileServicesubscribe
method.subscribe in interface ProfileServicesession - The session interested in this subscriptiondocSel - The document Selectorinfo - Extra information to be passed in the callbackProfileExceptionpublic ProfileSubscription subscribe(javax.servlet.sip.Address subscriber, javax.servlet.sip.SipApplicationSession session, String docSel, Serializable info) throws ProfileException
ProfileServicesubscribe
method.subscribe in interface ProfileServicesubscriber - the party making the subscriptionsession - The session interested in this subscriptiondocSel - The document Selectorinfo - Extra information to be passed in the callbackProfileExceptionpublic ProfileSubscription subscribe(javax.servlet.sip.SipApplicationSession session, String docSel, int duration, Serializable info) throws ProfileException
ProfileServicesubscribe in interface ProfileServicesession - The session interested in this subscriptiondocSel - The document Selectorduration - The length of the subscription in secondsinfo - Extra information to be passed in the callbackProfileExceptionpublic ProfileSubscription subscribe(javax.servlet.sip.Address subscriber, javax.servlet.sip.SipApplicationSession session, String docSel, int duration, Serializable info) throws ProfileException
ProfileServicesubscribe in interface ProfileServicesubscriber - The party making the subscription.session - The session interested in this subscriptiondocSel - The document Selectorduration - The length of the subscription in secondsinfo - Extra information to be passed in the callback.ProfileExceptionpublic void registerSpi(String protocol, ProfileServiceSpi provider)
ProfileServiceInternalregisterSpi in interface ProfileServiceInternalprotocol - The protocol for which the provider is being registered. An example is "sh"provider - The provider to handle this protocolpublic void unregisterSpi(String protocol)
ProfileServiceInternalunregisterSpi in interface ProfileServiceInternalprotocol - The protocol for which the provider is being unregistered. An example is "sh"