Package com.bea.wcp.diameter.relay
Class RelayApplication
java.lang.Object
com.bea.wcp.diameter.Application
com.bea.wcp.diameter.relay.RelayApplication
This application implements Diameter Relay functionality.
- Author:
- Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetId()Returns the ApplicationId for the application.protected voidCalled by the container when a new Answer has been received for this application.protected voidrcvRequest(Request req) Called by the container when a new Request has been received for this application.Methods inherited from class com.bea.wcp.diameter.Application
createRequest, createSession, createSession, createSession, createSessionId, getDestinationHost, getDestinationRealm, getName, getNode, getOriginHost, getOriginRealm, getParameter, getParameter, init, log, log, rcvMessage, setDestinationHost, setDestinationRealm
-
Constructor Details
-
RelayApplication
public RelayApplication()
-
-
Method Details
-
getId
Description copied from class:ApplicationReturns the ApplicationId for the application.- Specified by:
getIdin classApplication- Returns:
- the application's ApplicationId
-
rcvRequest
Description copied from class:ApplicationCalled by the container when a new Request has been received for this application. The default behavior is to respond with the Answer UNKNOWN_SESSION_ID for requests with a Session-Id AVP or otherwise the Answer UNABLE_TO_COMPLY. Requests are first delivered to a matching Session object if found, so overriding this method is only necessary if the application does not use sessions or is a server application which will be creating new Session objects for received requests.- Overrides:
rcvRequestin classApplication- Parameters:
req- the Request that was received- Throws:
DiameterException- if an error occurred while processing the messageIOException- if an I/O error occurred
-
rcvAnswer
Description copied from class:ApplicationCalled by the container when a new Answer has been received for this application. The default behavior is to ignore the answer. Overriding this method is only necessary if the application is sending requests with no associated session, as otherwise the answer will be delivered to the associated Session object directly.- Overrides:
rcvAnswerin classApplication- Parameters:
ans- the Answer that was received- Throws:
DiameterException- if an error occurred while processing the answerIOException- if an I/O error occurred
-