BEA Systems, Inc.

BEA WebLogic SIP Server 3.0 API Reference


com.bea.wcp.diameter.util
Class Simulator

java.lang.Object
  extended bycom.bea.wcp.diameter.Application
      extended bycom.bea.wcp.diameter.util.Simulator

public abstract class Simulator
extends Application

Base class for simulator applications.

Copyright © 2006 BEA Systems, Inc. All Rights Reserved.

Nested Class Summary
static class Simulator.Session
           
 
Constructor Summary
Simulator()
           
 
Method Summary
 void addHistory(Message msg)
           
 void clearHistory()
           
protected abstract  Simulator.Session createSession(java.lang.String id)
           
 java.util.List getHistory()
           
 boolean historyEnabled()
           
protected  void init()
          Called by the container to initialize the application.
protected  void rcvRequest(Request req)
          Called by the container when a new Request has been received for this application.
 void setHistoryEnabled(boolean enabled)
           
 
Methods inherited from class com.bea.wcp.diameter.Application
createRequest, createSessionId, getDestinationHost, getDestinationRealm, getId, getName, getNode, getOriginHost, getOriginRealm, getParameter, getParameter, log, log, rcvAnswer, rcvMessage, setDestinationHost, setDestinationRealm
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Simulator

public Simulator()
Method Detail

addHistory

public void addHistory(Message msg)

clearHistory

public void clearHistory()

createSession

protected abstract Simulator.Session createSession(java.lang.String id)

getHistory

public java.util.List getHistory()

historyEnabled

public boolean historyEnabled()

init

protected void init()
Description copied from class: Application
Called by the container to initialize the application. Applications override this method to perform application specific initialization.

Overrides:
init in class Application

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:
java.io.IOException - if an I/O error occurred
DiameterException - if an error occurred while processing the message

setHistoryEnabled

public void setHistoryEnabled(boolean enabled)

Documentation is available at
http://download.oracle.com/docs/cd/E13209_01/wlcp/wlss30/
Copyright 2006 BEA Systems Inc.