Package io.keikaiex.ui
Class UpdateBridge
- java.lang.Object
-
- io.keikaiex.ui.UpdateBridge
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
JsonUpdateBridge
public abstract class UpdateBridge extends Object implements Serializable
A abstract util wrappingBridge
provide easier functionality for a servlet- Since:
- 3.0.0
- Author:
- dennis
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected String
_desktopId
protected javax.servlet.http.HttpServletRequest
_request
protected javax.servlet.http.HttpServletResponse
_response
protected javax.servlet.ServletContext
_servletContext
-
Constructor Summary
Constructors Constructor Description UpdateBridge(javax.servlet.ServletContext servletContext, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, String desktopId)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method 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 callprocess(Desktop)
, and return the zk ajax update scriptprotected abstract void
process(org.zkoss.zk.ui.Desktop desktop)
-
-
-
Field Detail
-
_servletContext
protected final javax.servlet.ServletContext _servletContext
-
_request
protected final javax.servlet.http.HttpServletRequest _request
-
_response
protected final javax.servlet.http.HttpServletResponse _response
-
_desktopId
protected final String _desktopId
-
-
Constructor Detail
-
UpdateBridge
public UpdateBridge(javax.servlet.ServletContext servletContext, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, String desktopId)
-
-
Method Detail
-
hasDesktop
public boolean hasDesktop()
-
process
public String process()
Process the bridge, find the desktop and callprocess(Desktop)
, and return the zk ajax update script
-
findDesktopIfAny
public 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.- Parameters:
ctx
-request
-desktopId
-- Returns:
-
findDesktop
public static org.zkoss.zk.ui.Desktop findDesktop(javax.servlet.ServletContext ctx, javax.servlet.http.HttpServletRequest request, String desktopId)
-
-