Module tapestry.url
Back to master index

[public] Configuration Point tapestry.url.ServiceEncodersOccurs: unbounded
Defines a number of encoders that can encode and decode service requests.
Schema
Element <encoder>
A flexible encoder provided as an object.
Attribute after Translator: string
List of ids of encoders that must precede this encoder.
Attribute before Translator: string
List of ids of encoders that must follow this encoder.
Attribute id (required) (unique) Translator: string
Unique id for this encoder, used when ordering encoder order.
Attribute object (required) Translator: object
The object that implements the ServiceEncoder interface.
Conversion Rules
<conversion class="impl.ServiceEncoderContribution" >
  • <map attribute="object" property="encoder" />
</conversion>
Element <direct-service-encoder>
An encoder specialized for the direct service; it encodes the page name and the component id into the servlet path, and uses one of two extensions to indicate whether the link is stateful or stateless.
Attribute after Translator: string
List of ids of encoders that must follow this encoder.
Attribute before Translator: string
List of ids of encoders that must come before this encoder.
Attribute id (required) (unique) Translator: string
Unique id for this encoder, used when ordering encoder order.
Attribute stateful-extension (required) Translator: string
The path extension to use for stateful links.
Attribute stateless-extension (required) Translator: string
The path extension to use for stateless links.
Conversion Rules
<create-object class="impl.ServiceEncoderContribution" />
<read-attribute attribute="id" property="id" />
<read-attribute attribute="before" property="before" />
<read-attribute attribute="after" property="after" />
<invoke-parent method="addElement" />
<create-object class="org.apache.tapestry.engine.encoders.DirectServiceEncoder" />
<read-attribute attribute="stateless-extension" property="statelessExtension" />
<read-attribute attribute="stateful-extension" property="statefulExtension" />
<invoke-parent method="setEncoder" />
Element <page-service-encoder>
An encoder that identifies the service as a pathname extension, and encodes the page as the servlet path.
Attribute after Translator: string
List of ids of encoders that must follow this encoder.
Attribute before Translator: string
List of ids of encoders that must come before this encoder.
Attribute extension (required) Translator: string
The extension used to represent the service, i.e., "html".
Attribute id (required) (unique) Translator: string
Unique id for this encoder, used when ordering encoder order.
Attribute service (required) Translator: string
The name of the service mapped to the extension, i.e., "page".
Conversion Rules
<create-object class="impl.ServiceEncoderContribution" />
<read-attribute attribute="id" property="id" />
<read-attribute attribute="before" property="before" />
<read-attribute attribute="after" property="after" />
<invoke-parent method="addElement" />
<create-object class="org.apache.tapestry.engine.encoders.PageServiceEncoder" />
<read-attribute attribute="extension" property="extension" />
<read-attribute attribute="service" property="serviceName" />
<invoke-parent method="setEncoder" />
Element <extension-encoder>
An encoder that encodes just the service id, as /service.extension.
Attribute after Translator: string
List of ids of encoders that must follow this encoder.
Attribute before Translator: string
List of ids of encoders that must come before this encoder.
Attribute extension (required) Translator: string
The extension used, such as "svc".
Attribute id (required) (unique) Translator: string
Unique id for this encoder, used when ordering encoder order.
Conversion Rules
<create-object class="impl.ServiceEncoderContribution" />
<read-attribute attribute="id" property="id" />
<read-attribute attribute="before" property="before" />
<read-attribute attribute="after" property="after" />
<invoke-parent method="addElement" />
<create-object class="org.apache.tapestry.engine.encoders.ServiceExtensionEncoder" />
<read-attribute attribute="extension" property="extension" />
<invoke-parent method="setEncoder" />
Element <asset-encoder>
Attribute after Translator: string
List of ids of encoders that must follow this encoder.
Attribute before Translator: string
List of ids of encoders that must come before this encoder.
Attribute id (required) (unique) Translator: string
Unique id for this encoder, used when ordering encoder order.
Attribute path (required) Translator: string
The path to map to the asset service, typically "/assets/".
Conversion Rules
<create-object class="impl.ServiceEncoderContribution" />
<read-attribute attribute="id" property="id" />
<read-attribute attribute="before" property="before" />
<read-attribute attribute="after" property="after" />
<invoke-parent method="addElement" />
<create-object class="org.apache.tapestry.engine.encoders.AssetEncoder" />
<read-attribute attribute="path" property="path" />
<invoke-parent method="setEncoder" />
Element <path-encoder>
An encoder the encodes just the service name as a path such as "/service" .
Attribute after Translator: string
List of ids of encoders that must follow this encoder.
Attribute before Translator: string
List of ids of encoders that must come before this encoder.
Attribute id (required) (unique) Translator: string
Unique id for this encoder, used when ordering encoder order.
Attribute path (required) Translator: string
The path to map to the service, typically "/service".
Attribute service (required) Translator: string
The service name that can be used to find the right service to handle the path.
Conversion Rules
<create-object class="impl.ServiceEncoderContribution" />
<read-attribute attribute="id" property="id" />
<read-attribute attribute="before" property="before" />
<read-attribute attribute="after" property="after" />
<invoke-parent method="addElement" />
<create-object class="org.apache.tapestry.engine.encoders.PathEncoder" />
<read-attribute attribute="path" property="path" />
<read-attribute attribute="service" property="service" />
<invoke-parent method="setEncoder" />

Module tapestry.url
Back to master index