Class TkPrevious

  • All Implemented Interfaces:
    org.takes.Take

    public final class TkPrevious
    extends Object
    implements org.takes.Take
    Take that redirects to previous URL if it's different of current

    The class is immutable and thread-safe.

    Since:
    0.1
    • Constructor Detail

      • TkPrevious

        public TkPrevious​(org.takes.Take take)
        Ctor.
        Parameters:
        take - Original take
    • Method Detail

      • act

        public org.takes.Response act​(org.takes.Request req)
                               throws Exception
        Specified by:
        act in interface org.takes.Take
        Throws:
        Exception