Oracle Server E10293-02 ユーザーズマニュアル

ページ / 108
Diameter Java Base Protocol API
A-4
Oracle Communication and Mobility Server Developer’s Guide
The DiameterMessage interface represents a Diameter Message as defined in [RFC 
3588]. The Diameter messages are composed from AVPs added by calling add() 
method. 
Diameter Session
The DiameterSession interface represents a Diameter session as per [RFC 3588]. A 
Diameter application calls the createClientDiameterSession method from the 
DiameterProvider interface if it needs to send a request for a new Diameter session. 
Then it can send the request by calling sendMessage method. Also, an incoming 
request can be handled by calling createServerDiameterSession to create a new server 
session, then using sendMessage to send the response.
Diameter Event
The DiameterEvent interface is the base class for all Diameter events. These events 
specialize this interface:
DiameterMessageEvent: This event is generated when an incoming message is 
available
DiameterRealmStateChangeEvent: This event notifies the application of the 
reachability or unreachability of a remote realm, as a result of peers coming up or 
down
DiameterSessionEvent: represents all the events which are related to a Diameter 
session such as received messages, session timeouts, and session errors.
The Diameter stack delivers information to the user application by creating instances 
of the Diameter Event class and passing these instances to the 
DiameterListener.processEvent method.
Diameter Exception
The DiameterException interface represents the base class for all the Diameter 
exceptions. These exceptions specialize this interface:
DiameterInvalidArgumentException: This exception is thrown or when a method 
receives an invalid parameter value
DiameterInvalidMessageException: This exception is thrown when a Diameter 
Message can’t be encoded
DiameterMessageException: This exception is thrown when a failure occurs 
during a sending message
DiameterTransportFailureException: This exception is thrown when a 
synchronous transport failure occurs during an API action
DiameterUnsupportedFeatureException: This exception is thrown by an 
implementation when an operation is invoked that is not supported by this 
implementation