Difference between revisions of "ExtendedInboundParamHandlerFormatter"

From GreenVulcano Wiki
Jump to: navigation, search
(GVBufferPropertyDefaultValue)
({{GVESB}} Configuration)
Line 30: Line 30:
 
|-
 
|-
 
| ResponseOnError-HTTPCode || optional || CharacterEncoding to be used to handle requests from external system. Default to UTF-8.
 
| ResponseOnError-HTTPCode || optional || CharacterEncoding to be used to handle requests from external system. Default to UTF-8.
 +
Template to follow:
 +
    A configured default value for a field of an GVBuffer object.
 +
        #Template:
 +
 +
        <xsl:template match="GVBufferFieldDefaultValue">
 +
            <table cellpadding="0" cellspacing="0">
 +
                <tr>
 +
                    <td>Field name:  <i><xsl:value-of select="@FieldName"/></i></td>
 +
                </tr>
 +
                <tr>
 +
                    <td>Field value:  <i><xsl:value-of select="@FieldValue"/></i></td>
 +
                </tr>
 +
            </table>
 +
        </xsl:template>
 
|}
 
|}
  

Revision as of 15:22, 26 July 2013

Description

This sub-element formatter is used into the decoding of client request's parameters in order to create the input for a GreenVulcano® ESB service and to convert the service's output into a HTTP response.


DA COMPLETARE


GreenVulcano® ESB Configuration

The GVAdapterHttpConfiguration Element is used by: GVAdapters.

The following table shows the ExtendedInboundParamHandlerFormatter attributes:

Attribute Type Description
type fixed This attribute must keep the value FormatterPlugin.
class fixed Module Id always set to it.greenvulcano.gvesb.adapter.http.formatters.handlers.ExtendedInboundParamHandlerFormatter.
ID required If 'true' reads the request HTTP headers and provide them with the request parameters. Default value is false.
read-request-header optional CharacterEncoding to be used to handle requests from external system. Default to UTF-8.
ReqCharacterEncoding optional CharacterEncoding to handle responses to the external system. Default to UTF-8.
RespCharacterEncoding optional ContentType to be declared while handling HTTP responses to the external system. Default to text/html.
RespContentType optional If true force the POST body to be handled as application/x-www-form-urlencoded content type. Default is false.
HandlePostBodyAsParams optional If != -1 force the adapter to respond with the given http code on case of error. Default is -1 (disabled).
ResponseOnError-HTTPCode optional CharacterEncoding to be used to handle requests from external system. Default to UTF-8.

Template to follow:

   A configured default value for a field of an GVBuffer object.
       #Template:
       <xsl:template match="GVBufferFieldDefaultValue">
Field name: <xsl:value-of select="@FieldName"/>
Field value: <xsl:value-of select="@FieldValue"/>
       </xsl:template>

Contains the sub-elements GVBufferFieldDefaultValue.

Contains the sub-elements GVBufferPropertyDefaultValue.

Contains the sub-elements GVBufferField.

GVBufferFieldDefaultValue

The following table shows the GVBufferFieldDefaultValue attributes:

Attribute Type Description
FieldName required The configured default value of an GVBuffer field. Cannot be left blank.
FieldValue required A configured default value for a property field of an GVBuffer object.

GVBufferPropertyDefaultValue

The name of an GVBuffer extended field. The following table shows the GVBufferPropertyDefaultValue attributes:

Attribute Type Description
FieldName required This element represents a mapping target from/to a property field of an GVBuffer object.
FieldValue required This element represents a mapping target from/to a field of an GVBuffer object.

GVBufferField

The name of a field of an GVBuffer object. The following table shows the GVBufferField attributes:

Attribute Type Description
FieldName required The configured default value of an GVBuffer extended field. Cannot be left blank.

GVBufferProperty

The name of a field of an GVBuffer object. The following table shows the GVBufferProperty attributes:

Attribute Type Description
FieldName required This element represents a plain text value to be assigned as source/target of an handler mapping.