Class UpdateBridge

    • 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 call process(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)
      • process

        protected abstract void process​(org.zkoss.zk.ui.Desktop desktop)
                                 throws Exception
        Throws:
        Exception