Revision: 16326
Author: baranowb
Date: Tue Jan 11 09:13:31 2011
Log: Update SIP enabler doc, ident some content.
http://code.google.com/p/mobicents/source/detail?r=16326
Modified:
/trunk/servers/jain-slee/enablers/sip-publication-client/docs/sources/src/main/resources/en-US/Chapter-Using_The_Enabler.xml
=======================================
---
/trunk/servers/jain-slee/enablers/sip-publication-client/docs/sources/src/main/resources/en-US/Chapter-Using_The_Enabler.xml
Wed Jan 5 18:00:23 2011
+++
/trunk/servers/jain-slee/enablers/sip-publication-client/docs/sources/src/main/resources/en-US/Chapter-Using_The_Enabler.xml
Tue Jan 11 09:13:31 2011
@@ -70,9 +70,11 @@
public interface PublicationClientChild {
- public void newPublication(String entity, String eventPackage, String
document, String contentType, String contentSubType, int expires);
-
- public void modifyPublication(String document, String contentType, String
contentSubType, int expires);
+ public void newPublication(String entity, String eventPackage, String
document, String contentType,
+ String contentSubType, int expires);
+
+ public void modifyPublication(String document, String contentType
+ , String contentSubType, int expires);
public void removePublication();
@@ -189,25 +191,26 @@
create and retrieve the Child Sbb, it is important to
not forget to
pass the Parent's SbbLocalObject to the Child after
creation:</para>
<programlisting language="Java" role="JAVA"><![CDATA[
- public PublicationClientChildLocalInterface
getPublicationClientChildSbb() {
- final ChildRelation childRelation =
getSipPublicationClientChildRelation();
- if (childRelation.isEmpty()) {
- try {
- // creates new instance
- SipPublicationClientChildSbbLocalInterface sbb =
(PublicationClientChildSbbLocalObject) childRelation.create();
- // passes the parent sbb local object to the
child
- sbb.setParentSbb((PublicationClientParentSbbLocalObject)
sbbContext.getSbbLocalObject());
- return sbb;
- } catch (Exception e) {
- tracer.severe("Failed to create child sbb", e);
- return null;
- }
- }
- else {
- (PublicationClientChildSbbLocalObject) return
childRelation.iterator().next();
- }
- }
- ]]>
+public PublicationClientChildLocalInterface getPublicationClientChildSbb()
{
+ final ChildRelation childRelation =
getSipPublicationClientChildRelation();
+ if (childRelation.isEmpty()) {
+ try {
+ // creates new instance
+ SipPublicationClientChildSbbLocalInterface sbb =
+ (PublicationClientChildSbbLocalObject)
childRelation.create();
+ // passes the parent sbb local object to the child
+ sbb.setParentSbb((PublicationClientParentSbbLocalObject)
+ sbbContext.getSbbLocalObject());
+ return sbb;
+ } catch (Exception e) {
+ tracer.severe("Failed to create child sbb", e);
+ return null;
+ }
+ }else {
+ (PublicationClientChildSbbLocalObject) return
childRelation.iterator().next();
+ }
+}
+ ]]>
</programlisting>
<para>The SbbLocalObject of the Child could also be stored in a
CMP
Field for the simplest retrieval, but unless you are
going to reuse