Package org.zkoss.web.servlet.dsp
Class ExtendletDspContext
java.lang.Object
org.zkoss.web.servlet.dsp.ServletDspContext
org.zkoss.web.servlet.dsp.ExtendletDspContext
- All Implemented Interfaces:
DspContext,RequestContext
Extendlet-based DSP context.
- Since:
- 3.5.2
- Author:
- tomyeh
-
Constructor Summary
ConstructorsConstructorDescriptionExtendletDspContext(ExtendletContext webctx, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, String path, Writer out) -
Method Summary
Methods inherited from class org.zkoss.web.servlet.dsp.ServletDspContext
getLocator, getOut, getRequest, getResponse, getServletContext, getVariableResolver, isIncluded, setContentType, setOut
-
Constructor Details
-
ExtendletDspContext
public ExtendletDspContext(ExtendletContext webctx, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, String path, Writer out)
-
-
Method Details
-
encodeURL
Description copied from interface:DspContextReturns the encoded URL. The returned URL is also encoded with HttpServletResponse.encodeURL.- Specified by:
encodeURLin interfaceDspContext- Overrides:
encodeURLin classServletDspContext- Parameters:
uri- it must be empty or starts with "/". It might contain "*" for current browser code and Locale.- Returns:
- the complete URL (excluding the machine name). It includes the context path and the servlet to interpret this extended resource.
- Throws:
jakarta.servlet.ServletExceptionIOException
-
include
Description copied from interface:DspContextIncludes the specified URI and render the result to the specified output.- Specified by:
includein interfaceDspContext- Overrides:
includein classServletDspContext- Parameters:
uri- the URI to include. It is OK to relevant (without leading '/'). If starts with "/", the context path of request is assumed. To reference to foreign context, use "~ctx/" where ctx is the context path of the foreign context (without leading '/').params- a map of parameters, or null to ignore. The map is passed thru the request attribute called arg.- Throws:
jakarta.servlet.ServletExceptionIOException
-