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 SSLBaseFiltersslBaseFilterprotected TransportFilterwrappedFilter
-
Constructor Summary
Constructors Constructor Description SSLTransportFilterWrapper(TransportFilter transportFilter, SSLBaseFilter sslBaseFilter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FilterChainContextcreateContext(Connection connection, FilterChainContext.Operation operation)voidexceptionOccurred(FilterChainContext ctx, Throwable error)Notification about exception, occurred on theFilterChainNextActionhandleAccept(FilterChainContext ctx)Delegates accept operation toTransport's specific transport filter.NextActionhandleClose(FilterChainContext ctx)Delegates close operation toTransport's specific transport filter.NextActionhandleConnect(FilterChainContext ctx)Delegates connect operation toTransport's specific transport filter.NextActionhandleEvent(FilterChainContext ctx, FilterChainEvent event)Delegates event operation toTransport's specific transport filter.NextActionhandleRead(FilterChainContext ctx)Delegates reading operation toTransport's specific transport filter.NextActionhandleWrite(FilterChainContext ctx)Delegates writing operation toTransport's specific transport filter.voidonAdded(FilterChain filterChain)Method is called, when the Filter has been added to the passedFilterChain.voidonFilterChainChanged(FilterChain filterChain)Method is called, when theFilterChainthis Filter is part of, has been changed.voidonRemoved(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:TransportFilterDelegates accept operation toTransport's specific transport filter.- Specified by:
handleAcceptin interfaceFilter- Overrides:
handleAcceptin classTransportFilter- Parameters:
ctx-FilterChainContext- Returns:
NextActioninstruction forFilterChain, how it should continue the execution- Throws:
IOException
-
handleConnect
public NextAction handleConnect(FilterChainContext ctx) throws IOException
Description copied from class:TransportFilterDelegates connect operation toTransport's specific transport filter.- Specified by:
handleConnectin interfaceFilter- Overrides:
handleConnectin classTransportFilter- Parameters:
ctx-FilterChainContext- Returns:
NextActioninstruction forFilterChain, how it should continue the execution- Throws:
IOException
-
handleRead
public NextAction handleRead(FilterChainContext ctx) throws IOException
Description copied from class:TransportFilterDelegates reading operation toTransport's specific transport filter.- Specified by:
handleReadin interfaceFilter- Overrides:
handleReadin classTransportFilter- Parameters:
ctx-FilterChainContext- Returns:
NextActioninstruction forFilterChain, how it should continue the execution- Throws:
IOException
-
handleWrite
public NextAction handleWrite(FilterChainContext ctx) throws IOException
Description copied from class:TransportFilterDelegates writing operation toTransport's specific transport filter.- Specified by:
handleWritein interfaceFilter- Overrides:
handleWritein classTransportFilter- Parameters:
ctx-FilterChainContext- Returns:
NextActioninstruction forFilterChain, how it should continue the execution- Throws:
IOException
-
handleEvent
public NextAction handleEvent(FilterChainContext ctx, FilterChainEvent event) throws IOException
Description copied from class:TransportFilterDelegates event operation toTransport's specific transport filter.- Specified by:
handleEventin interfaceFilter- Overrides:
handleEventin classTransportFilter- Parameters:
ctx-FilterChainContext- Returns:
NextActioninstruction forFilterChain, how it should continue the execution- Throws:
IOException
-
handleClose
public NextAction handleClose(FilterChainContext ctx) throws IOException
Description copied from class:TransportFilterDelegates close operation toTransport's specific transport filter.- Specified by:
handleClosein interfaceFilter- Overrides:
handleClosein classTransportFilter- Parameters:
ctx-FilterChainContext- Returns:
NextActioninstruction forFilterChain, how it should continue the execution- Throws:
IOException
-
onAdded
public void onAdded(FilterChain filterChain)
Description copied from class:BaseFilterMethod is called, when the Filter has been added to the passedFilterChain.- Specified by:
onAddedin interfaceFilter- Overrides:
onAddedin classBaseFilter- Parameters:
filterChain- theFilterChainthis Filter was added to.
-
onFilterChainChanged
public void onFilterChainChanged(FilterChain filterChain)
Description copied from class:BaseFilterMethod is called, when theFilterChainthis Filter is part of, has been changed.- Specified by:
onFilterChainChangedin interfaceFilter- Overrides:
onFilterChainChangedin classBaseFilter- Parameters:
filterChain- theFilterChain.
-
onRemoved
public void onRemoved(FilterChain filterChain)
Description copied from class:BaseFilterMethod is called, when the Filter has been removed from the passedFilterChain.- Specified by:
onRemovedin interfaceFilter- Overrides:
onRemovedin classBaseFilter- Parameters:
filterChain- theFilterChainthis Filter was removed from.
-
exceptionOccurred
public void exceptionOccurred(FilterChainContext ctx, Throwable error)
Description copied from class:BaseFilterNotification about exception, occurred on theFilterChain- Specified by:
exceptionOccurredin interfaceFilter- Overrides:
exceptionOccurredin classBaseFilter- Parameters:
ctx- event processingFilterChainContexterror- error, which occurred during FilterChain execution
-
createContext
public FilterChainContext createContext(Connection connection, FilterChainContext.Operation operation)
- Overrides:
createContextin classBaseFilter
-
-