Class AdminConsoleInterceptor
java.lang.Object
com.predic8.membrane.core.interceptor.AbstractInterceptor
com.predic8.membrane.core.interceptor.administration.AdminConsoleInterceptor
- All Implemented Interfaces:
Interceptor
- Description
- Displays up-to-date statistics, recent exchanges and, by default, allows live modification of Membrane's configuration.
- Topic
- 5. Monitoring, Logging and Statistics
-
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 TypeMethodDescriptionhandleRequest(Exchange exc) voidbooleanbooleanvoidsetReadOnly(boolean readOnly) voidsetUseXForwardedForAsClientAddr(boolean useXForwardedForAsClientAddr) Methods inherited from class com.predic8.membrane.core.interceptor.AbstractInterceptor
getDisplayName, getFlow, getHelpId, getLongDescription, getMessage, getRouter, getRule, handleAbort, handleResponse, init, setDisplayName, setFlow
-
Constructor Details
-
AdminConsoleInterceptor
public AdminConsoleInterceptor()
-
-
Method Details
-
handleRequest
- Specified by:
handleRequestin interfaceInterceptor- Overrides:
handleRequestin classAbstractInterceptor- Throws:
Exception
-
init
- Specified by:
initin interfaceInterceptor- Overrides:
initin classAbstractInterceptor- Throws:
Exception
-
isReadOnly
public boolean isReadOnly() -
setReadOnly
public void setReadOnly(boolean readOnly) - Default
- false
- Description
- Whether runtime changes to Membrane's configuration can be committed in the admin console.
-
isUseXForwardedForAsClientAddr
public boolean isUseXForwardedForAsClientAddr() -
setUseXForwardedForAsClientAddr
public void setUseXForwardedForAsClientAddr(boolean useXForwardedForAsClientAddr) - Default
- false
- Description
- whether to show the value of the first "X-Forwarded-For" header instead of the client IP address
-
getShortDescription
- Specified by:
getShortDescriptionin interfaceInterceptor- Overrides:
getShortDescriptionin classAbstractInterceptor
-