[ 
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-unsubscr...@synapse.apache.org
For additional commands, e-mail: dev-h...@synapse.apache.org

Reply via email to