Class WebServerInterceptor

java.lang.Object
com.predic8.membrane.core.interceptor.AbstractInterceptor
com.predic8.membrane.core.interceptor.server.WebServerInterceptor
All Implemented Interfaces:
Interceptor

public class WebServerInterceptor extends AbstractInterceptor
Description
Serves static files based on the request's path.
Explanation

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.

Topic
4. Interceptors/Features