public class ComponentRejectedEvent extends ComponentEvent
This event is fired in two cases.
When a TC-U-REJECT or TC-R-REJECT is received from the TCAP stack, indicating that a reject component was received in a network message, the CGIN infrastructure attempts to map the reject to a currently active invoke. If found, an appropriate OperationProviderErrorEvent is fired. However, if there is no corresponding active invoke, a ComponentRejectedEvent with a reject type of RejectType.REMOTE is fired instead.
When the local TCAP stack receives a component that cannot be decoded or has some other problem with it, it will queue a rejection component for sending, and generate a local TC-L-REJECT notification. If the CGIN infrastructure can map this notification to a currently active invoke, then an appropriate OperationProviderErrorEvent is fired. However, if there is no corresponding active invoke, a ComponentRejectedEvent with a reject type of RejectType.LOCAL is fired instead. In this case, if the service wishes to continue the dialogue, it should ensure that a dialogue primitive is sent, so that the queued reject component is sent on the network.
Modifier and Type | Class and Description |
---|---|
static class |
ComponentRejectedEvent.RejectType
Enum used to distinguish local and remote rejects
|
Modifier and Type | Field and Description |
---|---|
static EventTypeID |
ID
Common event type used when firing ComponentRejectedEvent instances to the SLEE.
|
Constructor and Description |
---|
ComponentRejectedEvent(Dialog dialog,
int invokeId,
ComponentRejectedEvent.RejectType rejectType,
RejectProblem rejectProblem)
Construct a new event for a component rejection.
|
Modifier and Type | Method and Description |
---|---|
int |
getInvokeId()
Get the invoke ID of the rejection
|
RejectProblem |
getRejectProblem()
Get the TCAP problem code of this event.
|
ComponentRejectedEvent.RejectType |
getRejectType()
Get the rejection type (local or remote) of this event.
|
String |
toString() |
public static final EventTypeID ID
public ComponentRejectedEvent(Dialog dialog, int invokeId, ComponentRejectedEvent.RejectType rejectType, RejectProblem rejectProblem)
dialog
- the dialog this event will be fired oninvokeId
- the invoke ID contained in the rejectionrejectType
- the (non-null) rejection type of this component, indicating a local or remote rejectrejectProblem
- the TCAP problem code of the rejectionpublic int getInvokeId()
public ComponentRejectedEvent.RejectType getRejectType()
public RejectProblem getRejectProblem()