4. Interceptors/Features

webServer

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.



Can be used in:

serviceProxy, api, stompProxy, swaggerProxy, if, registration, wsStompReassembler, interceptor, bean, internalProxy, transport and soapProxy

Syntax

<webServer docBase="path" />

Sample

<serviceProxy port="80">
  <request>
	<webServer  />
  </request>
</serviceProxy>

Attributes

NameRequiredDefaultDescriptionExample
generateIndex false - - -
docBase true docBase
Sets path to the directory that contains the web content. docBase
index false - - -