Package org.directwebremoting

Examples of org.directwebremoting.WebContext


    ssoCookie.setMaxAge(0);
    ssoCookie.setPath("/");
    WebContextFactory.get().getHttpServletResponse().addCookie(ssoCookie);         
  }
  public static String getUserSSOId() {
    WebContext webContext = WebContextFactory.get();

    String ssoId = null;
    HttpServletRequest  req = webContext.getHttpServletRequest();
    if (req != null) {
      HttpSession ss = req.getSession();
      if (ss != null) {
        ssoId = (String)ss.getAttribute(SSOConstants.SSO_SSO_ID);
        if (ssoId != null) {
          return ssoId;
        }
      }
    }

    return SSOHelper.getCookie( webContext.getHttpServletRequest(), SSOConstants.SSO_SSO_ID);
  }
View Full Code Here


  }
  public static void setSSOCookie(String id_, String ssoId_) {
    if (ssoId_ == null) {
      return;
    }
    WebContext webContext = WebContextFactory.get();

    Cookie ssoCookie = new Cookie(SSOConstants.SSO_SSO_ID, ssoId_);
    ssoCookie.setMaxAge(-1); // when browser is closed.
    ssoCookie.setPath("/");
    webContext.getHttpServletResponse().addCookie(ssoCookie);

    HttpServletRequest  req = webContext.getHttpServletRequest();
    if (req != null) {
      HttpSession ss = req.getSession(true);
      ss.setAttribute(SSOConstants.SSO_ID, id_);
      ss.setAttribute(SSOConstants.SSO_SSO_ID, ssoId_);
    }
View Full Code Here

    private PluginInstaller pluginInstaller = null;

    @RemoteMethod
    public void getProgressInfo(Integer downloadKey) throws Exception {
        // DWR objects
        WebContext wctx = WebContextFactory.get();
        ScriptSession scriptSession = wctx.getScriptSession();
        //DownloadResults results = getPluginInstaller().checkOnInstall(downloadKey);
        ScriptProxy scriptProxy = new ScriptProxy();
        scriptProxy.addScriptSession(scriptSession);
       
        PluginInstallerGBean pluginInstallerInternal = (PluginInstallerGBean) getPluginInstaller();
View Full Code Here

TOP

Related Classes of org.directwebremoting.WebContext

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.