Package org.glassfish.grizzly.ssl
Class SSLBaseFilter.SSLTransportFilterWrapper
- java.lang.Object
-
- org.glassfish.grizzly.filterchain.BaseFilter
-
- org.glassfish.grizzly.filterchain.TransportFilter
-
- org.glassfish.grizzly.ssl.SSLBaseFilter.SSLTransportFilterWrapper
-
- All Implemented Interfaces:
Filter
- Enclosing class:
- SSLBaseFilter
protected static class SSLBaseFilter.SSLTransportFilterWrapper extends TransportFilter
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.glassfish.grizzly.filterchain.TransportFilter
TransportFilter.FlushEvent
-
-
Field Summary
Fields Modifier and Type Field Description protected SSLBaseFilter
sslBaseFilter
protected TransportFilter
wrappedFilter
-
Constructor Summary
Constructors Constructor Description SSLTransportFilterWrapper(TransportFilter transportFilter, SSLBaseFilter sslBaseFilter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FilterChainContext
createContext(Connection connection, FilterChainContext.Operation operation)
void
exceptionOccurred(FilterChainContext ctx, Throwable error)
Notification about exception, occurred on theFilterChain
NextAction
handleAccept(FilterChainContext ctx)
Delegates accept operation toTransport
's specific transport filter.NextAction
handleClose(FilterChainContext ctx)
Delegates close operation toTransport
's specific transport filter.NextAction
handleConnect(FilterChainContext ctx)
Delegates connect operation toTransport
's specific transport filter.NextAction
handleEvent(FilterChainContext ctx, FilterChainEvent event)
Delegates event operation toTransport
's specific transport filter.NextAction
handleRead(FilterChainContext ctx)
Delegates reading operation toTransport
's specific transport filter.NextAction
handleWrite(FilterChainContext ctx)
Delegates writing operation toTransport
's specific transport filter.void
onAdded(FilterChain filterChain)
Method is called, when the Filter has been added to the passedFilterChain
.void
onFilterChainChanged(FilterChain filterChain)
Method is called, when theFilterChain
this Filter is part of, has been changed.void
onRemoved(FilterChain filterChain)
Method is called, when the Filter has been removed from the passedFilterChain
.-
Methods inherited from class org.glassfish.grizzly.filterchain.TransportFilter
createFlushEvent, createFlushEvent, getTransportFilter0
-
Methods inherited from class org.glassfish.grizzly.filterchain.BaseFilter
toString
-
-
-
-
Field Detail
-
wrappedFilter
protected final TransportFilter wrappedFilter
-
sslBaseFilter
protected final SSLBaseFilter sslBaseFilter
-
-
Constructor Detail
-
SSLTransportFilterWrapper
public SSLTransportFilterWrapper(TransportFilter transportFilter, SSLBaseFilter sslBaseFilter)
-
-
Method Detail
-
handleAccept
public NextAction handleAccept(FilterChainContext ctx) throws IOException
Description copied from class:TransportFilter
Delegates accept operation toTransport
's specific transport filter.- Specified by:
handleAccept
in interfaceFilter
- Overrides:
handleAccept
in classTransportFilter
- Parameters:
ctx
-FilterChainContext
- Returns:
NextAction
instruction forFilterChain
, how it should continue the execution- Throws:
IOException
-
handleConnect
public NextAction handleConnect(FilterChainContext ctx) throws IOException
Description copied from class:TransportFilter
Delegates connect operation toTransport
's specific transport filter.- Specified by:
handleConnect
in interfaceFilter
- Overrides:
handleConnect
in classTransportFilter
- Parameters:
ctx
-FilterChainContext
- Returns:
NextAction
instruction forFilterChain
, how it should continue the execution- Throws:
IOException
-
handleRead
public NextAction handleRead(FilterChainContext ctx) throws IOException
Description copied from class:TransportFilter
Delegates reading operation toTransport
's specific transport filter.- Specified by:
handleRead
in interfaceFilter
- Overrides:
handleRead
in classTransportFilter
- Parameters:
ctx
-FilterChainContext
- Returns:
NextAction
instruction forFilterChain
, how it should continue the execution- Throws:
IOException
-
handleWrite
public NextAction handleWrite(FilterChainContext ctx) throws IOException
Description copied from class:TransportFilter
Delegates writing operation toTransport
's specific transport filter.- Specified by:
handleWrite
in interfaceFilter
- Overrides:
handleWrite
in classTransportFilter
- Parameters:
ctx
-FilterChainContext
- Returns:
NextAction
instruction forFilterChain
, how it should continue the execution- Throws:
IOException
-
handleEvent
public NextAction handleEvent(FilterChainContext ctx, FilterChainEvent event) throws IOException
Description copied from class:TransportFilter
Delegates event operation toTransport
's specific transport filter.- Specified by:
handleEvent
in interfaceFilter
- Overrides:
handleEvent
in classTransportFilter
- Parameters:
ctx
-FilterChainContext
- Returns:
NextAction
instruction forFilterChain
, how it should continue the execution- Throws:
IOException
-
handleClose
public NextAction handleClose(FilterChainContext ctx) throws IOException
Description copied from class:TransportFilter
Delegates close operation toTransport
's specific transport filter.- Specified by:
handleClose
in interfaceFilter
- Overrides:
handleClose
in classTransportFilter
- Parameters:
ctx
-FilterChainContext
- Returns:
NextAction
instruction forFilterChain
, how it should continue the execution- Throws:
IOException
-
onAdded
public void onAdded(FilterChain filterChain)
Description copied from class:BaseFilter
Method is called, when the Filter has been added to the passedFilterChain
.- Specified by:
onAdded
in interfaceFilter
- Overrides:
onAdded
in classBaseFilter
- Parameters:
filterChain
- theFilterChain
this Filter was added to.
-
onFilterChainChanged
public void onFilterChainChanged(FilterChain filterChain)
Description copied from class:BaseFilter
Method is called, when theFilterChain
this Filter is part of, has been changed.- Specified by:
onFilterChainChanged
in interfaceFilter
- Overrides:
onFilterChainChanged
in classBaseFilter
- Parameters:
filterChain
- theFilterChain
.
-
onRemoved
public void onRemoved(FilterChain filterChain)
Description copied from class:BaseFilter
Method is called, when the Filter has been removed from the passedFilterChain
.- Specified by:
onRemoved
in interfaceFilter
- Overrides:
onRemoved
in classBaseFilter
- Parameters:
filterChain
- theFilterChain
this Filter was removed from.
-
exceptionOccurred
public void exceptionOccurred(FilterChainContext ctx, Throwable error)
Description copied from class:BaseFilter
Notification about exception, occurred on theFilterChain
- Specified by:
exceptionOccurred
in interfaceFilter
- Overrides:
exceptionOccurred
in classBaseFilter
- Parameters:
ctx
- event processingFilterChainContext
error
- error, which occurred during FilterChain execution
-
createContext
public FilterChainContext createContext(Connection connection, FilterChainContext.Operation operation)
- Overrides:
createContext
in classBaseFilter
-
-