|
Key
This line was removed.
This word was removed. This word was added.
This line was added.
|
Changes (16)
View Page History </rest:authentication>
<rest:on-http-status code="200">
<rest:on-http-status code="200">
<rest:xsl>200-consulter.xsl</rest:xsl> <rest:otherwise-out>
<rest:transformation>
<rest:xsl>200-consulter.xsl</rest:xsl>
</rest:transformation>
</rest:otherwise-out>
<rest:xsl>200-consulter.xsl</rest:xsl>
</rest:transformation>
</rest:otherwise-out>
</rest:on-http-status>
<rest:on-http-status code="404">
<rest:on-http-status code="404">
<rest:xsl as-fault="true">404.xsl</rest:xsl> <rest:otherwise-fault>
<rest:transformation>
<rest:xsl>404.xsl</rest:xsl>
</rest:transformation>
</rest:otherwise-fault>
<rest:xsl>404.xsl</rest:xsl>
</rest:transformation>
</rest:otherwise-fault>
</rest:on-http-status>
</rest:operation>
</rest:operation>
<rest:json-xml-mapping-convention>MAPPED_CONVENTION</rest:json-xml-mapping-convention>
<rest:on-http-status code="200">
<rest:on-http-status code="200">
<rest:xsl>200-metadata.xsl</rest:xsl> <rest:otherwise-out>
<rest:transformation>
<rest:xsl>200-metadata.xsl</rest:xsl>
</rest:transformation>
</rest:otherwise-out>
<rest:xsl>200-metadata.xsl</rest:xsl>
</rest:transformation>
</rest:otherwise-out>
</rest:on-http-status>
<rest:on-http-status code="404">
<rest:on-http-status code="404">
<rest:xsl as-fault="true">404.xsl</rest:xsl> <rest:otherwise-fault>
<rest:transformation>
<rest:xsl>404.xsl</rest:xsl>
</rest:transformation>
</rest:otherwise-fault>
<rest:xsl>404.xsl</rest:xsl>
</rest:transformation>
</rest:otherwise-fault>
</rest:on-http-status>
</rest:operation>
</rest:operation>
<rest:http-body-to-json-auto-array>true</rest:http-body-to-json-auto-array>
<rest:on-http-status code="404">
<rest:on-http-status code="404">
<rest:xsl as-fault="true">documentInconnu-as-fault.xsl</rest:xsl> <rest:otherwise-fault>
<rest:transformation>
<rest:xsl>documentInconnu-as-fault.xsl</rest:xsl>
</rest:transformation>
</rest:otherwise-fault>
<rest:xsl>documentInconnu-as-fault.xsl</rest:xsl>
</rest:transformation>
</rest:otherwise-fault>
</rest:on-http-status>
</rest:operation>
</rest:operation>
</rest:form-data>
<rest:on-http-status code="200">
<rest:on-http-status code="200">
<rest:xsl>archiver-200.xsl</rest:xsl> <rest:otherwise-out>
<rest:transformation>
<rest:xsl>archiver-200.xsl</rest:xsl>
</rest:transformation>
</rest:otherwise-out>
<rest:xsl>archiver-200.xsl</rest:xsl>
</rest:transformation>
</rest:otherwise-out>
</rest:on-http-status>
<rest:on-http-status code="404">
<rest:on-http-status code="404">
<rest:xsl as-fault="true">unknownLibrary-as-fault.xsl</rest:xsl> <rest:otherwise-fault>
<rest:transformation>
<rest:xsl>unknownLibrary-as-fault.xsl</rest:xsl>
</rest:transformation>
</rest:otherwise-fault>
<rest:xsl>unknownLibrary-as-fault.xsl</rest:xsl>
</rest:transformation>
</rest:otherwise-fault>
</rest:on-http-status>
</rest:operation>
</rest:operation>
| on-http-status | Define how to process a given HTTP status:
* the attribute {{code}} is the HTTP code associated to this processing,
* the attribute {{code}} is the HTTP code associated to this processing,
* the sub-element '{{xsl}}' is the XSL generating the content of the reply to return,
** the reply type (fault or normal response) is defined according to the value of the attribute '{{as-fault}}'. The default reply type is a normal reply,
** the XSL can accept following global parameters according to the following cases:
*** generating a fault: The XML to transform is the incoming payload. Parameters of the URI called are available as XSL global parameters. The name of the XSL global parameter is the name of the URI parameter,
*** generating a normal reply from an XML or JSON response: The XML to transform is the XML returned by the resource or resulting of the JSON conversion. The incoming payload is available through the XSL global parameter: {code}{http://petals.ow2.org/bc/rest/xsl/param/output/1.0}incoming-request{code}
*** generating a normal reply from an attachment response: The XML to transform is the incoming payload, and the content id of the attachment set in the JBI response message is available through the XSL global parameter: {code}{http://petals.ow2.org/bc/rest/xsl/param/output/1.0\}content-id{code} | - | {center}No{center} |
** the reply type (fault or normal response) is defined according to the value of the attribute '{{as-fault}}'. The default reply type is a normal reply,
** the XSL can accept following global parameters according to the following cases:
*** generating a fault: The XML to transform is the incoming payload. Parameters of the URI called are available as XSL global parameters. The name of the XSL global parameter is the name of the URI parameter,
*** generating a normal reply from an XML or JSON response: The XML to transform is the XML returned by the resource or resulting of the JSON conversion. The incoming payload is available through the XSL global parameter: {code}{http://petals.ow2.org/bc/rest/xsl/param/output/1.0}incoming-request{code}
*** generating a normal reply from an attachment response: The XML to transform is the incoming payload, and the content id of the attachment set in the JBI response message is available through the XSL global parameter: {code}{http://petals.ow2.org/bc/rest/xsl/param/output/1.0\}content-id{code} | - | {center}No{center} |
* the sub-elements '{{out}}', '{{fault}}' or '{{error}} define conditional transformations to apply on the HTTP body response if exists. The first condition evaluted to '{{true}}' determine the transformation that will be applied. The result of the transformation will be used as OUT response, fault or error. Several conditional transformations can be defined:
** the attribute '{{order-id}}' permits to order condition evaluations,
** the sub-element '{{condition}}' defines the condition to evaluate. Now, only XPath conditions are supported through the sub-element '{{xpath}}',
** the sub-element '{{transformation}}' defines the transformation to apply if the condition matches. Now, only XSL transformations are supported through the sub-element '{{xsl}}':
*** if the HTTP body response is an XML or JSON payload, it is used as XML to transform, and the IN message payload can be loaded by the XSL through a variable {{<xsl:variable name="inPayload" select="document('petals-bc-rest:in-payload')"/>'}}
*** otherwise the IN message payload is used, and the content identifier of the attachment is available as parameter '{{{http://petals.ow2.org/bc/rest/xsl/param/output/1.0}content-id}}',
*** each URI parameter is available as transformation parameter,
* the sub-elements '{{otherwise-out}}', '{{otherwise-fault}}' or '{{otherwise-error}} define the default transformation to apply when no condition transformation matches the HTTP body response. The result of the transformation will be used as OUT response, fault or error. Only one default transformation can be defined:
** the sub-element '{{transformation}}' defines the transformation to apply if the condition matches. Now, only XSL transformations are supported through the sub-element '{{xsl}}':
*** if the HTTP body response is an XML or JSON payload, it is used as XML to transform, and the IN message payload can be loaded by the XSL through a variable {{<xsl:variable name="inPayload" select="document('petals-bc-rest:in-payload')"/>'}}
*** otherwise the IN message payload is used, and the content identifier of the attachment is available as parameter '{{{http://petals.ow2.org/bc/rest/xsl/param/output/1.0}content-id}}',
*** each URI parameter is available as transformation parameter,
** if no default transformation is defined:
*** if the HTTP code returned is 20X:
**** if the exchange is an InOut exchange, the HTTP body is put as OUT message,
**** otherwise (the exchange is InOnly or RobustInOnly), the status DONE is returned,
*** otherwise, a status ERROR is returned. | - | {center}No{center} |
** the attribute '{{order-id}}' permits to order condition evaluations,
** the sub-element '{{condition}}' defines the condition to evaluate. Now, only XPath conditions are supported through the sub-element '{{xpath}}',
** the sub-element '{{transformation}}' defines the transformation to apply if the condition matches. Now, only XSL transformations are supported through the sub-element '{{xsl}}':
*** if the HTTP body response is an XML or JSON payload, it is used as XML to transform, and the IN message payload can be loaded by the XSL through a variable {{<xsl:variable name="inPayload" select="document('petals-bc-rest:in-payload')"/>'}}
*** otherwise the IN message payload is used, and the content identifier of the attachment is available as parameter '{{{http://petals.ow2.org/bc/rest/xsl/param/output/1.0}content-id}}',
*** each URI parameter is available as transformation parameter,
* the sub-elements '{{otherwise-out}}', '{{otherwise-fault}}' or '{{otherwise-error}} define the default transformation to apply when no condition transformation matches the HTTP body response. The result of the transformation will be used as OUT response, fault or error. Only one default transformation can be defined:
** the sub-element '{{transformation}}' defines the transformation to apply if the condition matches. Now, only XSL transformations are supported through the sub-element '{{xsl}}':
*** if the HTTP body response is an XML or JSON payload, it is used as XML to transform, and the IN message payload can be loaded by the XSL through a variable {{<xsl:variable name="inPayload" select="document('petals-bc-rest:in-payload')"/>'}}
*** otherwise the IN message payload is used, and the content identifier of the attachment is available as parameter '{{{http://petals.ow2.org/bc/rest/xsl/param/output/1.0}content-id}}',
*** each URI parameter is available as transformation parameter,
** if no default transformation is defined:
*** if the HTTP code returned is 20X:
**** if the exchange is an InOut exchange, the HTTP body is put as OUT message,
**** otherwise (the exchange is InOnly or RobustInOnly), the status DONE is returned,
*** otherwise, a status ERROR is returned. | - | {center}No{center} |
| form-data | Define the form data to put in a part of a multi-part HTTP request:
* the attribute '{{name}}' define the name of the form data,
* the attribute '{{name}}' define the name of the form data,