public class AuRedirect extends java.lang.Object implements AuExtension, WebAppInit
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
REDIRECT_URL_PARAMETER |
static java.lang.String |
URI_PREFIX |
Constructor and Description |
---|
AuRedirect() |
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Destroys the AU extension.
|
void |
init(DHtmlUpdateServlet servlet)
Initializes the AU extension.
|
void |
init(WebApp wapp)
Called when a ZK application is created and initialized.
|
void |
service(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.String pi)
Called by ZK to process the AU request.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
charsetSetup
public static final java.lang.String URI_PREFIX
public static final java.lang.String REDIRECT_URL_PARAMETER
public void init(WebApp wapp) throws java.lang.Exception
WebAppInit
You could
retrieve the servlet context by WebApp.getServletContext()
init
in interface WebAppInit
java.lang.Exception
public void init(DHtmlUpdateServlet servlet) throws javax.servlet.ServletException
AuExtension
DHtmlUpdateServlet
.init
in interface AuExtension
javax.servlet.ServletException
public void destroy()
AuExtension
DHtmlUpdateServlet
,
or when DHtmlUpdateServlet
is being destroyed.destroy
in interface AuExtension
public void service(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.String pi) throws javax.servlet.ServletException, java.io.IOException
AuExtension
To retrieve the http session, use HttpServletRequest.getSession().
To retrieve the ZK session, use
Sessions.getCurrent(boolean)
.
service
in interface AuExtension
request
- the request (never null).response
- the response (never null).pi
- the path info. It includes the prefix when the Au processor
is associated (see DHtmlUpdateServlet.addAuExtension(org.zkoss.zk.ui.WebApp, java.lang.String, org.zkoss.zk.au.http.AuExtension)
.
For example, if an AU processor is associated with "/upload", then
pi must start with "/upload". Note: it might end with other string
depending on the URI you generated to the client.javax.servlet.ServletException
java.io.IOException
Copyright © 2005-2023 Potix Corporation. All Rights Reserved.