|
JAIN TCAP API v1.1 - 5th Sept 2001 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface must be implemented by any Object representing the JAIN TCAP layer of any SS7 stack that interacts directly with a proprietary (stack vendor specific) implementation of the TCAP layer. This interface defines the methods that will be used by any registered TCAP User application implementing the JainTcapListener interface to send component primitives and dialogue handling primitives. It must be noted that any object that implements the:
This interface defines methods for:
JainTcapListener
,
JainTcapStack
Method Summary | |
void |
addJainTcapListener(JainTcapListener listener,
SccpUserAddress userAddress)
Adds a JainTcapListener to the list of registered Event Listeners of this JainTcapProviderImpl. |
void |
addJainTcapListener(JainTcapListener listener,
TcapUserAddress userAddress)
Deprecated. As of JAIN TCAP version 1.1. This method is replaced by the addJainTcapListener(JainTcapListener, SccpUserAddress) method. |
JainTcapStack |
getAttachedStack()
Deprecated. As of JAIN TCAP v1.1. This class is no longer needed as a result of the addition of the getStack() class.
The reason for deprecating this method is that the provider is attached implicitly. |
int |
getNewDialogueId()
Returns a unique Dialogue Id to initiate a dialogue with another TCAP user. |
int |
getNewInvokeId(int dialogueId)
Returns a unique Invoke Id for identifying invoke requests within the dialogue identified by the supplied Dialogue Id. |
JainTcapStack |
getStack()
Returns the JainTcapStackImpl that this JainTcapProviderImpl is attached to. |
boolean |
isAttached()
Deprecated. As of JAIN TCAP v1.1. No replacement, the JainTcapProvider is attached implicitly within the createProvider method call in the JainTcapStack Interface. |
void |
releaseDialogueId(int dialogueId)
Release the dialogue Id back to the system. |
void |
releaseInvokeId(int invokeId,
int dialogueId)
Releases the unique Invoke Id, allowing it to be reused within the dialogue identified by the supplied Dialogue Id. |
void |
removeJainTcapListener(JainTcapListener listener)
Removes a JainTcapListener from the list of registered JainTcapListeners of this JainTcapProviderImpl. |
void |
sendComponentReqEvent(ComponentReqEvent event)
Sends a Component Request primitive into the TCAP layer of the SS7 protocol stack. |
void |
sendDialogueReqEvent(DialogueReqEvent event)
Sends a Dialogue Request primitive into the TCAP layer of the SS7 protocol stack. |
Method Detail |
public int getNewDialogueId() throws IdNotAvailableException
IdNotAvailableException
- if a new Dialogue Id is not availablepublic void releaseDialogueId(int dialogueId) throws IdNotAvailableException
dialogueId
- the dialogue Id supplied to the methodIdNotAvailableException
- if a new Dialogue Id is not availablepublic int getNewInvokeId(int dialogueId) throws IdNotAvailableException
JainTcapListeners
is identified by a unique Dialogue Id. Note
that the returned Invoke Id will be unique for a particular Dialogue Id.dialogueId
- the dialogue Id supplied to the methodIdNotAvailableException
- if an invoke Id is not available to the
specified dialogue Idpublic void releaseInvokeId(int invokeId, int dialogueId) throws IdNotAvailableException
invokeId
- the invoke Id to be releaseddialogueId
- the dialogue Id from which to release the dialogue IdIdNotAvailableException
- if an invoke Id is not available to the
specified dialogue Idpublic void sendComponentReqEvent(ComponentReqEvent event) throws MandatoryParameterNotSetException
event
- the new component event supplied to the methodMandatoryParameterNotSetException
- thrown if all of the mandatory
parameters required by this JainTcapProviderImpl, to send the Component
Request are not set.
ComponentReqEvent
. It is recommended that the message detail
returned in the MandatoryParameterNotSetException
should
be a String
of the form: public void sendDialogueReqEvent(DialogueReqEvent event) throws MandatoryParameterNotSetException
event
- the new dialogue event supplied to the methodMandatoryParameterNotSetException
- thrown if all of the mandatory
parameters required by this JainTcapProviderImpl to send the Dialogue
Request are not set.
Note to developers :- different implementations of this
JainTcapProvider interface will mandate that different parameters must
be set for each DialogueReqEvent
. It is recommended that
the detail message returned in the
MandatoryParameterNotSetException
should be a String
of the form:
public void addJainTcapListener(JainTcapListener listener, TcapUserAddress userAddress) throws java.util.TooManyListenersException, ListenerAlreadyRegisteredException, InvalidUserAddressException
addJainTcapListener(JainTcapListener, SccpUserAddress)
method.
listener
- the feature to be added to the JainTcapListener attributeuserAddress
- the feature to be added to the JainTcapListener attributejava.util.TooManyListenersException
- thrown if a limit is
placed on the allowable number of registered JainTcapListeners, and
this limit is exceeded.ListenerAlreadyRegisteredException
- thrown if the listener
listener supplied is already registeredInvalidUserAddressException
- thrown if the user address
supplied is not a valid addresspublic void addJainTcapListener(JainTcapListener listener, SccpUserAddress userAddress) throws java.util.TooManyListenersException, ListenerAlreadyRegisteredException, InvalidAddressException
listener
- the feature to be added to the JainTcapListener attributeuserAddress
- the feature to be added to the JainTcapListener attributejava.util.TooManyListenersException
- thrown if a limit is
placed on the allowable number of registered JainTcapListeners, and
this limit is exceeded.ListenerAlreadyRegisteredException
- thrown if the listener
listener supplied is already registeredInvalidAddressException
- thrown if the user address
supplied is not a valid addresspublic void removeJainTcapListener(JainTcapListener listener) throws ListenerNotRegisteredException
listener
- the listener to be removed from this providerListenerNotRegisteredException
- thrown if there is no such
listener registered with this providerpublic JainTcapStack getAttachedStack()
getStack()
class.
The reason for deprecating this method is that the provider is attached implicitly.
public JainTcapStack getStack()
public boolean isAttached()
JainTcapStack
Interface.
|
JAIN TCAP API v1.1 - 5th Sept 2001 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |