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

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

public class JccProviderLocal
extends java.lang.Object
implements javax.csapi.cc.jcc.JccProvider

Wraps JccProvider to disallow addConnectionListener, addCallListener and addProviderListener 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.JccProvider
IN_SERVICE, OUT_OF_SERVICE, SHUTDOWN
 
Constructor Summary
JccProviderLocal()
           
 
Method Summary
 void addCallListener(javax.csapi.cc.jcc.JccCallListener listener)
          Only the resource adaptor can add itself as a listener.
 void addCallLoadControlListener(javax.csapi.cc.jcc.CallLoadControlListener listener)
           
 void addConnectionListener(javax.csapi.cc.jcc.JccConnectionListener listener, javax.csapi.cc.jcc.EventFilter filter)
          Only the resource adaptor can add itself as a listener.
 void addProviderListener(javax.csapi.cc.jcc.JccProviderListener listener)
          Only the resource adaptor can add itself as a listener.
 javax.csapi.cc.jcc.JccCall createCall()
          (Non-Javadoc)
 javax.csapi.cc.jcc.EventFilter createEventFilterAddressRange(java.lang.String lowAddress, java.lang.String highAddress, int matchDisposition, int nomatchDisposition)
          (Non-Javadoc)
 javax.csapi.cc.jcc.EventFilter createEventFilterAddressRegEx(java.lang.String addressRegEx, int matchDisposition, int nomatchDisposition)
          (Non-Javadoc)
 javax.csapi.cc.jcc.EventFilter createEventFilterAnd(javax.csapi.cc.jcc.EventFilter[] filters, int nomatchDisposition)
          (Non-Javadoc)
 javax.csapi.cc.jcc.EventFilter createEventFilterCauseCode(int param, int param1, int param2)
          (Non-Javadoc)
 javax.csapi.cc.jcc.EventFilter createEventFilterDestAddressRange(java.lang.String lowAddress, java.lang.String highAddress, int matchDisposition, int nomatchDisposition)
          (Non-Javadoc)
 javax.csapi.cc.jcc.EventFilter createEventFilterDestAddressRegEx(java.lang.String addressRegEx, int matchDisposition, int nomatchDisposition)
          (Non-Javadoc)
 javax.csapi.cc.jcc.EventFilter createEventFilterEventSet(int[] blockEvents, int[] notifyEvents)
          (Non-Javadoc)
 javax.csapi.cc.jcc.EventFilter createEventFilterMidCallEvent(int midCallType, java.lang.String midCallValue, int matchDisposition, int nomatchDisposition)
          (Non-Javadoc)
 javax.csapi.cc.jcc.EventFilter createEventFilterMinimunCollectedAddressLength(int minLength, int matchDisposition, int nomatchDisposition)
          (Non-Javadoc)
 javax.csapi.cc.jcc.EventFilter createEventFilterOr(javax.csapi.cc.jcc.EventFilter[] filters, int nomatchDisposition)
          (Non-Javadoc)
 javax.csapi.cc.jcc.EventFilter createEventFilterOrigAddressRange(java.lang.String lowAddress, java.lang.String highAddress, int matchDisposition, int nomatchDisposition)
          (Non-Javadoc)
 javax.csapi.cc.jcc.EventFilter createEventFilterOrigAddressRegEx(java.lang.String addressRegEx, int matchDisposition, int nomatchDisposition)
          (Non-Javadoc)
 javax.csapi.cc.jcc.JccAddress getAddress(java.lang.String str)
          (Non-Javadoc)
 java.lang.String getName()
          (Non-Javadoc)
 javax.csapi.cc.jcc.JccProvider getProvider()
           
 int getState()
          (Non-Javadoc)
 void removeCallListener(javax.csapi.cc.jcc.JccCallListener listener)
          Only the resource adaptor can remove a listener.
 void removeCallLoadControlListener(javax.csapi.cc.jcc.CallLoadControlListener 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.
 void removeProviderListener(javax.csapi.cc.jcc.JccProviderListener listener)
          Only the resource adaptor can remove a listener.
 void setCallLoadControl(javax.csapi.cc.jcc.JccAddress[] jccAddress, double param, double[] values, int[] values3)
          (Non-Javadoc)
 void setProvider(javax.csapi.cc.jcc.JccProvider provider)
           
 void shutdown()
          (Non-Javadoc)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JccProviderLocal

public JccProviderLocal()
Method Detail

setProvider

public void setProvider(javax.csapi.cc.jcc.JccProvider provider)

getProvider

public javax.csapi.cc.jcc.JccProvider getProvider()

addCallListener

public void addCallListener(javax.csapi.cc.jcc.JccCallListener listener)
                     throws javax.csapi.cc.jcc.MethodNotSupportedException,
                            javax.csapi.cc.jcc.ResourceUnavailableException
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.JccProvider
Throws:
javax.csapi.cc.jcc.MethodNotSupportedException
javax.csapi.cc.jcc.ResourceUnavailableException

addCallLoadControlListener

public void addCallLoadControlListener(javax.csapi.cc.jcc.CallLoadControlListener listener)
                                throws javax.csapi.cc.jcc.MethodNotSupportedException,
                                       javax.csapi.cc.jcc.ResourceUnavailableException
Specified by:
addCallLoadControlListener in interface javax.csapi.cc.jcc.JccProvider
Throws:
javax.csapi.cc.jcc.MethodNotSupportedException
javax.csapi.cc.jcc.ResourceUnavailableException

addConnectionListener

public void addConnectionListener(javax.csapi.cc.jcc.JccConnectionListener listener,
                                  javax.csapi.cc.jcc.EventFilter filter)
                           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.JccProvider
Throws:
javax.csapi.cc.jcc.ResourceUnavailableException
javax.csapi.cc.jcc.MethodNotSupportedException

addProviderListener

public void addProviderListener(javax.csapi.cc.jcc.JccProviderListener 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:
addProviderListener in interface javax.csapi.cc.jcc.JccProvider
Throws:
javax.csapi.cc.jcc.ResourceUnavailableException
javax.csapi.cc.jcc.MethodNotSupportedException

createCall

public javax.csapi.cc.jcc.JccCall createCall()
                                      throws javax.csapi.cc.jcc.InvalidStateException,
                                             javax.csapi.cc.jcc.ResourceUnavailableException,
                                             javax.csapi.cc.jcc.PrivilegeViolationException,
                                             javax.csapi.cc.jcc.MethodNotSupportedException
(Non-Javadoc)

Specified by:
createCall in interface javax.csapi.cc.jcc.JccProvider
Throws:
javax.csapi.cc.jcc.InvalidStateException
javax.csapi.cc.jcc.ResourceUnavailableException
javax.csapi.cc.jcc.PrivilegeViolationException
javax.csapi.cc.jcc.MethodNotSupportedException
See Also:
JccProvider.createCall().

createEventFilterAddressRange

public javax.csapi.cc.jcc.EventFilter createEventFilterAddressRange(java.lang.String lowAddress,
                                                                    java.lang.String highAddress,
                                                                    int matchDisposition,
                                                                    int nomatchDisposition)
                                                             throws javax.csapi.cc.jcc.ResourceUnavailableException,
                                                                    javax.csapi.cc.jcc.InvalidArgumentException
(Non-Javadoc)

Specified by:
createEventFilterAddressRange in interface javax.csapi.cc.jcc.JccProvider
Throws:
javax.csapi.cc.jcc.ResourceUnavailableException
javax.csapi.cc.jcc.InvalidArgumentException
See Also:
JccProvider.createEventFilterAddressRange(String, String, int, int).

createEventFilterAddressRegEx

public javax.csapi.cc.jcc.EventFilter createEventFilterAddressRegEx(java.lang.String addressRegEx,
                                                                    int matchDisposition,
                                                                    int nomatchDisposition)
                                                             throws javax.csapi.cc.jcc.ResourceUnavailableException,
                                                                    javax.csapi.cc.jcc.InvalidArgumentException
(Non-Javadoc)

Specified by:
createEventFilterAddressRegEx in interface javax.csapi.cc.jcc.JccProvider
Throws:
javax.csapi.cc.jcc.ResourceUnavailableException
javax.csapi.cc.jcc.InvalidArgumentException
See Also:
javax.csapi.cc.jcc.JccProvider#createEventFilterAddressRangeEx(String, int, int).

createEventFilterAnd

public javax.csapi.cc.jcc.EventFilter createEventFilterAnd(javax.csapi.cc.jcc.EventFilter[] filters,
                                                           int nomatchDisposition)
                                                    throws javax.csapi.cc.jcc.ResourceUnavailableException,
                                                           javax.csapi.cc.jcc.InvalidArgumentException
(Non-Javadoc)

Specified by:
createEventFilterAnd in interface javax.csapi.cc.jcc.JccProvider
Throws:
javax.csapi.cc.jcc.ResourceUnavailableException
javax.csapi.cc.jcc.InvalidArgumentException
See Also:
JccProvider.createEventFilterAnd(EventFilter[], int).

createEventFilterCauseCode

public javax.csapi.cc.jcc.EventFilter createEventFilterCauseCode(int param,
                                                                 int param1,
                                                                 int param2)
                                                          throws javax.csapi.cc.jcc.ResourceUnavailableException,
                                                                 javax.csapi.cc.jcc.InvalidArgumentException
(Non-Javadoc)

Specified by:
createEventFilterCauseCode in interface javax.csapi.cc.jcc.JccProvider
Throws:
javax.csapi.cc.jcc.ResourceUnavailableException
javax.csapi.cc.jcc.InvalidArgumentException
See Also:
JccProvider.createEventFilterCauseCode(int, int, int).

createEventFilterDestAddressRange

public javax.csapi.cc.jcc.EventFilter createEventFilterDestAddressRange(java.lang.String lowAddress,
                                                                        java.lang.String highAddress,
                                                                        int matchDisposition,
                                                                        int nomatchDisposition)
                                                                 throws javax.csapi.cc.jcc.ResourceUnavailableException,
                                                                        javax.csapi.cc.jcc.InvalidArgumentException
(Non-Javadoc)

Specified by:
createEventFilterDestAddressRange in interface javax.csapi.cc.jcc.JccProvider
Throws:
javax.csapi.cc.jcc.ResourceUnavailableException
javax.csapi.cc.jcc.InvalidArgumentException
See Also:
JccProvider.createEventFilterDestAddressRange(String, String, int, int).

createEventFilterDestAddressRegEx

public javax.csapi.cc.jcc.EventFilter createEventFilterDestAddressRegEx(java.lang.String addressRegEx,
                                                                        int matchDisposition,
                                                                        int nomatchDisposition)
                                                                 throws javax.csapi.cc.jcc.ResourceUnavailableException,
                                                                        javax.csapi.cc.jcc.InvalidArgumentException
(Non-Javadoc)

Specified by:
createEventFilterDestAddressRegEx in interface javax.csapi.cc.jcc.JccProvider
Throws:
javax.csapi.cc.jcc.ResourceUnavailableException
javax.csapi.cc.jcc.InvalidArgumentException
See Also:
javax.csapi.cc.jcc.JccProvider#createEventFilterDestAddressRangeEx(String, int, int).

createEventFilterEventSet

public javax.csapi.cc.jcc.EventFilter createEventFilterEventSet(int[] blockEvents,
                                                                int[] notifyEvents)
                                                         throws javax.csapi.cc.jcc.ResourceUnavailableException,
                                                                javax.csapi.cc.jcc.InvalidArgumentException
(Non-Javadoc)

Specified by:
createEventFilterEventSet in interface javax.csapi.cc.jcc.JccProvider
Throws:
javax.csapi.cc.jcc.ResourceUnavailableException
javax.csapi.cc.jcc.InvalidArgumentException
See Also:
JccProvider.createEventFilterEventSet(int[], int[]).

createEventFilterMidCallEvent

public javax.csapi.cc.jcc.EventFilter createEventFilterMidCallEvent(int midCallType,
                                                                    java.lang.String midCallValue,
                                                                    int matchDisposition,
                                                                    int nomatchDisposition)
                                                             throws javax.csapi.cc.jcc.ResourceUnavailableException,
                                                                    javax.csapi.cc.jcc.InvalidArgumentException
(Non-Javadoc)

Specified by:
createEventFilterMidCallEvent in interface javax.csapi.cc.jcc.JccProvider
Throws:
javax.csapi.cc.jcc.ResourceUnavailableException
javax.csapi.cc.jcc.InvalidArgumentException
See Also:
JccProvider.createEventFilterMidCallEvent(int, String, int, int).

createEventFilterMinimunCollectedAddressLength

public javax.csapi.cc.jcc.EventFilter createEventFilterMinimunCollectedAddressLength(int minLength,
                                                                                     int matchDisposition,
                                                                                     int nomatchDisposition)
                                                                              throws javax.csapi.cc.jcc.ResourceUnavailableException,
                                                                                     javax.csapi.cc.jcc.InvalidArgumentException
(Non-Javadoc)

Specified by:
createEventFilterMinimunCollectedAddressLength in interface javax.csapi.cc.jcc.JccProvider
Throws:
javax.csapi.cc.jcc.ResourceUnavailableException
javax.csapi.cc.jcc.InvalidArgumentException
See Also:
JccProvider.createEventFilterMinimunCollectedAddressLength(int, int, int).

createEventFilterOr

public javax.csapi.cc.jcc.EventFilter createEventFilterOr(javax.csapi.cc.jcc.EventFilter[] filters,
                                                          int nomatchDisposition)
                                                   throws javax.csapi.cc.jcc.ResourceUnavailableException,
                                                          javax.csapi.cc.jcc.InvalidArgumentException
(Non-Javadoc)

Specified by:
createEventFilterOr in interface javax.csapi.cc.jcc.JccProvider
Throws:
javax.csapi.cc.jcc.ResourceUnavailableException
javax.csapi.cc.jcc.InvalidArgumentException
See Also:
JccProvider.createEventFilterOr(EventFilter[], int).

createEventFilterOrigAddressRange

public javax.csapi.cc.jcc.EventFilter createEventFilterOrigAddressRange(java.lang.String lowAddress,
                                                                        java.lang.String highAddress,
                                                                        int matchDisposition,
                                                                        int nomatchDisposition)
                                                                 throws javax.csapi.cc.jcc.ResourceUnavailableException,
                                                                        javax.csapi.cc.jcc.InvalidArgumentException
(Non-Javadoc)

Specified by:
createEventFilterOrigAddressRange in interface javax.csapi.cc.jcc.JccProvider
Throws:
javax.csapi.cc.jcc.ResourceUnavailableException
javax.csapi.cc.jcc.InvalidArgumentException
See Also:
.

createEventFilterOrigAddressRegEx

public javax.csapi.cc.jcc.EventFilter createEventFilterOrigAddressRegEx(java.lang.String addressRegEx,
                                                                        int matchDisposition,
                                                                        int nomatchDisposition)
                                                                 throws javax.csapi.cc.jcc.ResourceUnavailableException,
                                                                        javax.csapi.cc.jcc.InvalidArgumentException
(Non-Javadoc)

Specified by:
createEventFilterOrigAddressRegEx in interface javax.csapi.cc.jcc.JccProvider
Throws:
javax.csapi.cc.jcc.ResourceUnavailableException
javax.csapi.cc.jcc.InvalidArgumentException
See Also:
.

getAddress

public javax.csapi.cc.jcc.JccAddress getAddress(java.lang.String str)
                                         throws javax.csapi.cc.jcc.InvalidPartyException
(Non-Javadoc)

Specified by:
getAddress in interface javax.csapi.cc.jcc.JccProvider
Throws:
javax.csapi.cc.jcc.InvalidPartyException
See Also:
JccProvider.getAddress(String)

getName

public java.lang.String getName()
(Non-Javadoc)

Specified by:
getName in interface javax.csapi.cc.jcc.JccProvider
See Also:
JccProvider.getName().

getState

public int getState()
(Non-Javadoc)

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

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.JccProvider

removeCallLoadControlListener

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

Specified by:
removeCallLoadControlListener in interface javax.csapi.cc.jcc.JccProvider

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.JccProvider

removeProviderListener

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

Specified by:
removeProviderListener in interface javax.csapi.cc.jcc.JccProvider

setCallLoadControl

public void setCallLoadControl(javax.csapi.cc.jcc.JccAddress[] jccAddress,
                               double param,
                               double[] values,
                               int[] values3)
                        throws javax.csapi.cc.jcc.MethodNotSupportedException
(Non-Javadoc)

Specified by:
setCallLoadControl in interface javax.csapi.cc.jcc.JccProvider
Throws:
javax.csapi.cc.jcc.MethodNotSupportedException
See Also:
javax.csapi.cc.jcc.JccProvider#setCallLoadControl(JccAddress[], souble, double[] int[]).

shutdown

public void shutdown()
(Non-Javadoc)

Specified by:
shutdown in interface javax.csapi.cc.jcc.JccProvider
See Also:
JccProvider.shutdown().


Copyright © 2011. All Rights Reserved.