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 Summary
Modifier and TypeMethodDescriptionvoidabort()Marks the currentServletRewriteas handled and terminates further handling.Get the currentServletRequest.Get the currentServletResponse.jakarta.servlet.ServletContextvoidhandled()Marks theServletRewriteas handled and terminates further handling.voidproceed()Marks theServletRewriteas handled and proceeds with the rest of the handlers.voidSet the currentFlowstate.Methods inherited from interface org.ocpsoft.rewrite.event.Rewrite
getEvaluatedRules, getFlow, getRewriteContext
-
Method Details
-
getRequest
IN getRequest()Get the currentServletRequest. -
getResponse
OUT getResponse()Get the currentServletResponse. -
getServletContext
jakarta.servlet.ServletContext getServletContext() -
abort
void abort()Marks the currentServletRewriteas 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 theServletRewriteas handled and proceeds with the rest of the handlers. Unless another handler callsabort(), this typically results in passing control of the request to the application viaFilterChain.doFilter(ServletRequest, ServletResponse)after all handlers have processed. -
handled
void handled()Marks theServletRewriteas handled and terminates further handling. Typically this results in passing control of the request to the application viaFilterChain.doFilter(ServletRequest, ServletResponse) -
setFlow
Set the currentFlowstate.
-