+49 228 5552576-0


info@predic8.com

webServer

Description

Serves static files based on the request's path.

Can be used in

spring:beans, if, proxy, registration, request, response, serviceProxy, soapProxy, stompProxy, swaggerProxy and transport

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.

Copyright © 2008-2015 predic8 GmbH
Moltkestr. 40, 53173 Bonn, Tel. +49 (228) 555 25 76-0