|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.grizzly.filterchain.FilterAdapter
org.glassfish.grizzly.ssl.SSLFilter
public class SSLFilter
SSL Filter to operate with SSL encrypted data.
| Constructor Summary | |
|---|---|
SSLFilter()
|
|
SSLFilter(SSLEngineConfigurator sslEngineConfigurator)
Build SSLFilter with the given SSLEngineConfigurator. |
|
SSLFilter(SSLEngineConfigurator sslEngineConfigurator,
SSLHandshaker sslHandshaker)
Build SSLFilter with the given SSLEngineConfigurator and
custom SSLHandshaker |
|
| Method Summary | |
|---|---|
SSLSupport |
createSSLSupport(SSLStreamReader reader,
SSLStreamWriter writer)
|
Transformer |
getDecoder()
|
Transformer |
getEncoder()
|
StreamReader |
getStreamReader(StreamReader parentStreamReader)
|
StreamWriter |
getStreamWriter(StreamWriter parentStreamWriter)
|
NextAction |
handleRead(FilterChainContext ctx,
NextAction nextAction)
Wraps FilterChainContext default StreamReader and
StreamWriter with SSL aware ones. |
NextAction |
handleWrite(FilterChainContext ctx,
NextAction nextAction)
Execute a unit of processing work to be performed, when channel will become available for writing. |
NextAction |
postClose(FilterChainContext ctx,
NextAction nextAction)
Execute any cleanup activities, such as releasing resources that were acquired during the execution of Filter#handleClose(com.sun.grizzly.FilterChainContext) method of
this Filter instance. |
NextAction |
postRead(FilterChainContext ctx,
NextAction nextAction)
Execute any cleanup activities, such as releasing resources that were acquired during the execution of Filter#handleRead(com.sun.grizzly.FilterChainContext) method of
this Filter instance. |
NextAction |
postWrite(FilterChainContext ctx,
NextAction nextAction)
Execute any cleanup activities, such as releasing resources that were acquired during the execution of Filter#handleWrite(com.sun.grizzly.FilterChainContext) method of
this Filter instance. |
| Methods inherited from class org.glassfish.grizzly.filterchain.FilterAdapter |
|---|
exceptionOccurred, getFilterChain, getIndex, handleAccept, handleClose, handleConnect, isIndexable, postAccept, postConnect, setIndex |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.glassfish.grizzly.filterchain.Filter |
|---|
exceptionOccurred, getIndex, handleAccept, handleClose, handleConnect, isIndexable, postAccept, postConnect, setIndex |
| Constructor Detail |
|---|
public SSLFilter()
public SSLFilter(SSLEngineConfigurator sslEngineConfigurator)
SSLEngineConfigurator.
sslEngineConfigurator - SSLEngine configurator
public SSLFilter(SSLEngineConfigurator sslEngineConfigurator,
SSLHandshaker sslHandshaker)
SSLEngineConfigurator and
custom SSLHandshaker
sslEngineConfigurator - SSLEngine configurator| Method Detail |
|---|
public NextAction handleRead(FilterChainContext ctx,
NextAction nextAction)
throws IOException
FilterChainContext default StreamReader and
StreamWriter with SSL aware ones.
handleRead in interface FilterhandleRead in class FilterAdapterctx - FilterChainContextnextAction - default NextAction, which Filter
could change in order to control how
FilterChain will continue the execution
NextAction instruction for FilterChain, how it
should continue the execution
IOException
public NextAction postRead(FilterChainContext ctx,
NextAction nextAction)
throws IOException
Filter#handleRead(com.sun.grizzly.FilterChainContext) method of
this Filter instance.
postRead in interface FilterpostRead in class FilterAdapterctx - FilterChainContextnextAction - default NextAction, which Filter
could change in order to control how
FilterChain will continue the execution
NextAction instruction for FilterChain, how it
should continue the execution
IOException
public NextAction handleWrite(FilterChainContext ctx,
NextAction nextAction)
throws IOException
Filter may either complete the required processing and
return false, or delegate remaining processing to the next
Filter in a FilterChain containing this Filter
by returning true.
handleWrite in interface FilterhandleWrite in class FilterAdapterctx - FilterChainContextnextAction - default NextAction, which Filter
could change in order to control how
FilterChain will continue the execution
NextAction instruction for FilterChain, how it
should continue the execution
IOException
public NextAction postWrite(FilterChainContext ctx,
NextAction nextAction)
throws IOException
Filter#handleWrite(com.sun.grizzly.FilterChainContext) method of
this Filter instance.
postWrite in interface FilterpostWrite in class FilterAdapterctx - FilterChainContextnextAction - default NextAction, which Filter
could change in order to control how
FilterChain will continue the execution
NextAction instruction for FilterChain, how it
should continue the execution
IOException
public NextAction postClose(FilterChainContext ctx,
NextAction nextAction)
throws IOException
Filter#handleClose(com.sun.grizzly.FilterChainContext) method of
this Filter instance.
postClose in interface FilterpostClose in class FilterAdapterctx - FilterChainContextnextAction - default NextAction, which Filter
could change in order to control how
FilterChain will continue the execution
NextAction instruction for FilterChain, how it
should continue the execution
IOExceptionpublic StreamReader getStreamReader(StreamReader parentStreamReader)
getStreamReader in interface StreamTransformerFilterpublic StreamWriter getStreamWriter(StreamWriter parentStreamWriter)
getStreamWriter in interface StreamTransformerFilter
public SSLSupport createSSLSupport(SSLStreamReader reader,
SSLStreamWriter writer)
public Transformer getDecoder()
getDecoder in interface Codecpublic Transformer getEncoder()
getEncoder in interface Codec
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||