camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hadrian Zbarcea (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CAMEL-1364) Add BindyKeyValuePairFormat to handle content formatted with key value pairs fields like we have in FIX, EMX messages
Date Fri, 27 Feb 2009 17:19:59 GMT

    [ https://issues.apache.org/activemq/browse/CAMEL-1364?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=50096#action_50096
] 

Hadrian Zbarcea commented on CAMEL-1364:
----------------------------------------

@Charles
Do you mind updating the documentation so we can close this issue?
http://cwiki.apache.org/confluence/display/CAMEL/Bindy
Thanks!

> Add BindyKeyValuePairFormat to handle content formatted with key value pairs fields like
we have in FIX, EMX messages
> ---------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-1364
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1364
>             Project: Apache Camel
>          Issue Type: New Feature
>          Components: camel-bindy
>            Reporter: Charles Moulliard
>            Assignee: Willem Jiang
>             Fix For: 2.0.0
>
>         Attachments: camel-bindy.txt
>
>
> Add BindyKeyValuePairFormat to handle content formatted with key value pairs fields like
we have in FIX, EMX messages
> So the following FIX message :
> 8=FIX.4.1\0019=112\00135=0\00149=BRKR\00156=INVMGR\00134=235\00152=19980604-07:58:28\001112=19980604-07:58:28\00110=157\001
> could be mapped to POJO like this 
> @Link
> public Class Header {
>     @KeyValuePair(tag = 8) // e.g. FIX 4.1
>     private string BeginStr;
>     @(tag = 9)
>     private int BodyLength;
>     ....
> }
> @Message(type = FIX, version = 4.1, keyValuePairSeparator = "=", pairSeparator = "\001")
> public class Message {
>    @Link
>    private Header header;
>    @Link
>    private Trailer trailer;
>   @KeyValuePair(tag = 52, pattern = "yyyymmdd-hh:mm:ss", mandatory="false")
>   private Date SendTime;
> }
> @Link
> public class Trailer {
> }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message