Oracle Corp.

Oracle WebLogic Communications Server 10.1 API Reference


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

java.lang.Object
  extended bycom.bea.wcp.diameter.Session
      extended bycom.bea.wcp.diameter.util.Simulator.ServerSession
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
com.bea.wcp.diameter.util.Simulator

public static class Simulator.ServerSession
extends Session

See Also:
Serialized Form
Copyright © 2008 Oracle Corp. All Rights Reserved.

Constructor Summary
Simulator.ServerSession(com.bea.wcp.diameter.util.Simulator app)
           
Simulator.ServerSession(com.bea.wcp.diameter.util.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
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(com.bea.wcp.diameter.util.Simulator app)

Simulator.ServerSession

public Simulator.ServerSession(com.bea.wcp.diameter.util.Simulator app,
                               java.lang.String id)
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

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