Interface ServletRewrite<IN extends jakarta.servlet.ServletRequest,OUT extends jakarta.servlet.ServletResponse>

All Superinterfaces:
Rewrite
All Known Subinterfaces:
HttpInboundServletRewrite, HttpOutboundServletRewrite, HttpServletRewrite, InboundServletRewrite<IN,OUT>, OutboundServletRewrite<IN,OUT,PAYLOADTYPE>

public interface ServletRewrite<IN extends jakarta.servlet.ServletRequest,OUT extends jakarta.servlet.ServletResponse> extends Rewrite
Author:
Lincoln Baxter, III
  • Method Details

    • getRequest

      IN getRequest()
      Get the current ServletRequest.
    • getResponse

      OUT getResponse()
      Get the current ServletResponse.
    • getServletContext

      jakarta.servlet.ServletContext getServletContext()
    • abort

      void abort()
      Marks the current ServletRewrite as handled and terminates further handling. Control of the request is not passed to the application; the request is terminated immediately following execution of the current handler.
    • proceed

      void proceed()
      Marks the ServletRewrite as handled and proceeds with the rest of the handlers. Unless another handler calls abort(), this typically results in passing control of the request to the application via FilterChain.doFilter(ServletRequest, ServletResponse) after all handlers have processed.
    • handled

      void handled()
      Marks the ServletRewrite as handled and terminates further handling. Typically this results in passing control of the request to the application via FilterChain.doFilter(ServletRequest, ServletResponse)
    • setFlow

      void setFlow(Flow flow)
      Set the current Flow state.