Element <encoder> |
---|
A flexible encoder provided as an object. |
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 object (required) | Translator: | object |
---|
The object that implements the ServiceEncoder interface. |
Conversion Rules |
---|
<conversion
class=" org.apache.tapestry.services.impl.ServiceEncoderContribution"
>
- <map
attribute="object"
property="encoder"
/>
</conversion> |
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="org.apache.tapestry.services.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="org.apache.tapestry.services.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"
/> |