Class RESTInterceptor
java.lang.Object
com.predic8.membrane.core.interceptor.AbstractInterceptor
com.predic8.membrane.core.interceptor.rest.RESTInterceptor
- All Implemented Interfaces:
Interceptor
- Direct Known Subclasses:
AdminRESTInterceptor,WebServiceExplorerInterceptor
-
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 StringgetRelativeRootPath(String path) For example, returns "../.." for the input "/admin/clusters/".handleRequest(Exchange exc) booleanprotected Responsejson(JSONContent content) voidsetReadOnly(boolean readOnly) 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
-
RESTInterceptor
public RESTInterceptor()
-
-
Method Details
-
handleRequest
- Specified by:
handleRequestin interfaceInterceptor- Overrides:
handleRequestin classAbstractInterceptor- Throws:
Exception
-
json
- Throws:
Exception
-
getRelativeRootPath
For example, returns "../.." for the input "/admin/clusters/". -
isReadOnly
public boolean isReadOnly() -
setReadOnly
public void setReadOnly(boolean readOnly)
-