Package com.avoka.fc.core.servlet
Class MockRequestContext
java.lang.Object
com.avoka.fc.core.servlet.RequestContext
com.avoka.fc.core.servlet.MockRequestContext
Provides a mock request context.
-
Constructor Summary
ConstructorDescriptionMockRequestContext
(jakarta.servlet.ServletContext context, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) Create a new mock request context instance -
Method Summary
Methods inherited from class com.avoka.fc.core.servlet.RequestContext
bindThreadRequestContext, getRequest, getResponse, getServletContext, getSession, getThreadRequest, getThreadRequestContext, toString
-
Constructor Details
-
MockRequestContext
public MockRequestContext(jakarta.servlet.ServletContext context, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) Create a new mock request context instance- Parameters:
context
- the servlet contextrequest
- the HTTP servlet requestresponse
- the HTTP servlet response
-