/**
  * Returns the operation set corresponding to the specified class or null if this operation set is
  * not supported by the provider implementation.
  *
  * @param opsetClass the <tt>Class</tt> of the operation set that we're looking for.
  * @return returns an OperationSet of the specified <tt>Class</tt> if the undelying implementation
  *     supports it or null otherwise.
  */
 public OperationSet getOperationSet(Class opsetClass) {
   return (OperationSet) getSupportedOperationSets().get(opsetClass.getName());
 }
Ejemplo n.º 2
0
  /**
   * Logs exceptions that have occurred in the application while processing events originating from
   * the stack.
   *
   * @param eventClass the class of the jain-sip event that we were handling when the exception was
   *     thrown.
   * @param exc the exception that we need to log.
   */
  private void logApplicationException(Class<DialogTerminatedEvent> eventClass, Throwable exc) {
    String message = "An error occurred while processing event of type: " + eventClass.getName();

    logger.error(message, exc);
    if (logger.isDebugEnabled()) logger.debug(message, exc);
  }