|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.zkoss.zk.au.http.DHtmlUpdateServlet
public class DHtmlUpdateServlet
Used to receive command from the server and send result back to client.
Though it is called
DHtmlUpdateServlet, it is used to serve all kind of HTTP-based clients,
including ajax (HTML+Ajax), mil (Mobile Interactive Language),
and others (see Desktop.getDeviceType().
Init parameters:
AuProcessor).
The processor0 parameter specifies
the first AU processor, the processor1 parameter the second AU processor,
and so on./prefix=class
By default: there are two processors are associated with
"/upload" and "/view" (see addAuProcessor(org.zkoss.zk.ui.WebApp, java.lang.String, org.zkoss.zk.au.http.AuProcessor).
Also, "/web" is reserved. Don't associate to any AU processor.
| Constructor Summary | |
|---|---|
DHtmlUpdateServlet()
|
|
| Method Summary | |
|---|---|
AuProcessor |
addAuProcessor(java.lang.String prefix,
AuProcessor processor)
Adds an AU processor and associates it with the specified prefix. |
static AuProcessor |
addAuProcessor(WebApp wapp,
java.lang.String prefix,
AuProcessor processor)
Adds an AU processor and associates it with the specified prefix, even before DHtmlUpdateServlet is started. |
protected void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
protected void |
doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
AuProcessor |
getAuProcessor(java.lang.String prefix)
Returns the AU processor associated with the specified prefix, or null if no AU processor associated. |
static AuProcessor |
getAuProcessor(WebApp wapp,
java.lang.String prefix)
Returns the AU processor that is associated the specified prefix. |
protected long |
getLastModified(javax.servlet.http.HttpServletRequest request)
|
javax.servlet.ServletContext |
getServletContext()
|
static DHtmlUpdateServlet |
getUpdateServlet(WebApp wapp)
Returns the update servlet of the specified application, or null if not loaded yet. |
void |
init(javax.servlet.ServletConfig config)
|
protected void |
process(Session sess,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Process update requests from the client. |
| Methods inherited from class javax.servlet.http.HttpServlet |
|---|
doDelete, doHead, doOptions, doPut, doTrace, service, service |
| Methods inherited from class javax.servlet.GenericServlet |
|---|
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletInfo, getServletName, init, log, log |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DHtmlUpdateServlet()
| Method Detail |
|---|
public static DHtmlUpdateServlet getUpdateServlet(WebApp wapp)
public void init(javax.servlet.ServletConfig config)
throws javax.servlet.ServletException
init in interface javax.servlet.Servletinit in class javax.servlet.GenericServletjavax.servlet.ServletExceptionpublic javax.servlet.ServletContext getServletContext()
getServletContext in interface javax.servlet.ServletConfiggetServletContext in class javax.servlet.GenericServlet
public static final AuProcessor getAuProcessor(WebApp wapp,
java.lang.String prefix)
public static final AuProcessor addAuProcessor(WebApp wapp,
java.lang.String prefix,
AuProcessor processor)
DHtmlUpdateServlet is started.
Unlike addAuProcessor(String, AuProcessor), it can be called
even if the update servlet is not loaded yet (getUpdateServlet(org.zkoss.zk.ui.WebApp)
returns null).
If there was an AU processor associated with the same name, the the old AU processor will be replaced.
public AuProcessor addAuProcessor(java.lang.String prefix,
AuProcessor processor)
If there was an AU processor associated with the same name, the the old AU processor will be replaced.
If you want to add an Au processor, even before DHtmlUpdateServlet
is started, use addAuProcessor(WebApp, String, AuProcessor)
instead.
prefix - the prefix. It must start with "/", but it cannot be
"/" nor "/web" (which are reserved).processor - the AU processor (never null).
addAuProcessor(WebApp,String,AuProcessor)public AuProcessor getAuProcessor(java.lang.String prefix)
protected long getLastModified(javax.servlet.http.HttpServletRequest request)
getLastModified in class javax.servlet.http.HttpServlet
protected void doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
java.io.IOException
doGet in class javax.servlet.http.HttpServletjavax.servlet.ServletException
java.io.IOException
protected void doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
java.io.IOException
doPost in class javax.servlet.http.HttpServletjavax.servlet.ServletException
java.io.IOException
protected void process(Session sess,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
java.io.IOException
javax.servlet.ServletException
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||