You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Mike Heath (JIRA)" <ji...@apache.org> on 2008/08/07 06:01:44 UTC

[jira] Created: (DIRMINA-614) Make TextLineDecoder extensible

Make TextLineDecoder extensible
-------------------------------

                 Key: DIRMINA-614
                 URL: https://issues.apache.org/jira/browse/DIRMINA-614
             Project: MINA
          Issue Type: Improvement
    Affects Versions: 2.0.0-M2
            Reporter: Mike Heath
            Assignee: Mike Heath
             Fix For: 2.0.0-M4


TextLineDecoder is useful for simple text protocols but it always sends a java.lang.String upstream.  Currently it is difficult to use TextLineDecoder where you want to send domain specific objects upstream.  It would be nice to make TextLineDecoder extensible to make it convenient to convert java.lang.String objects to domain specific objects.

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


[jira] Closed: (DIRMINA-614) Make TextLineDecoder extensible

Posted by "Mike Heath (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DIRMINA-614?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mike Heath closed DIRMINA-614.
------------------------------

    Resolution: Fixed

> Make TextLineDecoder extensible
> -------------------------------
>
>                 Key: DIRMINA-614
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-614
>             Project: MINA
>          Issue Type: Improvement
>    Affects Versions: 2.0.0-M2
>            Reporter: Mike Heath
>            Assignee: Mike Heath
>             Fix For: 2.0.0-M4
>
>
> TextLineDecoder is useful for simple text protocols but it always sends a java.lang.String upstream.  Currently it is difficult to use TextLineDecoder where you want to send domain specific objects upstream.  It would be nice to make TextLineDecoder extensible to make it convenient to convert java.lang.String objects to domain specific objects.

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


[jira] Commented: (DIRMINA-614) Make TextLineDecoder extensible

Posted by "Julien Vermillard (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRMINA-614?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12620547#action_12620547 ] 

Julien Vermillard commented on DIRMINA-614:
-------------------------------------------

Why not in place doing a two layer codec ? the text line extract text line and onther codec tranform them into your domain specific objects.

> Make TextLineDecoder extensible
> -------------------------------
>
>                 Key: DIRMINA-614
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-614
>             Project: MINA
>          Issue Type: Improvement
>    Affects Versions: 2.0.0-M2
>            Reporter: Mike Heath
>            Assignee: Mike Heath
>             Fix For: 2.0.0-M4
>
>
> TextLineDecoder is useful for simple text protocols but it always sends a java.lang.String upstream.  Currently it is difficult to use TextLineDecoder where you want to send domain specific objects upstream.  It would be nice to make TextLineDecoder extensible to make it convenient to convert java.lang.String objects to domain specific objects.

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


[jira] Commented: (DIRMINA-614) Make TextLineDecoder extensible

Posted by "Mike Heath (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRMINA-614?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12625128#action_12625128 ] 

Mike Heath commented on DIRMINA-614:
------------------------------------

If two layer codecs were possible, that's what I would do.  However, you can't layer codecs because ProtocolEncoder#encode takes an IoBuffer as an argument.  This is why I made TextLineDecoder extensible.

> Make TextLineDecoder extensible
> -------------------------------
>
>                 Key: DIRMINA-614
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-614
>             Project: MINA
>          Issue Type: Improvement
>    Affects Versions: 2.0.0-M2
>            Reporter: Mike Heath
>            Assignee: Mike Heath
>             Fix For: 2.0.0-M4
>
>
> TextLineDecoder is useful for simple text protocols but it always sends a java.lang.String upstream.  Currently it is difficult to use TextLineDecoder where you want to send domain specific objects upstream.  It would be nice to make TextLineDecoder extensible to make it convenient to convert java.lang.String objects to domain specific objects.

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