org.mobicents.slee.resource.jcc.local
Class JccCallLocal

java.lang.Object
  extended by org.mobicents.slee.resource.jcc.local.JccCallLocal
All Implemented Interfaces:
javax.csapi.cc.jcc.JccCall

public class JccCallLocal
extends java.lang.Object
implements javax.csapi.cc.jcc.JccCall

Wraps JccCall to disallow addConnectionListener, addCallListener methods. When a disallowed method is invoked, the resource adaptor entity throws a SecurityException.

Author:
Oleg Kulikov, Pavel Mitrenko

Field Summary
 
Fields inherited from interface javax.csapi.cc.jcc.JccCall
ACTIVE, IDLE, INVALID
 
Constructor Summary
JccCallLocal(javax.csapi.cc.jcc.JccCall call, JccProviderLocal provider)
          Creates a new instance of JccCallLocal
 
Method Summary
 void addCallListener(javax.csapi.cc.jcc.JccCallListener listener)
          Only the resource adaptor can add itself as a listener.
 void addConnectionListener(javax.csapi.cc.jcc.JccConnectionListener listener, javax.csapi.cc.jcc.EventFilter eventFilter)
          Only the resource adaptor can add itself as a listener.
 javax.csapi.cc.jcc.JccConnection[] connect(javax.csapi.cc.jcc.JccAddress origAddress, java.lang.String dialedDigits)
          (Non-Javadoc)
 javax.csapi.cc.jcc.JccConnection createConnection(java.lang.String targetAddress, java.lang.String originatingAddress, java.lang.String originalCalledAddress, java.lang.String redirectingAddress)
          (Non-Javadoc)
 boolean equals(java.lang.Object other)
           
 javax.csapi.cc.jcc.JccConnection[] getConnections()
          (Non-Javadoc)
 javax.csapi.cc.jcc.JccProvider getProvider()
          (Non-Javadoc)
 int getState()
          (Non-Javadoc)
 void release(int causeCode)
          (Non-Javadoc)
 void removeCallListener(javax.csapi.cc.jcc.JccCallListener listener)
          Only the resource adaptor can remove a listener.
 void removeConnectionListener(javax.csapi.cc.jcc.JccConnectionListener listener)
          Only the resource adaptor can remove a listener.
 javax.csapi.cc.jcc.JccConnection routeCall(java.lang.String targetAddress, java.lang.String originatingAddress, java.lang.String originalDestinationAddress, java.lang.String redirectingAddress)
          (Non-Javadoc)
 void superviseCall(javax.csapi.cc.jcc.JccCallListener listener, double time, int treatment)
          (Non-Javadoc)
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JccCallLocal

public JccCallLocal(javax.csapi.cc.jcc.JccCall call,
                    JccProviderLocal provider)
Creates a new instance of JccCallLocal

Method Detail

addCallListener

public void addCallListener(javax.csapi.cc.jcc.JccCallListener listener)
                     throws javax.csapi.cc.jcc.ResourceUnavailableException,
                            javax.csapi.cc.jcc.MethodNotSupportedException
Only the resource adaptor can add itself as a listener. The resource adaptor should not allow any other objects to add themselves as listeners.

Specified by:
addCallListener in interface javax.csapi.cc.jcc.JccCall
Throws:
javax.csapi.cc.jcc.ResourceUnavailableException
javax.csapi.cc.jcc.MethodNotSupportedException

addConnectionListener

public void addConnectionListener(javax.csapi.cc.jcc.JccConnectionListener listener,
                                  javax.csapi.cc.jcc.EventFilter eventFilter)
                           throws javax.csapi.cc.jcc.ResourceUnavailableException,
                                  javax.csapi.cc.jcc.MethodNotSupportedException
Only the resource adaptor can add itself as a listener. The resource adaptor should not allow any other objects to add themselves as listeners.

Specified by:
addConnectionListener in interface javax.csapi.cc.jcc.JccCall
Throws:
javax.csapi.cc.jcc.ResourceUnavailableException
javax.csapi.cc.jcc.MethodNotSupportedException

connect

public javax.csapi.cc.jcc.JccConnection[] connect(javax.csapi.cc.jcc.JccAddress origAddress,
                                                  java.lang.String dialedDigits)
                                           throws javax.csapi.cc.jcc.ResourceUnavailableException,
                                                  javax.csapi.cc.jcc.PrivilegeViolationException,
                                                  javax.csapi.cc.jcc.InvalidPartyException,
                                                  javax.csapi.cc.jcc.InvalidStateException,
                                                  javax.csapi.cc.jcc.MethodNotSupportedException
(Non-Javadoc)

Specified by:
connect in interface javax.csapi.cc.jcc.JccCall
Throws:
javax.csapi.cc.jcc.ResourceUnavailableException
javax.csapi.cc.jcc.PrivilegeViolationException
javax.csapi.cc.jcc.InvalidPartyException
javax.csapi.cc.jcc.InvalidStateException
javax.csapi.cc.jcc.MethodNotSupportedException
See Also:
javax.csapi.cc.jcc.JccCall#connect(String, String).

