Class AbstractOutInterceptor
- java.lang.Object
-
- org.apache.cxf.phase.AbstractPhaseInterceptor<org.apache.cxf.message.Message>
-
- adams.flow.webservice.interceptor.outgoing.AbstractOutInterceptor
-
- 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,LogURL,XMLLoggingOutInterceptor
public abstract class AbstractOutInterceptor extends org.apache.cxf.phase.AbstractPhaseInterceptor<org.apache.cxf.message.Message> implements adams.core.logging.LoggingSupporter, adams.core.logging.LoggingLevelHandlerInterceptor for outgoing messages.- Author:
- fracpete (fracpete at waikato dot ac dot nz)
-
-
Field Summary
Fields Modifier and Type Field Description protected adams.core.logging.Loggerm_Loggerthe logger in use.protected adams.core.logging.LoggingLevelm_LoggingLevelthe logging level.
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractOutInterceptor(String phase)Initializes the interceptor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidconfigureLogger()Initializes the logger.adams.core.logging.LoggergetLogger()Returns the logger in use.adams.core.logging.LoggingLevelgetLoggingLevel()Returns the logging level.protected voidinitialize()Initializes the members.protected voidinitializeLogging()Pre-configures the logging.booleanisInfoLoggingEnabled()Returns whether info logging is enabled.booleanisLoggingEnabled()Returns whether logging is enabled.voidsetLoggingLevel(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
-
AbstractOutInterceptor
protected AbstractOutInterceptor(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:
getLoggerin interfaceadams.core.logging.LoggingSupporter- Returns:
- the logger
-
setLoggingLevel
public void setLoggingLevel(adams.core.logging.LoggingLevel value)
Sets the logging level.- Specified by:
setLoggingLevelin interfaceadams.core.logging.LoggingLevelHandler- Parameters:
value- the level
-
getLoggingLevel
public adams.core.logging.LoggingLevel getLoggingLevel()
Returns the logging level.- Specified by:
getLoggingLevelin interfaceadams.core.logging.LoggingLevelHandler- Returns:
- the level
-
isLoggingEnabled
public boolean isLoggingEnabled()
Returns whether logging is enabled.- Specified by:
isLoggingEnabledin 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
-
-