Package net.ontopia.utils.ontojsp
Class FakePageContext
java.lang.Object
jakarta.servlet.jsp.JspContext
jakarta.servlet.jsp.PageContext
net.ontopia.utils.ontojsp.FakePageContext
public class FakePageContext
extends jakarta.servlet.jsp.PageContext
INTERNAL: Fake the PageContext, needed for execution of a JSP.
-
Field Summary
Fields inherited from class jakarta.servlet.jsp.PageContext
APPLICATION, APPLICATION_SCOPE, CONFIG, EXCEPTION, OUT, PAGE, PAGE_SCOPE, PAGECONTEXT, REQUEST, REQUEST_SCOPE, RESPONSE, SESSION, SESSION_SCOPE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindAttribute(String name) voidgetAttribute(String name) getAttribute(String name, int scope) getAttributeNamesInScope(int scope) intgetAttributesScope(String name) jakarta.el.ELContextjakarta.servlet.jsp.JspWritergetOut()getPage()jakarta.servlet.ServletRequestjakarta.servlet.ServletResponsejakarta.servlet.Servletjakarta.servlet.ServletConfigjakarta.servlet.ServletContextjakarta.servlet.http.HttpSessionvoidvoidvoidvoidvoidinitialize(jakarta.servlet.Servlet servlet, jakarta.servlet.ServletRequest request, jakarta.servlet.ServletResponse response, String errorPageURL, boolean needsSession, int bufferSize, boolean autoFlush) jakarta.servlet.jsp.JspWriterpopBody()jakarta.servlet.jsp.tagext.BodyContentpushBody()voidrelease()voidremoveAttribute(String name) voidremoveAttribute(String name, int scope) voidsetAttribute(String name, Object value) voidsetAttribute(String name, Object value, int scope) voidsetAttributes(Map<String, Object> attrs) voidsetRequest(jakarta.servlet.ServletRequest request) voidsetServletConfig(jakarta.servlet.ServletConfig config) voidsetSession(jakarta.servlet.http.HttpSession session) Methods inherited from class jakarta.servlet.jsp.PageContext
getErrorDataMethods inherited from class jakarta.servlet.jsp.JspContext
pushBody
-
Constructor Details
-
FakePageContext
-
FakePageContext
-
FakePageContext
-
-
Method Details
-
setAttributes
-
setRequest
public void setRequest(jakarta.servlet.ServletRequest request) -
setServletConfig
public void setServletConfig(jakarta.servlet.ServletConfig config) -
setSession
public void setSession(jakarta.servlet.http.HttpSession session) -
initialize
public void initialize(jakarta.servlet.Servlet servlet, jakarta.servlet.ServletRequest request, jakarta.servlet.ServletResponse response, String errorPageURL, boolean needsSession, int bufferSize, boolean autoFlush) throws IOException, IllegalStateException, IllegalArgumentException - Specified by:
initializein classjakarta.servlet.jsp.PageContext- Throws:
IOExceptionIllegalStateExceptionIllegalArgumentException
-
release
public void release()- Specified by:
releasein classjakarta.servlet.jsp.PageContext
-
getAttribute
- Specified by:
getAttributein classjakarta.servlet.jsp.JspContext
-
getAttribute
- Specified by:
getAttributein classjakarta.servlet.jsp.JspContext
-
setAttribute
- Specified by:
setAttributein classjakarta.servlet.jsp.JspContext
-
setAttribute
- Specified by:
setAttributein classjakarta.servlet.jsp.JspContext
-
removeAttribute
- Specified by:
removeAttributein classjakarta.servlet.jsp.JspContext
-
getAttributesScope
- Specified by:
getAttributesScopein classjakarta.servlet.jsp.JspContext
-
findAttribute
- Specified by:
findAttributein classjakarta.servlet.jsp.JspContext
-
getAttributeNamesInScope
- Specified by:
getAttributeNamesInScopein classjakarta.servlet.jsp.JspContext
-
removeAttribute
- Specified by:
removeAttributein classjakarta.servlet.jsp.JspContext
-
getOut
public jakarta.servlet.jsp.JspWriter getOut()- Specified by:
getOutin classjakarta.servlet.jsp.JspContext
-
getSession
public jakarta.servlet.http.HttpSession getSession()- Specified by:
getSessionin classjakarta.servlet.jsp.PageContext
-
getServlet
public jakarta.servlet.Servlet getServlet() -
getServletConfig
public jakarta.servlet.ServletConfig getServletConfig()- Specified by:
getServletConfigin classjakarta.servlet.jsp.PageContext
-
getServletContext
public jakarta.servlet.ServletContext getServletContext()- Specified by:
getServletContextin classjakarta.servlet.jsp.PageContext
-
getRequest
public jakarta.servlet.ServletRequest getRequest()- Specified by:
getRequestin classjakarta.servlet.jsp.PageContext
-
getResponse
public jakarta.servlet.ServletResponse getResponse()- Specified by:
getResponsein classjakarta.servlet.jsp.PageContext
-
getException
- Specified by:
getExceptionin classjakarta.servlet.jsp.PageContext
-
getPage
- Specified by:
getPagein classjakarta.servlet.jsp.PageContext
-
include
- Specified by:
includein classjakarta.servlet.jsp.PageContext- Throws:
jakarta.servlet.ServletExceptionIOException
-
forward
- Specified by:
forwardin classjakarta.servlet.jsp.PageContext- Throws:
jakarta.servlet.ServletExceptionIOException
-
pushBody
public jakarta.servlet.jsp.tagext.BodyContent pushBody()- Overrides:
pushBodyin classjakarta.servlet.jsp.PageContext
-
popBody
public jakarta.servlet.jsp.JspWriter popBody()- Overrides:
popBodyin classjakarta.servlet.jsp.JspContext
-
handlePageException
- Specified by:
handlePageExceptionin classjakarta.servlet.jsp.PageContext- Throws:
IOExceptionjakarta.servlet.ServletException
-
handlePageException
- Specified by:
handlePageExceptionin classjakarta.servlet.jsp.PageContext- Throws:
IOExceptionjakarta.servlet.ServletException
-
include
public void include(String relativeUrlPath, boolean flush) throws jakarta.servlet.ServletException, IOException - Specified by:
includein classjakarta.servlet.jsp.PageContext- Throws:
jakarta.servlet.ServletExceptionIOException
-
getELContext
public jakarta.el.ELContext getELContext()- Specified by:
getELContextin classjakarta.servlet.jsp.JspContext
-