Interface IRequestHandler

  • All Known Subinterfaces:
    ILoggableRequestHandler, IRequestHandlerDelegate
    All Known Implementing Classes:
    EmptyRequestHandler, ErrorCodeRequestHandler, RedirectRequestHandler, TextRequestHandler
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface IRequestHandler
    A request handler is the base entity that is the subject of a request. Different types of request have different request handlers. For instance a request for a bookmarkable page differs from a request for a link on a previously rendered page, which in turn differs from a request for a shared resource.
    Author:
    Eelco Hillenius, Matej Knopp
    • Method Detail

      • respond

        void respond​(IRequestCycle requestCycle)
        Generates a response.
        Parameters:
        requestCycle - the current request cycle
      • detach

        default void detach​(IRequestCycle requestCycle)
        This method is called at the end of a request cycle to indicate that processing is done and that cleaning up of the subject(s) of this target may be done.
        Parameters:
        requestCycle - the current request cycle