public abstract class UpdateBridge extends Object implements Serializable
Bridge
provide easier functionality for a servletModifier and Type | Field and Description |
---|---|
protected 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,
String desktopId) |
Modifier and Type | Method and Description |
---|---|
static org.zkoss.zk.ui.Desktop |
findDesktop(javax.servlet.ServletContext ctx,
javax.servlet.http.HttpServletRequest request,
String desktopId) |
static org.zkoss.zk.ui.Desktop |
findDesktopIfAny(javax.servlet.ServletContext ctx,
javax.servlet.http.HttpServletRequest request,
String desktopId)
find desktop in a servlet context for a request.
|
boolean |
hasDesktop() |
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 String _desktopId
public UpdateBridge(javax.servlet.ServletContext servletContext, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, String desktopId)
public boolean hasDesktop()
public 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, String desktopId)
ctx
- request
- desktopId
- public static org.zkoss.zk.ui.Desktop findDesktop(javax.servlet.ServletContext ctx, javax.servlet.http.HttpServletRequest request, String desktopId)
Copyright © 2020. All rights reserved.