Skip navigation links

Oracle Communications Converged Application Server Java API Reference
5.0

E18767-01


com.bea.wcp.diameter.util
Class Simulator.ServerSession

java.lang.Object
  extended by com.bea.wcp.diameter.Session
      extended by com.bea.wcp.diameter.util.Simulator.ServerSession

All Implemented Interfaces:
java.io.Serializable
Enclosing class:
Simulator

public static class Simulator.ServerSession
extends Session
See Also:
Serialized Form

Constructor Summary
Simulator.ServerSession(Simulator app)
           
Simulator.ServerSession(Simulator app, java.lang.String id)
           

 

Method Summary
 void rcvMessage(Message msg)
          Called when a new Request or Answer has been received http://news.com.com/2061-10802_3-6160230.html?tag=nefd.aoffor this session.
 void sndMessage(Message msg)
          Called by the container when a message is about to be sent but before it has been committed.

 

Methods inherited from class com.bea.wcp.diameter.Session
appendXml, createRequest, getApplication, getAttribute, getId, getListener, isTerminated, notifyListener, rcvAnswer, rcvRequest, removeAttribute, setAttribute, setListener, terminate, toString

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

 

Constructor Detail

Simulator.ServerSession

public Simulator.ServerSession(Simulator app,
                               java.lang.String id)

Simulator.ServerSession

public Simulator.ServerSession(Simulator app)

Method Detail

rcvMessage

public void rcvMessage(Message msg)
                throws DiameterException,
                       java.io.IOException
Description copied from class: Session
Called when a new Request or Answer has been received http://news.com.com/2061-10802_3-6160230.html?tag=nefd.aoffor 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:
java.io.IOException - if an error occured while processing the message
DiameterException

sndMessage

public void sndMessage(Message msg)
                throws java.io.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:
java.io.IOException - if an I/O error occurred while sending the message

Skip navigation links

Oracle Communications Converged Application Server Java API Reference
5.0

E18767-01


Copyright © 2005, 2010, Oracle and/or its affiliates. All rights reserved.