org.smartcc
Interface Interceptor

All Known Subinterfaces:
Transport
All Known Implementing Classes:
AbstractInterceptor, HTTPTransport, LocalTransport, RMITransport

public interface Interceptor

Interceptor An interceptor interrogates or manipulates an Invocation and hands it on to the next Interceptor.

Version:
$Revision: 1.1.1.1 $
Author:
Holger Engels.

Method Summary
 Interceptor getNext()
          Get the next Interceptor.
 java.lang.Object invoke(Invocation invocation)
          Perform some interceptor specific action and propagate the Invocation.
 void setNext(Interceptor interceptor)
          Append the next Interceptor.
 

Method Detail

setNext

public void setNext(Interceptor interceptor)
Append the next Interceptor.

Parameters:
interceptor - the interceptor, that follows this interceptor

getNext

public Interceptor getNext()
Get the next Interceptor.

Returns:
the next Interceptor in the chain

invoke

public java.lang.Object invoke(Invocation invocation)
                        throws java.lang.Throwable
Perform some interceptor specific action and propagate the Invocation.

Parameters:
invocation - the Invocation
Returns:
the result
java.lang.Throwable


Copyright © 2002 DC-TSS. All Rights Reserved.