Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.protocol.sip
Class MethodProcessorAdapter

java.lang.Object
  extended by net.java.sip.communicator.impl.protocol.sip.MethodProcessorAdapter
All Implemented Interfaces:
MethodProcessor
Direct Known Subclasses:
ClientCapabilities, DTMFInfo, EventPackageSupport, SipRegistrarConnection

public class MethodProcessorAdapter
extends Object
implements MethodProcessor

Provides a default implementation of MethodProcessor which does no processing and exists only as a convenience to extenders so that they can override the methods of interest.

Author:
Lyubomir Marinov

Constructor Summary
MethodProcessorAdapter()
           
 
Method Summary
 boolean processDialogTerminated(javax.sip.DialogTerminatedEvent dialogTerminatedEvent)
          Process an asynchronously reported DialogTerminatedEvent.
 boolean processIOException(javax.sip.IOExceptionEvent exceptionEvent)
          Process an asynchronously reported IO Exception.
 boolean processRequest(javax.sip.RequestEvent requestEvent)
          Processes a Request received on a ProtocolProviderServiceSipImpl upon which this processor is registered.
 boolean processResponse(javax.sip.ResponseEvent responseEvent)
          Processes a Response received on a ProtocolProviderServiceSipImpl upon which this processor is registered.
 boolean processTimeout(javax.sip.TimeoutEvent timeoutEvent)
          Processes a retransmit or expiration Timeout of an underlying Transaction handled by this SipListener.
 boolean processTransactionTerminated(javax.sip.TransactionTerminatedEvent transactionTerminatedEvent)
          Process an asynchronously reported TransactionTerminatedEvent.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MethodProcessorAdapter

public MethodProcessorAdapter()
Method Detail

processDialogTerminated

public boolean processDialogTerminated(javax.sip.DialogTerminatedEvent dialogTerminatedEvent)
Description copied from interface: MethodProcessor
Process an asynchronously reported DialogTerminatedEvent. When a dialog transitions to the Terminated state, the stack keeps no further records of the dialog. This notification can be used by applications to clean up any auxiliary data that is being maintained for the given dialog.

Specified by:
processDialogTerminated in interface MethodProcessor
Parameters:
dialogTerminatedEvent - an event that indicates that the dialog has transitioned into the terminated state
Returns:
true if the specified event has been handled by this processor and shouldn't be offered to other processors registered for the same method; false, otherwise

processIOException

public boolean processIOException(javax.sip.IOExceptionEvent exceptionEvent)
Description copied from interface: MethodProcessor
Process an asynchronously reported IO Exception. Asynchronous IO Exceptions may occur as a result of errors during retransmission of requests. The transaction state machine requires to report IO Exceptions to the application immediately (according to RFC 3261). This method enables an implementation to propagate the asynchronous handling of IO Exceptions to the application.

Specified by:
processIOException in interface MethodProcessor
Parameters:
exceptionEvent - the Exception event that is reported to the application
Returns:
true if the specified event has been handled by this processor and shouldn't be offered to other processors registered for the same method; false, otherwise

processRequest

public boolean processRequest(javax.sip.RequestEvent requestEvent)
Description copied from interface: MethodProcessor
Processes a Request received on a ProtocolProviderServiceSipImpl upon which this processor is registered.

Specified by:
processRequest in interface MethodProcessor
Parameters:
requestEvent - requestEvent fired from the ProtocolProviderServiceSipImpl to the processor representing a Request received from the network
Returns:
true if the specified event has been handled by this processor and shouldn't be offered to other processors registered for the same method; false, otherwise

processResponse

public boolean processResponse(javax.sip.ResponseEvent responseEvent)
Description copied from interface: MethodProcessor
Processes a Response received on a ProtocolProviderServiceSipImpl upon which this processor is registered.

Specified by:
processResponse in interface MethodProcessor
Parameters:
responseEvent - the responseEvent fired from the ProtocolProviderServiceSipImpl to the processor representing a Response received from the network
Returns:
true if the specified event has been handled by this processor and shouldn't be offered to other processors registered for the same method; false, otherwise

processTimeout

public boolean processTimeout(javax.sip.TimeoutEvent timeoutEvent)
Description copied from interface: MethodProcessor
Processes a retransmit or expiration Timeout of an underlying Transaction handled by this SipListener. This Event notifies the application that a retransmission or transaction Timer expired in the SipProvider's transaction state machine. The TimeoutEvent encapsulates the specific timeout type and the transaction identifier either client or server upon which the timeout occurred. The type of Timeout can by determined by: timeoutType = timeoutEvent.getTimeout().getValue();

Specified by:
processTimeout in interface MethodProcessor
Parameters:
timeoutEvent - the timeoutEvent received indicating either the message retransmit or transaction timed out
Returns:
true if the specified event has been handled by this processor and shouldn't be offered to other processors registered for the same method; false, otherwise

processTransactionTerminated

public boolean processTransactionTerminated(javax.sip.TransactionTerminatedEvent transactionTerminatedEvent)
Description copied from interface: MethodProcessor
Process an asynchronously reported TransactionTerminatedEvent. When a transaction transitions to the Terminated state, the stack keeps no further records of the transaction. This notification can be used by applications to clean up any auxiliary data that is being maintained for the given transaction.

Specified by:
processTransactionTerminated in interface MethodProcessor
Parameters:
transactionTerminatedEvent - an event that indicates that the transaction has transitioned into the terminated state
Returns:
true if the specified event has been handled by this processor and shouldn't be offered to other processors registered for the same method; false, otherwise

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.