Package com.google.gxp.base

Examples of com.google.gxp.base.GxpContext$Builder


   
    ExternalServiceKeyChain externalProperties = new ExternalServiceKeyChain(getServletContext());
    String currentUrl = req.getRequestURI();
    StartPageHtml.write(
        resp.getWriter(),
        new GxpContext(req.getLocale()),
        req.getRequestURI(),
        userLoginService.getUserDisplayName(),
        userLoginService.createLoginUrl(currentUrl),
        userLoginService.createLogoutUrl(currentUrl),
        lastVisitTimes,
View Full Code Here


      username = parts[0];
      userDomain = id.getDomain();
    }

    try {
      WaveClientPage.write(response.getWriter(), new GxpContext(request.getLocale()),
          getSessionJson(request.getSession(false)), getClientFlags(request),
          TopBar.getGxpClosure(username, userDomain), useSocketIO, analyticsAccount);
    } catch (IOException e) {
      LOG.warning("Failed to write GXP for request " + request, e);
      response.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);
View Full Code Here

    } catch (LoginException e) {
      String message = "The username or password you entered is incorrect.";
      String responseType = RESPONSE_STATUS_FAILED;
      LOG.info("User authentication failed: " + e.getLocalizedMessage());
      resp.setStatus(HttpServletResponse.SC_FORBIDDEN);
      AuthenticationPage.write(resp.getWriter(), new GxpContext(req.getLocale()), domain, message,
          analyticsAccount, responseType);
      return;
    }

    Subject subject = context.getSubject();
View Full Code Here

    if (user != null) {
      redirectLoggedInUser(req, resp);
    } else {
      resp.setStatus(HttpServletResponse.SC_OK);
      resp.setContentType("text/html;charset=utf-8");
      AuthenticationPage.write(resp.getWriter(), new GxpContext(req.getLocale()), domain, "",
          RESPONSE_STATUS_NONE, analyticsAccount);
    }
  }
View Full Code Here

   *
   * @param message non-null but optional message to show on the page
   */
  private void doRegisterGet(HttpServletRequest req, HttpServletResponse resp, String message)
      throws IOException {
    RobotRegistrationPage.write(resp.getWriter(), new GxpContext(req.getLocale()), domain, message,
        analyticsAccount);
    resp.setContentType("text/html");
    resp.setStatus(HttpServletResponse.SC_OK);
  }
View Full Code Here

   *
   * @param robotAccount the newly registered robot account.
   */
  private void onRegisterSuccess(HttpServletRequest req, HttpServletResponse resp,
      RobotAccountData robotAccount) throws IOException {
    RobotRegistrationSuccessPage.write(resp.getWriter(), new GxpContext(req.getLocale()),
        robotAccount.getId().getAddress(), robotAccount.getConsumerSecret(), analyticsAccount);
    resp.setContentType("text/html");
    resp.setStatus(HttpServletResponse.SC_OK);
  }
View Full Code Here

TOP

Related Classes of com.google.gxp.base.GxpContext$Builder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.