createConnection

public javax.csapi.cc.jcc.JccConnection createConnection(java.lang.String targetAddress,
                                                         java.lang.String originatingAddress,
                                                         java.lang.String originalCalledAddress,
                                                         java.lang.String redirectingAddress)
                                                  throws javax.csapi.cc.jcc.InvalidStateException,
                                                         javax.csapi.cc.jcc.ResourceUnavailableException,
                                                         javax.csapi.cc.jcc.PrivilegeViolationException,
                                                         javax.csapi.cc.jcc.MethodNotSupportedException,
                                                         javax.csapi.cc.jcc.InvalidArgumentException,
                                                         javax.csapi.cc.jcc.InvalidPartyException
(Non-Javadoc)

Specified by:
createConnection in interface javax.csapi.cc.jcc.JccCall
Throws:
javax.csapi.cc.jcc.InvalidStateException
javax.csapi.cc.jcc.ResourceUnavailableException
javax.csapi.cc.jcc.PrivilegeViolationException
javax.csapi.cc.jcc.MethodNotSupportedException
javax.csapi.cc.jcc.InvalidArgumentException
javax.csapi.cc.jcc.InvalidPartyException
See Also:
JccCall.createConnection(String, String, String, String).

getConnections

public javax.csapi.cc.jcc.JccConnection[] getConnections()
(Non-Javadoc)

Specified by:
getConnections in interface javax.csapi.cc.jcc.JccCall
See Also:
JccCall.getConnections().

getProvider

public javax.csapi.cc.jcc.JccProvider getProvider()
(Non-Javadoc)

Specified by:
getProvider in interface javax.csapi.cc.jcc.JccCall
See Also:
JccCall.getProvider().

getState

public int getState()
(Non-Javadoc)

Specified by:
getState in interface javax.csapi.cc.jcc.JccCall
See Also:
JccCall.getState().

release

public void release(int causeCode)
             throws javax.csapi.cc.jcc.PrivilegeViolationException,
                    javax.csapi.cc.jcc.ResourceUnavailableException,
                    javax.csapi.cc.jcc.InvalidStateException,
                    javax.csapi.cc.jcc.InvalidArgumentException
(Non-Javadoc)

Specified by:
release in interface javax.csapi.cc.jcc.JccCall
Throws:
javax.csapi.cc.jcc.PrivilegeViolationException
javax.csapi.cc.jcc.ResourceUnavailableException
javax.csapi.cc.jcc.InvalidStateException
javax.csapi.cc.jcc.InvalidArgumentException
See Also:
JccCall.release(int).

removeCallListener

public void removeCallListener(javax.csapi.cc.jcc.JccCallListener listener)
Only the resource adaptor can remove a listener.

Specified by:
removeCallListener in interface javax.csapi.cc.jcc.JccCall

removeConnectionListener

public void removeConnectionListener(javax.csapi.cc.jcc.JccConnectionListener listener)
Only the resource adaptor can remove a listener.

Specified by:
removeConnectionListener in interface javax.csapi.cc.jcc.JccCall

routeCall

public javax.csapi.cc.jcc.JccConnection routeCall(java.lang.String targetAddress,
                                                  java.lang.String originatingAddress,
                                                  java.lang.String originalDestinationAddress,
                                                  java.lang.String redirectingAddress)
                                           throws javax.csapi.cc.jcc.InvalidStateException,
                                                  javax.csapi.cc.jcc.ResourceUnavailableException,
                                                  javax.csapi.cc.jcc.PrivilegeViolationException,
                                                  javax.csapi.cc.jcc.MethodNotSupportedException,
                                                  javax.csapi.cc.jcc.InvalidPartyException,
                                                  javax.csapi.cc.jcc.InvalidArgumentException
(Non-Javadoc)

Specified by:
routeCall in interface javax.csapi.cc.jcc.JccCall
Throws:
javax.csapi.cc.jcc.InvalidStateException
javax.csapi.cc.jcc.ResourceUnavailableException
javax.csapi.cc.jcc.PrivilegeViolationException
javax.csapi.cc.jcc.MethodNotSupportedException
javax.csapi.cc.jcc.InvalidPartyException
javax.csapi.cc.jcc.InvalidArgumentException
See Also:
JccCall.routeCall(String, String, String, String).

superviseCall

public void superviseCall(javax.csapi.cc.jcc.JccCallListener listener,
                          double time,
                          int treatment)
                   throws javax.csapi.cc.jcc.MethodNotSupportedException
(Non-Javadoc)

Specified by:
superviseCall in interface javax.csapi.cc.jcc.JccCall
Throws:
javax.csapi.cc.jcc.MethodNotSupportedException
See Also:
JccCall.superviseCall(JccCallListener, double, int).

equals

public boolean equals(java.lang.Object other)
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2009. All Rights Reserved.