public class WebServerInterceptor extends AbstractInterceptor
Note that docBase any location: A relative or absolute directory, a "classpath://com.predic8.membrane.core.interceptor.administration.docBase" expression or a URL.
The interceptor chain will not continue beyond this interceptor, as it either successfully returns a HTTP response with the contents of a file, or a "404 Not Found." error.
Interceptor.Flowid, name, router| Constructor and Description |
|---|
WebServerInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
static Response |
createResponse(ResolverMap rr,
String resPath) |
String |
getDocBase() |
String |
getIndex() |
String |
getShortDescription() |
Outcome |
handleRequest(Exchange exc) |
void |
init()
Called after parsing is complete and this has been added to the object tree (whose root is Router).
|
boolean |
isGenerateIndex() |
void |
setDocBase(String docBase) |
void |
setGenerateIndex(boolean generateIndex) |
void |
setIndex(String i) |
getDisplayName, getFlow, getHelpId, getId, getLongDescription, getRouter, getRule, handleAbort, handleResponse, init, setDisplayName, setFlow, setIdpublic void init()
throws Exception
AbstractInterceptorinit in class AbstractInterceptorExceptionpublic Outcome handleRequest(Exchange exc) throws Exception
handleRequest in interface InterceptorhandleRequest in class AbstractInterceptorExceptionpublic static Response createResponse(ResolverMap rr, String resPath) throws IOException
IOExceptionpublic String getDocBase()
public void setDocBase(String docBase)
public String getIndex()
public void setIndex(String i)
public boolean isGenerateIndex()
public void setGenerateIndex(boolean generateIndex)
public String getShortDescription()
getShortDescription in interface InterceptorgetShortDescription in class AbstractInterceptorCopyright © 2019. All Rights Reserved.