Class AbstractInInterceptor
- java.lang.Object
-
- org.apache.cxf.phase.AbstractPhaseInterceptor<org.apache.cxf.message.Message>
-
- adams.flow.rest.interceptor.incoming.AbstractInInterceptor
-
- All Implemented Interfaces:
adams.core.logging.LoggingLevelHandler
,adams.core.logging.LoggingSupporter
,org.apache.cxf.interceptor.Interceptor<org.apache.cxf.message.Message>
,org.apache.cxf.phase.PhaseInterceptor<org.apache.cxf.message.Message>
- Direct Known Subclasses:
BaseLogging
,Enqueue
,LogFile
public abstract class AbstractInInterceptor extends org.apache.cxf.phase.AbstractPhaseInterceptor<org.apache.cxf.message.Message> implements adams.core.logging.LoggingSupporter, adams.core.logging.LoggingLevelHandler
Interceptor for incoming messages.- Author:
- fracpete (fracpete at waikato dot ac dot nz)
-
-
Field Summary
Fields Modifier and Type Field Description protected adams.core.logging.Logger
m_Logger
the logger in use.protected adams.core.logging.LoggingLevel
m_LoggingLevel
the logging level.
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractInInterceptor(String phase)
Initializes the interceptor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
configureLogger()
Initializes the logger.adams.core.logging.Logger
getLogger()
Returns the logger in use.adams.core.logging.LoggingLevel
getLoggingLevel()
Returns the logging level.protected void
initialize()
Initializes the members.protected void
initializeLogging()
Pre-configures the logging.boolean
isInfoLoggingEnabled()
Returns whether info logging is enabled.boolean
isLoggingEnabled()
Returns whether logging is enabled.void
setLoggingLevel(adams.core.logging.LoggingLevel value)
Sets the logging level.-
Methods inherited from class org.apache.cxf.phase.AbstractPhaseInterceptor
addAfter, addAfter, addBefore, addBefore, getAdditionalInterceptors, getAfter, getBefore, getId, getPhase, handleFault, isGET, isRequestor, setAfter, setBefore
-
-
-
-
Constructor Detail
-
AbstractInInterceptor
protected AbstractInInterceptor(String phase)
Initializes the interceptor.- Parameters:
phase
- the phase to use
-
-
Method Detail
-
initialize
protected void initialize()
Initializes the members.
Default implementation does nothing.
-
initializeLogging
protected void initializeLogging()
Pre-configures the logging.
-
configureLogger
protected void configureLogger()
Initializes the logger.
Default implementation uses the class name.
-
getLogger
public adams.core.logging.Logger getLogger()
Returns the logger in use.- Specified by:
getLogger
in interfaceadams.core.logging.LoggingSupporter
- Returns:
- the logger
-
setLoggingLevel
public void setLoggingLevel(adams.core.logging.LoggingLevel value)
Sets the logging level.- Specified by:
setLoggingLevel
in interfaceadams.core.logging.LoggingLevelHandler
- Parameters:
value
- the level
-
getLoggingLevel
public adams.core.logging.LoggingLevel getLoggingLevel()
Returns the logging level.- Specified by:
getLoggingLevel
in interfaceadams.core.logging.LoggingLevelHandler
- Returns:
- the level
-
isLoggingEnabled
public boolean isLoggingEnabled()
Returns whether logging is enabled.- Specified by:
isLoggingEnabled
in interfaceadams.core.logging.LoggingSupporter
- Returns:
- true if at least
Level.CONFIG
-
isInfoLoggingEnabled
public boolean isInfoLoggingEnabled()
Returns whether info logging is enabled.- Returns:
- true if at least
Level.INFO
-
-