Class TkRegex.Fake

  • All Implemented Interfaces:
    Take
    Enclosing interface:
    TkRegex

    public static final class TkRegex.Fake
    extends Object
    implements Take
    Fake of TkRegex as Take.
    Since:
    0.28
    • Constructor Detail

      • Fake

        public Fake​(TkRegex rgx,
                    String ptn,
                    CharSequence query)
        Ctor.
        Parameters:
        rgx - Original destination
        ptn - Pattern
        query - Query
      • Fake

        public Fake​(TkRegex rgx,
                    Matcher mtr)
        Ctor.
        Parameters:
        rgx - Original destination
        mtr - Matcher
    • Method Detail

      • act

        public Response act​(Request req)
                     throws Exception
        Description copied from interface: Take
        Convert request to response.
        Specified by:
        act in interface Take
        Parameters:
        req - Request to process
        Returns:
        Response
        Throws:
        Exception - If fails