Skip to main content

 Advanced

Advanced topics

Generator: GetMatchingService

Class name:org.weborganic.berlioz.generator.GetMatchingService
Version:Berlioz 0.9.3 - 9 December 2011
Library:Berlioz
Cacheable:Yes
Generated:2012-12-21

Description

Returns the current service configuration as XML.

This content generator is mostly useful for developers to see how the services are configured.

Configuration

There is no configuration associated with this generator.

Parameters

This generator does not use and require any parameter.

Returned XML

This generator contains the /WEB-INF/config/services.xml used by Berlioz to load its services.

<services version="1.0"> ... </services>

The formatting of the XML might differ from the actual files, as it is parsed before being returned; the XML declaration and comments are stripped.

Error handling

If there is any problem parsing or reading the file, the XML returned is:

<no-data error="[error]" details="[error-details]"/>

The error details are only shown if available.

Usage

To use this generator in Berlioz (in /WEB-INF/config/services.xml ):

<generator class="org.weborganic.berlioz.generator.GetServices"
           name="[name]"
           target="[target]"/>

Etag

This generator uses a weak etag based on the name, length and last modified date of the file.

Created on , last edited on