Go to new doc!

+49 228 5552576-0


info@predic8.com

webServer

Description

Serves static files based on the request's path.

Can be used in

spring:beans, api, bean, if, interceptor, internalProxy, proxy, registration, request, response, serviceProxy, soapProxy, stompProxy, swaggerProxy, transport and wsStompReassembler

Syntax

				<webServer docBase="path" />			
			
Listing 1: webServer Syntax

Sample

				<serviceProxy port="80">
						<request>
							<webServer  />
						</request>
				</serviceProxy>			
			
Listing 2: webServer Example

Attributes

Name Required Default Description Example
docBase true docBase Sets path to the directory that contains the web content. docBase
generateIndex false -
index false -

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.