BEA Systems, Inc.

BEA WebLogic SIP Server 2.2 API Reference


com.bea.wcp.profile
Interface ProfileService


public interface ProfileService

Starting point for accessing the Profile service. The ProfileService is storred as an attribute of the ServletContext. For example in a Servlet, the following illustrates how to obtain a reference to the service:

 ProfileService psvc = (ProfileService) getServletContext().getAttribute(ProfileService.PROFILE_SERVICE);

Copyright © 2006 BEA Systems, Inc. All Rights Reserved.

Field Summary
static java.lang.String PROFILE_SERVICE
          The string to be used to look up the ProfileService in the ServletContext attributes
 
Method Summary
 org.w3c.dom.Document getDocument(java.lang.String docSel)
          Get a document.
 void putDocument(java.lang.String docSel, org.w3c.dom.Document doc)
          Update a document.
 ProfileSubscription subscribe(SipApplicationSession session, java.lang.String docSel, java.io.Serializable info)
          Subscribe to change notifications for a document described by the docSel document selector.
 

Field Detail

PROFILE_SERVICE

public static final java.lang.String PROFILE_SERVICE
The string to be used to look up the ProfileService in the ServletContext attributes

See Also:
Constant Field Values
Method Detail

getDocument

public org.w3c.dom.Document getDocument(java.lang.String docSel)
                                 throws ProfileException,
                                        java.io.IOException
Get a document.

Parameters:
docSel - the document selector to use
Returns:
the Document
Throws:
ProfileException
java.io.IOException

putDocument

public void putDocument(java.lang.String docSel,
                        org.w3c.dom.Document doc)
                 throws ProfileException,
                        java.io.IOException
Update a document.

Parameters:
docSel - the document selector to use
doc - the Document to update
Throws:
ProfileException
java.io.IOException

subscribe

public ProfileSubscription subscribe(SipApplicationSession session,
                                     java.lang.String docSel,
                                     java.io.Serializable info)
                              throws ProfileException
Subscribe to change notifications for a document described by the docSel document selector. This is delegated to the subscribe method.

Parameters:
session - The session interested in this subscription
docSel - The document Selector
info - Extra information to be passed in the callback.
Throws:
ProfileException

Documentation is available at
http://download.oracle.com/docs/cd/E13209_01/wlcp/wlss22/
Copyright 2006 BEA Systems Inc.