Package org.orgama.shared.except

Examples of org.orgama.shared.except.OrgamaCoreException


    }
   
    HttpServletResponse response = responseProvider.get();
   
    if (response == null) {
      throw new OrgamaCoreException("Failed to get HttpResponse");
    }
   
    String signInUrl = authService.getSignInUrl();
   
    result.setRedirectUrl(signInUrl);
View Full Code Here


      }
     
      return null;
    }
    catch(Exception ex) {
      throw new OrgamaCoreException("Failed to get value for cookie: " +
          name, ex);
    }
  }
View Full Code Here

      String result = null;
      Cookie cookie = null;
      HttpServletResponse response = responseProvider.get();

      if (response.isCommitted()) {
        throw new OrgamaCoreException(
            "Cookies cannot be added to the response after the " +
            "response has been committed");
      }
     
      Cookie existingCookie = getCookieFromRequest(name);
     
      if (existingCookie == null) {
        cookie = new Cookie(name, value);
      }
      else {
        result = existingCookie.getValue();
        cookie = (Cookie)existingCookie.clone();
        cookie.setValue(value);
      }
     
      if (expirationDate != null) {
        cookie.setMaxAge((int)((expirationDate.getTime() -
            new Date().getTime()) / 1000L));
      }
     
      updatedCookies.put(name, cookie);
      response.addCookie(cookie);
     
      return result;
    }
    catch(OrgException ox) {
      throw ox;
    }
    catch(Exception ex) {
      throw new OrgamaCoreException(
          "Failed to set the value of cookie: " + name, ex);
    }
  }
View Full Code Here

    if (usersWithEmailAddress.size() > 1) {
     
      Logger.fatal("Mutiple Users exist with email address: " +
          emailAddress);
     
      throw new OrgamaCoreException("There was an error on the server " +
          "while getting information on the emailaddress you " +
          "entered.  Please try again later");
    }
   
    return usersWithEmailAddress.get(0);
View Full Code Here

          serverSideConstants.getAuthSessionKey(), authSession);

      return authSession;
    }
    catch(Exception ex) {
      throw new OrgamaCoreException(
          "Error getting Auth Session", ex);
    }
  }
View Full Code Here

TOP

Related Classes of org.orgama.shared.except.OrgamaCoreException

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.