Package org.orgama.shared

Examples of org.orgama.shared.ICookieHandler


      if (authSession != null) {
        return authSession;
      }

      ICookieHandler coookieHandler = cookieHandlerProvider.get();

      String authSessionId = coookieHandler.getValue(
          serverSideConstants.getSessionCookieName());

      if (Strings.isNullOrEmpty(authSessionId)) {
        return null;
      }
View Full Code Here


    if (!success) {
      throw new AuthException("Failed to create auth session");
    }
   
    HttpSession session = sessionProvider.get();
    ICookieHandler cookieHandler = cookieHandlerProvider.get();
    session.setAttribute(serverSideConstants.getAuthSessionKey(), result);
    cookieHandler.setValue(serverSideConstants.getSessionCookieName(),
        result.getSessionId(), expirationDate);
   
    return result;
  }
View Full Code Here

  @Override
  public void close(AuthSession authSession) {
   
    Ofy.delete().entity(authSession).now();
    HttpSession session = sessionProvider.get();
    ICookieHandler cookieHandler = cookieHandlerProvider.get();
    session.removeAttribute(serverSideConstants.getAuthSessionKey());
    cookieHandler.deleteValue(serverSideConstants.getSessionCookieName());
   
  }
View Full Code Here

TOP

Related Classes of org.orgama.shared.ICookieHandler

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.