public abstract class UpdateBridge
extends java.lang.Object
Bridge
provide easier functionality for a servletModifier and Type | Field and Description |
---|---|
protected java.lang.String |
_desktopId |
protected javax.servlet.http.HttpServletRequest |
_request |
protected javax.servlet.http.HttpServletResponse |
_response |
protected javax.servlet.ServletContext |
_servletContext |
Constructor and Description |
---|
UpdateBridge(javax.servlet.ServletContext servletContext,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp,
java.lang.String desktopId) |
Modifier and Type | Method and Description |
---|---|
static org.zkoss.zk.ui.Desktop |
findDesktop(javax.servlet.ServletContext ctx,
javax.servlet.http.HttpServletRequest request,
java.lang.String desktopId) |
static org.zkoss.zk.ui.Desktop |
findDesktopIfAny(javax.servlet.ServletContext ctx,
javax.servlet.http.HttpServletRequest request,
java.lang.String desktopId)
find desktop in a servlet context for a request.
|
boolean |
hasDesktop() |
java.lang.String |
process()
Process the bridge, find the desktop and call
process(Desktop) , and return the zk ajax update script |
protected abstract void |
process(org.zkoss.zk.ui.Desktop desktop) |
protected final javax.servlet.ServletContext _servletContext
protected final javax.servlet.http.HttpServletRequest _request
protected final javax.servlet.http.HttpServletResponse _response
protected final java.lang.String _desktopId
public UpdateBridge(javax.servlet.ServletContext servletContext, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, java.lang.String desktopId)
public boolean hasDesktop()
public java.lang.String process()
process(Desktop)
, and return the zk ajax update scriptpublic static org.zkoss.zk.ui.Desktop findDesktopIfAny(javax.servlet.ServletContext ctx, javax.servlet.http.HttpServletRequest request, java.lang.String desktopId)
ctx
- request
- desktopId
- public static org.zkoss.zk.ui.Desktop findDesktop(javax.servlet.ServletContext ctx, javax.servlet.http.HttpServletRequest request, java.lang.String desktopId)
protected abstract void process(org.zkoss.zk.ui.Desktop desktop) throws java.lang.Exception
java.lang.Exception
Copyright © 2005-2010 Potix Corporation. All Rights Reserved.