public abstract class PublicationClientChildSbb extends Object implements javax.slee.Sbb, PublicationClientChild
| Modifier and Type | Field and Description |
|---|---|
protected javax.sip.address.AddressFactory |
addressFactory |
protected javax.sip.address.Address |
ecsAddress |
protected int |
expiresDrift |
protected javax.sip.header.HeaderFactory |
headerFactory |
protected javax.sip.message.MessageFactory |
messageFactory |
protected org.mobicents.slee.SbbContextExt |
sbbContext |
protected SipActivityContextInterfaceFactory |
sipActivityContextInterfaceFactory |
protected SleeSipProvider |
sleeSipProvider |
| Constructor and Description |
|---|
PublicationClientChildSbb() |
| Modifier and Type | Method and Description |
|---|---|
protected javax.sip.message.Request |
createNewPublishRequest(String entity,
String eventPackage,
int expires,
String contentType,
String contentSubType,
String document) |
protected javax.sip.message.Request |
createPublishRequest(String entity) |
protected javax.sip.message.Request |
createRefreshPublishRequest() |
protected javax.sip.message.Request |
createRemovePublishRequest() |
protected javax.sip.message.Request |
createUpdatePublishRequest(String contentType,
String contentSubType,
String document) |
protected void |
doRefresh() |
String |
getEntity()
Retrieve entity for which this child publishes.
|
abstract String |
getEntityCMP() |
String |
getETag()
Retrieve ETag used in last publish request.
|
abstract String |
getETagCMP() |
abstract String |
getEventPackageCMP() |
abstract int |
getExpiresCMP() |
protected PublicationClientParentSbbLocalObject |
getParent() |
abstract PostponedRequest |
getPostponedRequestCMP() |
abstract org.mobicents.slee.enabler.sip.PublishRequestType |
getPublishRequestTypeCMP() |
protected void |
handleFailure(int statusCode,
javax.slee.ActivityContextInterface ac) |
void |
modifyPublication(String document,
String contentType,
String contentSubType,
int expires)
Modifies publication with passed document.
|
void |
newPublication(String entity,
String eventPackage,
String document,
String contentType,
String contentSubType,
int expires)
This method should be used to create new publication.
|
void |
onClientErrorRespEvent(javax.sip.ResponseEvent event,
javax.slee.ActivityContextInterface aci) |
void |
onGlobalFailureRespEvent(javax.sip.ResponseEvent event,
javax.slee.ActivityContextInterface aci) |
void |
onServerErrorRespEvent(javax.sip.ResponseEvent event,
javax.slee.ActivityContextInterface aci) |
void |
onSuccessRespEvent(javax.sip.ResponseEvent event,
javax.slee.ActivityContextInterface aci) |
void |
onTimerEvent(javax.slee.facilities.TimerEvent event,
javax.slee.ActivityContextInterface aci) |
void |
onTransactionTimeoutEvent(javax.sip.TimeoutEvent event,
javax.slee.ActivityContextInterface aci) |
void |
removePublication()
Issues remove request.
|
void |
sbbActivate() |
void |
sbbCreate() |
void |
sbbExceptionThrown(Exception arg0,
Object arg1,
javax.slee.ActivityContextInterface arg2) |
void |
sbbLoad() |
void |
sbbPassivate() |
void |
sbbPostCreate() |
void |
sbbRemove() |
void |
sbbRolledBack(javax.slee.RolledBackContext arg0) |
void |
sbbStore() |
abstract void |
setEntityCMP(String d) |
abstract void |
setETagCMP(String d) |
abstract void |
setEventPackageCMP(String eventPackage) |
abstract void |
setExpiresCMP(int expires) |
abstract void |
setPostponedRequestCMP(PostponedRequest pr) |
abstract void |
setPublishRequestTypeCMP(org.mobicents.slee.enabler.sip.PublishRequestType t) |
void |
setSbbContext(javax.slee.SbbContext sbbContext) |
void |
unsetSbbContext() |
protected org.mobicents.slee.SbbContextExt sbbContext
protected SipActivityContextInterfaceFactory sipActivityContextInterfaceFactory
protected SleeSipProvider sleeSipProvider
protected javax.sip.message.MessageFactory messageFactory
protected javax.sip.address.AddressFactory addressFactory
protected javax.sip.header.HeaderFactory headerFactory
protected javax.sip.address.Address ecsAddress
protected int expiresDrift
protected PublicationClientParentSbbLocalObject getParent()
public String getEntity()
PublicationClientChildgetEntity in interface PublicationClientChildpublic String getETag()
PublicationClientChildgetETag in interface PublicationClientChildpublic void newPublication(String entity, String eventPackage, String document, String contentType, String contentSubType, int expires)
PublicationClientChildnewPublication in interface PublicationClientChildentity - - entity id handling this part of publication. AOR of
resource.eventPackage - - name of event package, ie: "publish"document - - encoded document, which should be sent for publicationcontentType - - main type of MIME typecontentSubType - - sub type of MIME typeexpires - - number of seconds for which publication should be active. If
its equal to 0, it means ESC/PA should determine expires
interval by itself.public void modifyPublication(String document, String contentType, String contentSubType, int expires)
PublicationClientChildmodifyPublication in interface PublicationClientChilddocument - - encoded document, which should be sent for publicationcontentType - - main type of MIME typecontentSubType - - sub type of MIME typeexpires - - number of seconds for which publication should be activepublic void removePublication()
PublicationClientChildremovePublication in interface PublicationClientChildpublic abstract void setEntityCMP(String d)
public abstract String getEntityCMP()
public abstract void setEventPackageCMP(String eventPackage)
public abstract String getEventPackageCMP()
public abstract void setExpiresCMP(int expires)
public abstract int getExpiresCMP()
public abstract void setETagCMP(String d)
public abstract String getETagCMP()
public abstract void setPostponedRequestCMP(PostponedRequest pr)
public abstract PostponedRequest getPostponedRequestCMP()
public abstract void setPublishRequestTypeCMP(org.mobicents.slee.enabler.sip.PublishRequestType t)
public abstract org.mobicents.slee.enabler.sip.PublishRequestType getPublishRequestTypeCMP()
public void onSuccessRespEvent(javax.sip.ResponseEvent event,
javax.slee.ActivityContextInterface aci)
public void onClientErrorRespEvent(javax.sip.ResponseEvent event,
javax.slee.ActivityContextInterface aci)
public void onServerErrorRespEvent(javax.sip.ResponseEvent event,
javax.slee.ActivityContextInterface aci)
public void onGlobalFailureRespEvent(javax.sip.ResponseEvent event,
javax.slee.ActivityContextInterface aci)
public void onTimerEvent(javax.slee.facilities.TimerEvent event,
javax.slee.ActivityContextInterface aci)
public void onTransactionTimeoutEvent(javax.sip.TimeoutEvent event,
javax.slee.ActivityContextInterface aci)
protected javax.sip.message.Request createPublishRequest(String entity) throws ParseException, javax.sip.TransportNotSupportedException, javax.sip.InvalidArgumentException
expires - eventPackage - entity - contentType - contentSubType - document - ParseExceptionjavax.sip.TransportNotSupportedExceptionjavax.sip.InvalidArgumentExceptionprotected javax.sip.message.Request createNewPublishRequest(String entity, String eventPackage, int expires, String contentType, String contentSubType, String document) throws ParseException, javax.sip.TransportNotSupportedException, javax.sip.InvalidArgumentException
contentType - contentSubType - document - ParseExceptionjavax.sip.TransportNotSupportedExceptionjavax.sip.InvalidArgumentExceptionprotected javax.sip.message.Request createUpdatePublishRequest(String contentType, String contentSubType, String document) throws ParseException, javax.sip.TransportNotSupportedException, javax.sip.InvalidArgumentException
contentType - contentSubType - document - ParseExceptionjavax.sip.TransportNotSupportedExceptionjavax.sip.InvalidArgumentExceptionprotected javax.sip.message.Request createRemovePublishRequest()
throws ParseException,
javax.sip.TransportNotSupportedException,
javax.sip.InvalidArgumentException
ParseExceptionjavax.sip.TransportNotSupportedExceptionjavax.sip.InvalidArgumentExceptionprotected javax.sip.message.Request createRefreshPublishRequest()
throws ParseException,
javax.sip.TransportNotSupportedException,
javax.sip.InvalidArgumentException
ParseExceptionjavax.sip.TransportNotSupportedExceptionjavax.sip.InvalidArgumentExceptionprotected void handleFailure(int statusCode,
javax.slee.ActivityContextInterface ac)
statusCode - protected void doRefresh()
public void sbbActivate()
sbbActivate in interface javax.slee.Sbbpublic void sbbCreate()
throws javax.slee.CreateException
sbbCreate in interface javax.slee.Sbbjavax.slee.CreateExceptionpublic void sbbExceptionThrown(Exception arg0, Object arg1, javax.slee.ActivityContextInterface arg2)
sbbExceptionThrown in interface javax.slee.Sbbpublic void sbbLoad()
sbbLoad in interface javax.slee.Sbbpublic void sbbPassivate()
sbbPassivate in interface javax.slee.Sbbpublic void sbbPostCreate()
throws javax.slee.CreateException
sbbPostCreate in interface javax.slee.Sbbjavax.slee.CreateExceptionpublic void sbbRemove()
sbbRemove in interface javax.slee.Sbbpublic void sbbRolledBack(javax.slee.RolledBackContext arg0)
sbbRolledBack in interface javax.slee.Sbbpublic void sbbStore()
sbbStore in interface javax.slee.Sbbpublic void setSbbContext(javax.slee.SbbContext sbbContext)
setSbbContext in interface javax.slee.Sbbpublic void unsetSbbContext()
unsetSbbContext in interface javax.slee.SbbCopyright © 2017. All rights reserved.