Class FkHost

  • All Implemented Interfaces:
    Fork

    public final class FkHost
    extends FkWrap
    Fork by host name.

    Use this class in combination with TkFork, for example:

     Take take = new TkFork(
       new FkHost("www.example.com", new TkText("home")),
       new FkHost("doc.example.com", new TkText("doc is here"))
     );

    The class is immutable and thread-safe.

    Since:
    0.32
    See Also:
    TkFork
    • Constructor Detail

      • FkHost

        public FkHost​(String host,
                      Take take)
        Ctor.
        Parameters:
        host - Host
        take - Take to use