Class DynamicAdminPageInterceptor
java.lang.Object
com.predic8.membrane.core.interceptor.AbstractInterceptor
com.predic8.membrane.core.interceptor.administration.DynamicAdminPageInterceptor
- All Implemented Interfaces:
Interceptor
Handles the dynamic part of the admin console (= requests starting with "/admin/").
-
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 TypeMethodDescriptionstatic StringgetBalancerParam(Map<String, String> params) handleBalancersRequest(Map<String, String> params, String relativeRootPath) handleCallRequest(Map<String, String> params, String relativeRootPath) handleCallsRequest(Map<String, String> params, String relativeRootPath) handleClientsRequest(Map<String, String> params, String relativeRootPath) handleClustersRequest(Map<String, String> params, String relativeRootPath) handleClustersSaveRequest(Map<String, String> params, String relativeRootPath) handleClustersShowRequest(Map<String, String> params, String relativeRootPath) handleHomeRequest(Map<String, String> params, String relativeRootPath) handleNodeDeleteRequest(Map<String, String> params, String relativeRootPath) handleNodeDownRequest(Map<String, String> params, String relativeRootPath) handleNodeResetRequest(Map<String, String> params, String relativeRootPath) handleNodeSaveRequest(Map<String, String> params, String relativeRootPath) handleNodeSessionsRequest(Map<String, String> params, String relativeRootPath) handleNodeShowRequest(Map<String, String> params, String relativeRootPath) handleNodeTakeoutRequest(Map<String, String> params, String relativeRootPath) handleNodeUpRequest(Map<String, String> params, String relativeRootPath) handleProxyDeleteRequest(Map<String, String> params, String relativeRootPath) handleProxyRequest(Map<String, String> params, String relativeRootPath) handleProxySaveRequest(Map<String, String> params, String relativeRootPath) handlePruleShowRequest(Map<String, String> params, String relativeRootPath) handleRequest(Exchange exc) handleServiceProxyDeleteRequest(Map<String, String> params, String relativeRootPath) handleServiceProxySaveRequest(Map<String, String> params, String relativeRootPath) handleServiceProxyShowRequest(Map<String, String> params, String relativeRootPath) handleServiceProxyStartRequest(Map<String, String> params, String relativeRootPath) handleStatisticsRequest(Map<String, String> params, String relativeRootPath) handleStreamPumpsRequest(Map<String, String> params, String relativeRootPath) handleSystemRequest(Map<String, String> params, String relativeRootPath) handleTransportRequest(Map<String, String> params, String relativeRootPath) booleanvoidsetReadOnly(boolean readOnly) voidsetUseXForwardedForAsClientAddr(boolean useXForwardedForAsClientAddr) Methods inherited from class com.predic8.membrane.core.interceptor.AbstractInterceptor
getDisplayName, getFlow, getHelpId, getLongDescription, getMessage, getRouter, getRule, getShortDescription, handleAbort, handleResponse, init, init, setDisplayName, setFlow
-
Constructor Details
-
DynamicAdminPageInterceptor
public DynamicAdminPageInterceptor()
-
-
Method Details
-
handleRequest
- Specified by:
handleRequestin interfaceInterceptor- Overrides:
handleRequestin classAbstractInterceptor- Throws:
Exception
-
handleHomeRequest
public Response handleHomeRequest(Map<String, String> params, String relativeRootPath) throws Exception- Throws:
Exception
-
handleProxyRequest
public Response handleProxyRequest(Map<String, String> params, String relativeRootPath) throws Exception- Throws:
Exception
-
handleServiceProxyShowRequest
public Response handleServiceProxyShowRequest(Map<String, String> params, String relativeRootPath) throws Exception- Throws:
Exception
-
handlePruleShowRequest
public Response handlePruleShowRequest(Map<String, String> params, String relativeRootPath) throws Exception- Throws:
Exception
-
handleServiceProxySaveRequest
public Response handleServiceProxySaveRequest(Map<String, String> params, String relativeRootPath) throws Exception- Throws:
Exception
-
handleProxySaveRequest
public Response handleProxySaveRequest(Map<String, String> params, String relativeRootPath) throws Exception- Throws:
Exception
-
handleServiceProxyDeleteRequest
public Response handleServiceProxyDeleteRequest(Map<String, String> params, String relativeRootPath) throws Exception- Throws:
Exception
-
handleServiceProxyStartRequest
public Response handleServiceProxyStartRequest(Map<String, String> params, String relativeRootPath) throws Exception- Throws:
Exception
-
handleProxyDeleteRequest
public Response handleProxyDeleteRequest(Map<String, String> params, String relativeRootPath) throws Exception- Throws:
Exception
-
handleTransportRequest
public Response handleTransportRequest(Map<String, String> params, String relativeRootPath) throws Exception- Throws:
Exception
-
handleSystemRequest
public Response handleSystemRequest(Map<String, String> params, String relativeRootPath) throws Exception- Throws:
Exception
-
handleBalancersRequest
public Response handleBalancersRequest(Map<String, String> params, String relativeRootPath) throws Exception- Throws:
Exception
-
handleClustersRequest
public Response handleClustersRequest(Map<String, String> params, String relativeRootPath) throws Exception- Throws:
Exception
-
handleClustersShowRequest
public Response handleClustersShowRequest(Map<String, String> params, String relativeRootPath) throws Exception- Throws:
Exception
-
handleClustersSaveRequest
public Response handleClustersSaveRequest(Map<String, String> params, String relativeRootPath) throws Exception- Throws:
Exception
-
handleNodeShowRequest
public Response handleNodeShowRequest(Map<String, String> params, String relativeRootPath) throws Exception- Throws:
Exception
-
handleNodeSessionsRequest
public Response handleNodeSessionsRequest(Map<String, String> params, String relativeRootPath) throws Exception- Throws:
Exception
-
handleNodeSaveRequest
-
handleNodeUpRequest
-
handleNodeTakeoutRequest
-
handleNodeDownRequest
-
handleNodeDeleteRequest
-
handleNodeResetRequest
-
handleStatisticsRequest
public Response handleStatisticsRequest(Map<String, String> params, String relativeRootPath) throws Exception- Throws:
Exception
-
handleStreamPumpsRequest
public Response handleStreamPumpsRequest(Map<String, String> params, String relativeRootPath) throws Exception- Throws:
Exception
-
handleCallsRequest
public Response handleCallsRequest(Map<String, String> params, String relativeRootPath) throws Exception- Throws:
Exception
-
handleCallRequest
public Response handleCallRequest(Map<String, String> params, String relativeRootPath) throws Exception- Throws:
Exception
-
handleClientsRequest
public Response handleClientsRequest(Map<String, String> params, String relativeRootPath) throws Exception- Throws:
Exception
-
getAbout
- Throws:
Exception
-
getBalancerParam
-
isReadOnly
public boolean isReadOnly() -
setReadOnly
public void setReadOnly(boolean readOnly) -
setUseXForwardedForAsClientAddr
public void setUseXForwardedForAsClientAddr(boolean useXForwardedForAsClientAddr) -
createReadOnlyErrorResponse
-