public class EsiContentResolver
extends java.lang.Object
The content of the url of the src-attribute is fetched and inserted into the page flow,
just as a esi-include processor like e.g.varnish would do.
If the onerror-attribute is set to continue, any errors that occur while fetching the document are ignored.
Otherwise an error message is output into the pageflow.
| Constructor and Description |
|---|
EsiContentResolver(Fetch fetch,
java.lang.String prefixForRelativePath) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
fetch(java.lang.String src,
java.lang.String templateName,
boolean continueOnError) |
public EsiContentResolver(Fetch fetch, java.lang.String prefixForRelativePath)
fetch - a Function that takes the url to be fetched and returns a response object with its content and statusprefixForRelativePath - optional, may be null. Protocol and hostname to prefix a relative url in the src-attribute. E.g. "http://www.otto.de"