Package javax.servlet.http

Examples of javax.servlet.http.HttpServletRequest.removeAttribute()


        Ride r = HowaldTunnelStatisticsDao.retrieveRideInformations(rd);
        // Store ride informations in a request attribute
        req.setAttribute("THRIDE", r);
      } catch (LMBException e) {
        LOGGER.severe(e.getMessage());
        req.removeAttribute("THRIDE");
      }
    }

    // We continue the chain...
    chain.doFilter(req, resp);
View Full Code Here


      try {
        req.setAttribute(ATTRIBUTE_HANDLER, rp);
        chain.doFilter(req, rsp);
      } finally {
        req.removeAttribute(ATTRIBUTE_HANDLER);
      }
    }

    public void init(FilterConfig filterConfig) throws ServletException {
      // Nothing.
View Full Code Here

        if (filters.length == 0)
          service(req, response);
        else
          new Chain().doFilter(request, response);
      } finally {
        req.removeAttribute(ATTRIBUTE_HANDLER);
      }
    } else {
      chain.doFilter(request, response);
    }
  }
View Full Code Here

      try {
        req.setAttribute(ATTRIBUTE_HANDLER, rp);
        chain.doFilter(req, rsp);
      } finally {
        req.removeAttribute(ATTRIBUTE_HANDLER);
      }
    }

    public void init(FilterConfig filterConfig) throws ServletException {
      // Nothing.
View Full Code Here

      storeSessionId(sessionId, request, response);
    } else {
      log.debug("Session ID cookie is disabled.  No cookie has been set for new session with id {}", session.getId());
    }

    request.removeAttribute(ShiroHttpServletRequest.REFERENCED_SESSION_ID_SOURCE);
    request.setAttribute(ShiroHttpServletRequest.REFERENCED_SESSION_IS_NEW, Boolean.TRUE);
  }

  @Override
  public Serializable getSessionId(SessionKey key) {
View Full Code Here

        addCustomInfo( out );

        out.close();
        return;
      } finally {
        httpRequest.removeAttribute( FILTER_APPLIED );
      }
    } else {
      chain.doFilter( httpRequest, httpResponse );
      return;
    }
View Full Code Here

      }
      PentahoRequestContextHolder.setRequestContext( requestContext );
      chain.doFilter( httpRequest, httpResponse );
    } finally {
      PentahoRequestContextHolder.removeRequestContext();
      httpRequest.removeAttribute( FILTER_APPLIED );
      if ( logger.isDebugEnabled() ) {
        logger.debug( "PentahoRequestContextHolder now cleared, as request processing completed" );
      }
    }
View Full Code Here

      IPentahoSession pentahoSessionAfterChainExecution = PentahoSessionHolder.getSession();

      // Crucial removal of PentahoSessionHolder contents - do this before anything else.
      PentahoSessionHolder.removeSession();

      httpRequest.removeAttribute( FILTER_APPLIED );

      // storePentahoSessionInHttpSession() might already be called by the response wrapper
      // if something in the chain called sendError() or sendRedirect(). This ensures we only call it
      // once per request.
      if ( !responseWrapper.isSessionUpdateDone() ) {
View Full Code Here

            processor.process(request, response);
            context.responseComplete();
        } catch (Exception e) {
            log.error("Exception processing action event " + event, e);
        } finally {
            request.removeAttribute(Constants.ACTION_EVENT_KEY);
        }

    }

View Full Code Here

             */
        } else {
            if (isFine) {
                _logger.log(Level.FINE, CACHING_FILTER_PASS_THRU, new Object[]{request.getServletPath(), isEnabled});
            }
            request.removeAttribute(DefaultCacheHelper.ATTR_CACHING_FILTER_NAME);
            request.removeAttribute(CacheHelper.ATTR_CACHE_MAPPED_SERVLET_NAME);
            request.removeAttribute(CacheHelper.ATTR_CACHE_MAPPED_URL_PATTERN);

            // pass thru
            chain.doFilter(srequest, sresponse);
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.