synapse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vanjikumaran Sivajothy (JIRA)" <>
Subject [jira] [Updated] (SYNAPSE-306) Merge Hessian and binary message builders/formatters
Date Sun, 24 Sep 2017 19:59:00 GMT


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

> Merge Hessian and binary message builders/formatters
> ----------------------------------------------------
>                 Key: SYNAPSE-306
>                 URL:
>             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

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message