[
https://issues.apache.org/jira/browse/DIRMINA-586?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12635939#action_12635939
]
Edwin Lee commented on DIRMINA-586:
-----------------------------------
i encountered something similar when i was writing a configurable automated
client engine for Telnet (i.e. automatically logs in, sends command, collect
output, etc). (Seems like OP is also dealing with a Telnet login.)
IMHO, this isn't exactly just an extension/enhancement of the
TextLineCodecFactory (and corresponding TextLineEncoder and TextLineDecoder),
though there are overlaps (both are text-based, and both use delimiters, though
when dealing with Telnet, you may need more than just delimiters).
IMHO, to fully handle the dynamic-ness of this, it probably requires a custom
implementation of ProtocolDecoder's decode method (i.e. even if a
DynamicTextLineDecoder is put in, a hook would be required, and the hook would
almost cover the decode method), which is almost as good as a whole new
ProtocolDecoder implementation, and hence a new ProtocolCodecFactory
implementation (though the TextLineEncoder can probably be reused in this case).
> Dynamic delimiter support for TextLineCodecFactory
> --------------------------------------------------
>
> Key: DIRMINA-586
> URL: https://issues.apache.org/jira/browse/DIRMINA-586
> Project: MINA
> Issue Type: Improvement
> Components: Filter
> Affects Versions: 2.0.0-M1
> Reporter: Trustin Lee
> Priority: Minor
> Fix For: 2.0.0-M4
>
>
> TextLineCodecFactory supports static delimiters only. For some cases, users
> need to switch the delimiter dynamically depending on context. Related
> discussion is found here:
> http://markmail.org/message/loiqoej35evt2yvv
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.