You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@synapse.apache.org by "Vanjikumaran Sivajothy (JIRA)" <ji...@apache.org> on 2017/09/24 19:59:00 UTC

[jira] [Updated] (SYNAPSE-306) Merge Hessian and binary message builders/formatters

     [ https://issues.apache.org/jira/browse/SYNAPSE-306?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vanjikumaran Sivajothy updated SYNAPSE-306:
-------------------------------------------
    Fix Version/s:     (was: 2.0)
                   FUTURE

> Merge Hessian and binary message builders/formatters
> ----------------------------------------------------
>
>                 Key: SYNAPSE-306
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-306
>             Project: Synapse
>          Issue Type: Improvement
>          Components: Transports
>            Reporter: Andreas Veithen
>            Priority: Minor
>             Fix For: FUTURE
>
>
> SYNAPSE-259 introduced message builders and formatters for the Hessian format: see package org.apache.synapse.format.hessian in module synapse-extensions.
> SYNAPSE-261 added builders and formatters for generic binary payloads: see package org.apache.synapse.format in module synapse-transports.
> While the code looks very different, those builders and formatters do almost the same thing: the two builders wrap the binary data of the message in a wrapper element using a DataHandler, while the formatters unwrap the data and hand it to the transport. The main differences in behavior are:
> * The wrapper element (default) names are different.
> * The Hessian message formatter handles SOAP faults in a protocol specific way.
> Other differences are technical. For example the Hessian builder uses a TemporaryData object to store the binary data, while BinaryBuilder uses a byte array. Note that using a TemporaryData object would also be beneficial for BinaryBuilder, but this is not possible for the moment given that TemporaryData belongs to synapse-core, while BinaryBuilder is part of synapse-transports.
> Given the similarities between the two implementations, the proposal is to merge them as far as possible.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org