|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.zkoss.zk.ui.http.WebManager
public class WebManager
A bridge bewteen Web server and ZK.
Each Web application that uses ZK will have an independent instance
of WebManager.
| Method Summary | |
|---|---|
static void |
addActivationListener(javax.servlet.ServletContext ctx,
WebManagerActivationListener listener)
Register a listener to the specified context such that it will be invoked if the corresponding WebManager is created. |
void |
destroy()
|
org.zkoss.web.util.resource.ClassWebResource |
getClassWebResource()
Returns the handler to retrieve resource from class path, under /web. |
Desktop |
getDesktop(Session sess,
javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
java.lang.String path,
boolean autocreate)
Returns the desktop of the specified request, or null if not found and autocreate is false. |
Desktop |
getDesktop(Session sess,
javax.servlet.ServletRequest request,
java.lang.String path,
boolean autocreate)
Deprecated. As of release 3.0.0, replaced by getDesktop(Session,ServletRequest,ServletResponse,String,boolean). |
static java.lang.Object |
getRequestLocal(javax.servlet.ServletRequest request,
java.lang.String name)
Returns the value of the specified attribute in the request. |
static Session |
getSession(javax.servlet.ServletContext ctx,
javax.servlet.http.HttpServletRequest request)
Returns the session. |
WebApp |
getWebApp()
Returns the Web application. |
static WebManager |
getWebManager(javax.servlet.ServletContext ctx)
Returns the Web manager of the specified context. |
static void |
setDesktop(javax.servlet.http.HttpServletRequest request,
Desktop desktop)
Sets the desktop to the specified request. |
static void |
setRequestLocal(javax.servlet.ServletRequest request,
java.lang.String name,
java.lang.Object value)
Sets the value of the specified attribute in the request. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public void destroy()
public final org.zkoss.web.util.resource.ClassWebResource getClassWebResource()
public final WebApp getWebApp()
public static java.lang.Object getRequestLocal(javax.servlet.ServletRequest request,
java.lang.String name)
name - the attribute's name
public static void setRequestLocal(javax.servlet.ServletRequest request,
java.lang.String name,
java.lang.Object value)
name - the attribute's namevalue - the attribute's value
public static final void addActivationListener(javax.servlet.ServletContext ctx,
WebManagerActivationListener listener)
WebManager is created.
Note: if the Web manager is created already, WebManagerActivationListener.didActivate(org.zkoss.zk.ui.http.WebManager)
will be invoked immediately before this method returns.
public static final WebManager getWebManager(javax.servlet.ServletContext ctx)
UiException - if not found (i.e., not initialized
properly)
public static final Session getSession(javax.servlet.ServletContext ctx,
javax.servlet.http.HttpServletRequest request)
public Desktop getDesktop(Session sess,
javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
java.lang.String path,
boolean autocreate)
path - the path of the ZUML page.autocreate - whether to create one if not found
public Desktop getDesktop(Session sess,
javax.servlet.ServletRequest request,
java.lang.String path,
boolean autocreate)
getDesktop(Session,ServletRequest,ServletResponse,String,boolean).
public static void setDesktop(javax.servlet.http.HttpServletRequest request,
Desktop desktop)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||