Class Simulator.ServerSession

java.lang.Object
com.bea.wcp.diameter.Session
com.bea.wcp.diameter.util.Simulator.ServerSession
All Implemented Interfaces:
Externalizable, Serializable
Enclosing class:
Simulator

public static class Simulator.ServerSession extends Session
See Also:
  • Constructor Details

    • ServerSession

      public ServerSession()
    • ServerSession

      public ServerSession(Simulator app, String id)
    • ServerSession

      public ServerSession(Simulator app)
  • Method Details

    • rcvMessage

      public void rcvMessage(Message msg) throws DiameterException, IOException
      Description copied from class: Session
      Called when a new Request or Answer has been received for this session. The default behavior is to call rcvRequest() for a request or rcvAnswer() for an answer message. Session implementations should not override this method directly but override rcvRequest() or rcvAnswer() instead.
      Overrides:
      rcvMessage in class Session
      Parameters:
      msg - the message that has been received
      Throws:
      IOException - if an error occured while processing the message
      DiameterException
    • sndMessage

      public void sndMessage(Message msg) throws IOException
      Description copied from class: Session
      Called by the container when a message is about to be sent but before it has been committed. This gives the Session a chance to update any state that may change when a message has been sent out.
      Overrides:
      sndMessage in class Session
      Parameters:
      msg - the message being sent
      Throws:
      IOException - if an I/O error occurred while sending the message