Examples of InvalidSessionException


Examples of lib.exceptions.InvalidSessionException

    PrintWriter out = response.getWriter();      

        try {
                
            if (! request.isAuthorized()) {
                throw new InvalidSessionException();
            }       
       
            Long specialityCode = (new Long(request.getInput("specialityCode"))).longValue();
           
            MedicalSpeciality speciality = facade.searchSpecialitiesByCode(specialityCode);
View Full Code Here

Examples of lib.exceptions.InvalidSessionException

    try {
     
          Symptom symptom;      
       
          if (! request.isAuthorized()) {
                throw new InvalidSessionException();
            }         
          symptom = (Symptom) request.get(UpdateSymptomSearch.SYMPTOM);
            String descricao = request.getInput("descricao");           
           
            symptom.setDescription(descricao);
View Full Code Here

Examples of lib.exceptions.InvalidSessionException

  public void execute() throws Exception {
    PrintWriter out = response.getWriter();

        try {
            if (! request.isAuthorized()) {
                throw new InvalidSessionException("Invalid Session! <br><a href=\""+Constants.SYSTEM_LOGIN+"\">Try again</a>");
            }           
                                          
            out.println(Library.getFileListReplace(keywords, newWords,Constants.FORM_PATH +"MenuEmployee.html"));
        } catch (Exception e) {
            out.println(HTMLCode.errorPageAdministrator(e.getMessage()));
View Full Code Here

Examples of lib.exceptions.InvalidSessionException

   
    try {
          MedicalSpeciality speciality;      
       
          if (! request.isAuthorized()) {
                throw new InvalidSessionException();
            }         
          speciality = (MedicalSpeciality) request.get(UpdateMedicalSpecialitySearch.SPECIALITY);
            String descricao = request.getInput("descricao");           
           
            speciality.setDescricao(descricao);
View Full Code Here

Examples of lib.exceptions.InvalidSessionException

    PrintWriter out = response.getWriter();
   
    try {
   
          if (! request.isAuthorized()) {
                throw new InvalidSessionException();
           
         
            Long numQueixa = (new Long(request.getInput("numQueixa"))).longValue();
            Complaint q = facade.searchComplaint(numQueixa);
            q.addObserver(facade);
View Full Code Here

Examples of lib.exceptions.InvalidSessionException

    String obsQueixa = request.getInput("obsQueixa");
    Complaint q = null;

    try {
      if (! request.isAuthorized()) {
        throw new InvalidSessionException();
      }

      q = (Complaint) request
          .get(UpdateComplaintSearch.QUEIXA);
     
View Full Code Here

Examples of org.apache.shiro.session.InvalidSessionException

     * @throws InvalidSessionException in all cases - used by the Session 'write' method implementations.
     */
    protected void throwImmutableException() throws InvalidSessionException {
        String msg = "This session is immutable and read-only - it cannot be altered.  This is usually because " +
                "the session has been stopped or expired already.";
        throw new InvalidSessionException(msg);
    }
View Full Code Here

Examples of org.apache.shiro.session.InvalidSessionException

    public long getTimeout() throws InvalidSessionException {
        try {
            return httpSession.getMaxInactiveInterval() * 1000;
        } catch (Exception e) {
            throw new InvalidSessionException(e);
        }
    }
View Full Code Here

Examples of org.apache.shiro.session.InvalidSessionException

    public void setTimeout(long maxIdleTimeInMillis) throws InvalidSessionException {
        try {
            int timeout = Long.valueOf(maxIdleTimeInMillis / 1000).intValue();
            httpSession.setMaxInactiveInterval(timeout);
        } catch (Exception e) {
            throw new InvalidSessionException(e);
        }
    }
View Full Code Here

Examples of org.apache.shiro.session.InvalidSessionException

        //just manipulate the session to update the access time:
        try {
            httpSession.setAttribute(TOUCH_OBJECT_SESSION_KEY, TOUCH_OBJECT_SESSION_KEY);
            httpSession.removeAttribute(TOUCH_OBJECT_SESSION_KEY);
        } catch (Exception e) {
            throw new InvalidSessionException(e);
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.