Class AccessLogInterceptor
java.lang.Object
com.predic8.membrane.core.interceptor.AbstractInterceptor
com.predic8.membrane.core.interceptor.log.AccessLogInterceptor
- All Implemented Interfaces:
Interceptor
- Description
- Writes exchange metrics into a Log4j appender
- Explanation
- Defaults to Apache Common Log pattern
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.predic8.membrane.core.interceptor.Interceptor
Interceptor.Flow -
Field Summary
Fields inherited from class com.predic8.membrane.core.interceptor.AbstractInterceptor
name, router -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidhandleAbort(Exchange exc) Called when anyInterceptor.handleRequest(Exchange)orInterceptor.handleResponse(Exchange)later in the chain returnedOutcome.ABORTor threw an exception.handleResponse(Exchange exc) voidinit()Called after parsing is complete and this has been added to the object tree (whose root is Router).booleanvoidsetAdditionalPatternList(List<AdditionalVariable> additionalVariableList) voidsetDateTimePattern(String dateTimePattern) voidsetDefaultValue(String defaultValue) voidsetExcludePayloadSize(boolean excludePayloadSize) Methods inherited from class com.predic8.membrane.core.interceptor.AbstractInterceptor
getDisplayName, getFlow, getHelpId, getLongDescription, getMessage, getRouter, getRule, handleRequest, init, setDisplayName, setFlow
-
Constructor Details
-
AccessLogInterceptor
public AccessLogInterceptor()
-
-
Method Details
-
getShortDescription
- Specified by:
getShortDescriptionin interfaceInterceptor- Overrides:
getShortDescriptionin classAbstractInterceptor
-
init
Description copied from class:AbstractInterceptorCalled after parsing is complete and this has been added to the object tree (whose root is Router).- Overrides:
initin classAbstractInterceptor- Throws:
Exception
-
handleResponse
- Specified by:
handleResponsein interfaceInterceptor- Overrides:
handleResponsein classAbstractInterceptor- Throws:
Exception
-
handleAbort
Description copied from interface:InterceptorCalled when anyInterceptor.handleRequest(Exchange)orInterceptor.handleResponse(Exchange)later in the chain returnedOutcome.ABORTor threw an exception.handleAbort is called in the reverse order of the chain (as handleResponse is).
- Specified by:
handleAbortin interfaceInterceptor- Overrides:
handleAbortin classAbstractInterceptor
-
getAdditionalPatternList
-
setAdditionalPatternList
-
getDefaultValue
-
setDefaultValue
- Description
- - Provide a default value if the exchange property could not be found, defaults to "-"
-
getDateTimePattern
-
setDateTimePattern
- Description
- - Provide a datetime pattern, defaults to "dd/MM/yyyy:HH:mm:ss Z"
-
isExcludePayloadSize
public boolean isExcludePayloadSize() -
setExcludePayloadSize
public void setExcludePayloadSize(boolean excludePayloadSize) - Description
- - Reading the payload size would disable "Streaming", defaults to false
-