Package org.zkoss.web.servlet.xel
Interface RequestContext
-
- All Known Subinterfaces:
DspContext
- All Known Implementing Classes:
ExtendletDspContext
,ServletDspContext
public interface RequestContext
The context used to simplify the signatures of XEL function.It is designed to make the signature of XEL functions (see
ServletFns
) simpler. For example,ServletFns.getCurrentContext()
requires no argument, since it assumes the current context can be retrieved fromRequestContexts.getCurrent()
.- Since:
- 3.0.0
- Author:
- tomyeh
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.io.Writer
getOut()
Returns the writer, never null.javax.servlet.ServletRequest
getRequest()
Returns the request, or null if not available.javax.servlet.ServletResponse
getResponse()
Returns the response, or null if not available.javax.servlet.ServletContext
getServletContext()
Returns the request, or null if not available.VariableResolver
getVariableResolver()
Returns the variable resolver.
-
-
-
Method Detail
-
getOut
java.io.Writer getOut() throws java.io.IOException
Returns the writer, never null.- Throws:
java.io.IOException
-
getRequest
javax.servlet.ServletRequest getRequest()
Returns the request, or null if not available.
-
getResponse
javax.servlet.ServletResponse getResponse()
Returns the response, or null if not available.
-
getServletContext
javax.servlet.ServletContext getServletContext()
Returns the request, or null if not available.
-
getVariableResolver
VariableResolver getVariableResolver()
Returns the variable resolver.
-
-