Package org.takes.tk

Class TkEmpty

  • All Implemented Interfaces:
    Take

    public final class TkEmpty
    extends Object
    implements Take
    Empty take.

    This "take" always returns an instance of RsEmpty.

    The class is immutable and thread-safe.

    Since:
    0.1
    • Constructor Detail

      • TkEmpty

        public TkEmpty()
    • Method Detail

      • act

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