public class DialogOpenRequestEvent extends DialogMessageEvent
Services should ensure that they process the DialogOpenRequestEvent on a dialog for application contexts they support, and avoid processing open request events of other dialogs, through use of an initial event selector method. This allows the resource adaptor to determine when an incoming application context is unsupported, and correctly refuse the dialog: it will refuse any dialog where no service processes the first event on a dialog. By using an initial event selector to decide which dialogs to process, many services handling different application contexts may coexist in the same SLEE instance.
Additionally, the resource adaptor implementation uses processing of the first event as an optimization to determine whether to use the message-oriented or component-oriented event API for a particular dialog. If the first component-based event (an OpenRequestEvent) is not processed, subsequent network messages will not generate component-based events. Similarly, if the first message-based event (a DialogMessageEvent) is not processed, subsequent network messages will not generate message-based events.
Modifier and Type | Field and Description |
---|---|
static EventTypeID |
ID
Common event type used when firing a DialogOpenRequestEvent to the SLEE when using the component-oriented event API.
|
Constructor and Description |
---|
DialogOpenRequestEvent(Dialog dialog,
DialogMessageType messageType,
SccpAddress originatingAddress,
SccpAddress destinationAddress,
boolean hasLayer3OriginatingPointCode,
int layer3OriginatingPointCode,
boolean hasLayer3DestinationPointCode,
int layer3DestinationPointCode,
Object[] userInformation,
ComponentEvent[] componentEvents)
Construct a new Open Request event
|
getApplicationContext, getComponentEvents, getDestinationAddress, getLayer3DestinationPointCode, getLayer3DestinationPointCodeMemberClusterNetwork, getLayer3DestinationPointCodeZoneAreaSignalPoint, getLayer3OriginatingPointCode, getLayer3OriginatingPointCodeMemberClusterNetwork, getLayer3OriginatingPointCodeZoneAreaSignalPoint, getMessageType, getOriginatingAddress, hasLayer3DestinationPointCode, hasLayer3OriginatingPointCode, isApplicationContextSupported, isFirstResponse, toString
getUserInformation
public static final EventTypeID ID
public DialogOpenRequestEvent(Dialog dialog, DialogMessageType messageType, SccpAddress originatingAddress, SccpAddress destinationAddress, boolean hasLayer3OriginatingPointCode, int layer3OriginatingPointCode, boolean hasLayer3DestinationPointCode, int layer3DestinationPointCode, Object[] userInformation, ComponentEvent[] componentEvents)
dialog
- the newly created dialogmessageType
- the network message type that initiated the dialogoriginatingAddress
- the TC originating address (SCCP calling party address) of the dialoguedestinationAddress
- the TC destination address (SCCP called party address) of the dialoguehasLayer3OriginatingPointCode
- true if layer3OriginatingPointCode
contains a valid L3 point codelayer3OriginatingPointCode
- the originating point code in the layer3 message that this TC-BEGIN arrived inhasLayer3DestinationPointCode
- true if layer3DestinationPointCode
contains a valid L3 point codelayer3DestinationPointCode
- the destination point code in the layer3 message that this TC-BEGIN arrived inuserInformation
- user information, if present in the responsecomponentEvents
- the component events received in the TC-BEGIN that will be fired after this event