|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.grizzly.filterchain.BaseFilter
org.glassfish.grizzly.utils.LogFilter
public class LogFilter
Simple log Filter
| Constructor Summary | |
|---|---|
LogFilter()
|
|
LogFilter(java.util.logging.Logger logger)
|
|
LogFilter(java.util.logging.Logger logger,
java.util.logging.Level level)
|
|
| Method Summary | |
|---|---|
void |
exceptionOccurred(FilterChainContext ctx,
java.lang.Throwable error)
Notification about exception, occurred on the FilterChain |
java.util.logging.Level |
getLevel()
|
java.util.logging.Logger |
getLogger()
|
NextAction |
handleAccept(FilterChainContext ctx)
Execute a unit of processing work to be performed, when server channel has accepted the client connection. |
NextAction |
handleClose(FilterChainContext ctx)
Execute a unit of processing work to be performed, when connection has been closed. |
NextAction |
handleConnect(FilterChainContext ctx)
Execute a unit of processing work to be performed, when channel gets connected. |
NextAction |
handleRead(FilterChainContext ctx)
Execute a unit of processing work to be performed, when channel will become available for reading. |
NextAction |
handleWrite(FilterChainContext ctx)
Execute a unit of processing work to be performed, when some data should be written on channel. |
void |
onAdded(FilterChain filterChain)
Method is called, when the Filter has been added to the passed FilterChain. |
void |
onFilterChainChanged(FilterChain filterChain)
Method is called, when the FilterChain this Filter is part of,
has been changed. |
void |
onRemoved(FilterChain filterChain)
Method is called, when the Filter has been removed from the passed FilterChain. |
| Methods inherited from class org.glassfish.grizzly.filterchain.BaseFilter |
|---|
createContext, getFilterChain, getIndex, handleEvent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LogFilter()
public LogFilter(java.util.logging.Logger logger)
public LogFilter(java.util.logging.Logger logger,
java.util.logging.Level level)
| Method Detail |
|---|
public java.util.logging.Logger getLogger()
public java.util.logging.Level getLevel()
public void onAdded(FilterChain filterChain)
FilterFilterChain.
onAdded in interface FilteronAdded in class BaseFilterfilterChain - the FilterChain this Filter was added to.public void onRemoved(FilterChain filterChain)
FilterFilterChain.
onRemoved in interface FilteronRemoved in class BaseFilterfilterChain - the FilterChain this Filter was removed from.public void onFilterChainChanged(FilterChain filterChain)
FilterFilterChain this Filter is part of,
has been changed.
onFilterChainChanged in interface FilteronFilterChainChanged in class BaseFilterfilterChain - the FilterChain.
public NextAction handleRead(FilterChainContext ctx)
throws java.io.IOException
BaseFilterFilter 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.
handleRead in interface FilterhandleRead in class BaseFilterctx - FilterChainContext
NextAction instruction for FilterChain, how it
should continue the execution
java.io.IOException
public NextAction handleWrite(FilterChainContext ctx)
throws java.io.IOException
BaseFilterFilter 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 BaseFilterctx - FilterChainContext
NextAction instruction for FilterChain, how it
should continue the execution
java.io.IOException
public NextAction handleConnect(FilterChainContext ctx)
throws java.io.IOException
BaseFilterFilter 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.
handleConnect in interface FilterhandleConnect in class BaseFilterctx - FilterChainContext
NextAction instruction for FilterChain, how it
should continue the execution
java.io.IOException
public NextAction handleAccept(FilterChainContext ctx)
throws java.io.IOException
BaseFilterFilter 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.
handleAccept in interface FilterhandleAccept in class BaseFilterctx - FilterChainContext
NextAction instruction for FilterChain, how it
should continue the execution
java.io.IOException
public NextAction handleClose(FilterChainContext ctx)
throws java.io.IOException
BaseFilterFilter 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.
handleClose in interface FilterhandleClose in class BaseFilterctx - FilterChainContext
NextAction instruction for FilterChain, how it
should continue the execution
java.io.IOException
public void exceptionOccurred(FilterChainContext ctx,
java.lang.Throwable error)
BaseFilterFilterChain
exceptionOccurred in interface FilterexceptionOccurred in class BaseFilterctx - event processing FilterChainContexterror - error, which occurred during FilterChain execution
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||