Class SimpleRoutingSupport

  • All Implemented Interfaces:
    RoutingSupport

    public class SimpleRoutingSupport
    extends Object
    implements RoutingSupport
    Implements logic for parsing/appending routing information from/to a session identifier.
    Author:
    Paul Ferraro
    • Constructor Detail

      • SimpleRoutingSupport

        public SimpleRoutingSupport()
    • Method Detail

      • parse

        public Map.Entry<CharSequence,​CharSequence> parse​(CharSequence id)
        Description copied from interface: RoutingSupport
        Parses the routing information from the specified session identifier.
        Specified by:
        parse in interface RoutingSupport
        Parameters:
        id - the requested session identifier.
        Returns:
        a map entry containing the session ID and routing information as the key and value, respectively.
      • format

        public CharSequence format​(CharSequence sessionId,
                                   CharSequence routeId)
        Description copied from interface: RoutingSupport
        Formats the specified session identifier and route identifier into a single identifier.
        Specified by:
        format in interface RoutingSupport
        Parameters:
        sessionId - a session identifier
        routeId - a route identifier.
        Returns:
        a single identifier containing the specified session identifier and routing identifier.