public abstract class RESTInterceptor extends AbstractInterceptor
Interceptor.Flowid, name, router| Constructor and Description |
|---|
RESTInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getRelativeRootPath(String path)
For example, returns "../.." for the input "/admin/clusters/".
|
Outcome |
handleRequest(Exchange exc) |
boolean |
isReadOnly() |
protected Response |
json(JSONContent content) |
void |
setReadOnly(boolean readOnly) |
getDisplayName, getFlow, getHelpId, getId, getLongDescription, getRouter, getRule, getShortDescription, handleAbort, handleResponse, init, init, setDisplayName, setFlow, setIdpublic Outcome handleRequest(Exchange exc) throws Exception
handleRequest in interface InterceptorhandleRequest in class AbstractInterceptorExceptionprotected Response json(JSONContent content) throws Exception
Exceptionpublic static String getRelativeRootPath(String path) throws MalformedURLException
MalformedURLExceptionpublic boolean isReadOnly()
public void setReadOnly(boolean readOnly)
Copyright © 2019. All Rights Reserved.