Oracle Corp.

Oracle WebLogic Communications Server 10.1 API Reference


com.bea.wcp.diameter.relay
Class RelayApplication

java.lang.Object
  extended bycom.bea.wcp.diameter.Application
      extended bycom.bea.wcp.diameter.relay.RelayApplication

public class RelayApplication
extends Application

(c) BEA Systems 2006 This application implements Diameter Relay functionality

Copyright © 2008 Oracle Corp. All Rights Reserved.

Constructor Summary
RelayApplication()
           
 
Method Summary
 ApplicationId getId()
          Returns the ApplicationId for the application.
protected  void rcvAnswer(Answer ans)
          Called by the container when a new Answer has been received for this application.
protected  void rcvRequest(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, createSessionId, getDestinationHost, getDestinationRealm, getName, getNode, getOriginHost, getOriginRealm, getParameter, getParameter, init, log, log, rcvMessage, setDestinationHost, setDestinationRealm
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RelayApplication

public RelayApplication()
Method Detail

getId

public ApplicationId getId()
Description copied from class: Application
Returns the ApplicationId for the application.

Specified by:
getId in class Application
Returns:
the application's ApplicationId

rcvAnswer

protected void rcvAnswer(Answer ans)
                  throws DiameterException,
                         java.io.IOException
Description copied from class: Application
Called 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:
rcvAnswer in class Application
Parameters:
ans - the Answer that was received
Throws:
java.io.IOException - if an I/O error occurred
DiameterException - if an error occurred while processing the answer

rcvRequest

protected void rcvRequest(Request req)
                   throws DiameterException,
                          java.io.IOException
Description copied from class: Application
Called 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:
rcvRequest in class Application
Parameters:
req - the Request that was received
Throws:
DiameterException - if an error occurred while processing the message
java.io.IOException - if an I/O error occurred

Documentation is available at
http://e-docs.bea.com/wlcp/wlss40/
Copyright 2008 Oracle Corp.