org.idoox.wasp.interceptor
Interface TransportInterceptorChain

All Superinterfaces:
InterceptorChain

public interface TransportInterceptorChain
extends InterceptorChain

Transport chain of interceptors.

Since:
4.0
Component:
Core

Field Summary
 
Fields inherited from interface org.idoox.wasp.interceptor.InterceptorChain
INTERCEPTOR_DIRECTION_IN, INTERCEPTOR_DIRECTION_INOUT, INTERCEPTOR_DIRECTION_OUT
 
Method Summary
 void intercept(Connection connection)
          Intercepts a connection.
 
Methods inherited from interface org.idoox.wasp.interceptor.InterceptorChain
add, add, get, getDirection, getName, load, remove, setDirection, size
 

Method Detail

intercept

public void intercept(Connection connection)
               throws StopProcessingException,
                      java.io.IOException
Intercepts a connection. This method calls interceptors from this chain and wraps request and response.

Parameters:
connection - the connection to be intercepted
Throws:
StopProcessingException - when connection processing have to be stopped
java.io.IOException - when I/O error occurs