Uploaded image for project: 'MINA'
  1. MINA
  2. DIRMINA-122

Initial IoFilterChain parameter in IoAcceptor.bind(...)

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 0.8.0
    • 0.9.0
    • None
    • None

    Description

      There is no way to specify the initial IoFilterChain when a user binds his or her IoHandler. Users could add their filters in sessionCreated(), but it is sometimes inefficient because the filter should be added to all sessions. So we need these additional methods:

      • IoAcceptor.bind(SocketAddress, IoHandler, IoFilterChainFactory)
      • IoAcceptor.bind(SocketAddress, IoHandler, IoFilterChain)

      and two types:

      public interface IoFilterChainFactory
      {
      IoFilterChain getFilterChain();
      }

      public class <TBD> implements IoFilterChain {
      ....
      }

      Perhaps the second method can be implemented as an indirect call to the first method.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            trustin Trustin Lee
            trustin Trustin Lee
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment