Class LogURL
- java.lang.Object
-
- org.apache.cxf.phase.AbstractPhaseInterceptor<org.apache.cxf.message.Message>
-
- adams.flow.rest.interceptor.outgoing.AbstractOutInterceptor
-
- adams.flow.rest.interceptor.outgoing.LogURL
-
- 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>
public class LogURL extends AbstractOutInterceptor
Interceptor for outgoing messages that simply logs the outgoing URL.- Author:
- fracpete (fracpete at waikato dot ac dot nz)
-
-
Field Summary
Fields Modifier and Type Field Description protected String
m_LastURL
the last url.-
Fields inherited from class adams.flow.rest.interceptor.outgoing.AbstractOutInterceptor
m_Logger, m_LoggingLevel
-
-
Constructor Summary
Constructors Constructor Description LogURL()
Initializes the interceptor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getLastURL()
Returns the last URL encountered.void
handleMessage(org.apache.cxf.message.Message message)
Intercepts a message.protected void
initialize()
Initializes the members.-
Methods inherited from class adams.flow.rest.interceptor.outgoing.AbstractOutInterceptor
configureLogger, getLogger, getLoggingLevel, initializeLogging, isInfoLoggingEnabled, isLoggingEnabled, setLoggingLevel
-
-
-
-
Field Detail
-
m_LastURL
protected String m_LastURL
the last url.
-
-
Method Detail
-
initialize
protected void initialize()
Initializes the members.- Overrides:
initialize
in classAbstractOutInterceptor
-
handleMessage
public void handleMessage(org.apache.cxf.message.Message message) throws org.apache.cxf.interceptor.Fault
Intercepts a message. Interceptors should NOT invoke handleMessage or handleFault on the next interceptor - the interceptor chain will take care of this.- Parameters:
message
-- Throws:
org.apache.cxf.interceptor.Fault
-
getLastURL
public String getLastURL()
Returns the last URL encountered.- Returns:
- the URL, null if none yet set
-
-