Package org.takes.tk

Class TkSmartRedirect

  • All Implemented Interfaces:
    Take

    public final class TkSmartRedirect
    extends TkWrap
    Take that redirects, passing all query arguments and the fragment through.

    The class is immutable and thread-safe.

    Since:
    1.9
    • Constructor Detail

      • TkSmartRedirect

        public TkSmartRedirect()
        Ctor.
      • TkSmartRedirect

        public TkSmartRedirect​(String location)
        Ctor.
        Parameters:
        location - Location to redirect to
      • TkSmartRedirect

        public TkSmartRedirect​(String location,
                               int code)
        Ctor.
        Parameters:
        location - Location to redirect to
        code - Redirection status code