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
ProfileService
getDocument
in interface ProfileService
docSel
- the document selector to useProfileException
public Document getDocument(javax.servlet.sip.Address requestor, String docSel) throws ProfileException
ProfileService
getDocument
in interface ProfileService
requestor
- the party making the requestdocSel
- the DocumentProfileException
public void putDocument(String docSel, Document doc) throws ProfileException
ProfileService
putDocument
in interface ProfileService
docSel
- the document selector to usedoc
- the Document to updateProfileException
public void putDocument(javax.servlet.sip.Address requestor, String docSel, Document doc) throws ProfileException
ProfileService
putDocument
in interface ProfileService
requestor
- the party making the requestdocSel
- the document selector to usedoc
- the Document to updateProfileException
public void deleteDocument(String docSel) throws ProfileException
ProfileService
deleteDocument
in interface ProfileService
docSel
- the document selector to useProfileException
public void deleteDocument(javax.servlet.sip.Address requestor, String docSel) throws ProfileException
ProfileService
deleteDocument
in interface ProfileService
requestor
- the party ordering the deletedocSel
- the document selector to useProfileException
public ProfileSubscription subscribe(javax.servlet.sip.SipApplicationSession session, String docSel, Serializable info) throws ProfileException
ProfileService
subscribe
method.subscribe
in interface ProfileService
session
- The session interested in this subscriptiondocSel
- The document Selectorinfo
- Extra information to be passed in the callbackProfileException
public ProfileSubscription subscribe(javax.servlet.sip.Address subscriber, javax.servlet.sip.SipApplicationSession session, String docSel, Serializable info) throws ProfileException
ProfileService
subscribe
method.subscribe
in interface ProfileService
subscriber
- the party making the subscriptionsession
- The session interested in this subscriptiondocSel
- The document Selectorinfo
- Extra information to be passed in the callbackProfileException
public ProfileSubscription subscribe(javax.servlet.sip.SipApplicationSession session, String docSel, int duration, Serializable info) throws ProfileException
ProfileService
subscribe
in interface ProfileService
session
- The session interested in this subscriptiondocSel
- The document Selectorduration
- The length of the subscription in secondsinfo
- Extra information to be passed in the callbackProfileException
public ProfileSubscription subscribe(javax.servlet.sip.Address subscriber, javax.servlet.sip.SipApplicationSession session, String docSel, int duration, Serializable info) throws ProfileException
ProfileService
subscribe
in interface ProfileService
subscriber
- 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.ProfileException
public void registerSpi(String protocol, ProfileServiceSpi provider)
ProfileServiceInternal
registerSpi
in interface ProfileServiceInternal
protocol
- The protocol for which the provider is being registered. An example is "sh"provider
- The provider to handle this protocolpublic void unregisterSpi(String protocol)
ProfileServiceInternal
unregisterSpi
in interface ProfileServiceInternal
protocol
- The protocol for which the provider is being unregistered. An example is "sh"