Class ForwardingRoute

  • All Implemented Interfaces:
    java.lang.Comparable<ForwardingRoute>

    public class ForwardingRoute
    extends java.lang.Object
    implements java.lang.Comparable<ForwardingRoute>
    Route which forwards all messages to a given site via a given route.
    Example: if site HF is reachable via NET1, and NET2 is not directly connected to HF, it needs to have a ForwardConfig with to="HF" and gateway="NET1". This means that a message to site HF will be forwarded to NET1, which then forwards it to HF.
    Note that 'to' can be a regular expression and matches(String) can be used to match a given site against it.
    Since:
    5.2.15
    Author:
    Bela Ban
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.String gateway  
      protected java.util.regex.Pattern p  
      protected java.lang.String to  
    • Constructor Summary

      Constructors 
      Constructor Description
      ForwardingRoute​(java.lang.String to, java.lang.String gateway)  
    • Field Detail

      • to

        protected java.lang.String to
      • gateway

        protected java.lang.String gateway
      • p

        protected java.util.regex.Pattern p
    • Constructor Detail

      • ForwardingRoute

        public ForwardingRoute​(java.lang.String to,
                               java.lang.String gateway)
    • Method Detail

      • to

        public java.lang.String to()
      • gateway

        public java.lang.String gateway()
      • matches

        public boolean matches​(java.lang.String site)
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object