@Override public String getRequestedSessionId() { return b.request.getRequestedSessionId(); }
@Override protected void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain filterChain) throws ServletException, IOException { final HttpSession session = request.getSession(); LOGGER.debug("Session info for url: {}, Current session: {}, Requested session id: {}", request.getRequestURI(), session.getId(), request.getRequestedSessionId()); filterChain.doFilter(request, response); }
/** * The default behavior of this method is to return getRequestedSessionId() * on the wrapped request object. */ public String getRequestedSessionId() { return this._getHttpServletRequest().getRequestedSessionId(); }
@Override public void doFilter(HttpServletRequest wrappedRequest, HttpServletResponse wrappedResponse) throws IOException { String actualId = wrappedRequest.getRequestedSessionId(); assertThat(actualId).isEqualTo(expectedId); } });
@Override public void doFilter(HttpServletRequest wrappedRequest, HttpServletResponse wrappedResponse) { assertThat(wrappedRequest.getRequestedSessionId()).isEqualTo(expectedId); assertThat(wrappedRequest.isRequestedSessionIdValid()).isFalse(); } });
key = StringUtils.upperCase(method.getName()); ImmutableList<String> keys = ImmutableList.of(StringUtils.join(limitAnnotation.prefix() + "_", key + "_" + request.getRequestedSessionId())); String luaScript = buildLuaScript(); RedisScript<Number> redisScript = new DefaultRedisScript<>(luaScript, Number.class);
putAttribute(attributes, "http.auth.type", request.getAuthType()); putAttribute(attributes, "http.requested.session.id", request.getRequestedSessionId()); final DispatcherType dispatcherType = request.getDispatcherType(); if (dispatcherType != null) {
@Test public void usesReadSessionIds() throws Exception { String sessionId = "sessionId"; given(this.cookieSerializer.readCookieValues(any(HttpServletRequest.class))) .willReturn(Collections.singletonList(sessionId)); given(this.sessionRepository.findById(anyString())) .willReturn(new MapSession(sessionId)); this.sessionRepositoryFilter.doFilter(this.request, this.response, this.chain); assertThat(getRequest().getRequestedSessionId()).isEqualTo(sessionId); }
WebSessionV2 cached = null; String sesId = httpReq.getRequestedSessionId();
@Override public String getRequestedSessionId() { return proxy.getRequestedSessionId(); }
public String getRequestedSessionId() { return delegate.getRequestedSessionId(); }
WebSession cached = null; String sesId = httpReq.getRequestedSessionId();
/** * The default behavior of this method is to return getRequestedSessionId() * on the wrapped request object. */ public String getRequestedSessionId() { return this._getHttpServletRequest().getRequestedSessionId(); }
/** * The default behavior of this method is to return getRequestedSessionId() * on the wrapped request object. */ public String getRequestedSessionId() { return getHttpServletRequest().getRequestedSessionId(); }
@Override public String getRequestedSessionId() { return getRequest().getRequestedSessionId(); }
@Override public String getRequestedSessionId() { return getRequest().getRequestedSessionId(); }
requestURI = request.getRequestURI(); requestURL = request.getRequestURL(); requestedSessionId = request.getRequestedSessionId(); schema = request.getScheme(); serverName = request.getServerName();
LOG.info( "getRequestedSessionId: " + request.getRequestedSessionId() ); LOG.info( "isRequestedSessionIdValid: " + request.isRequestedSessionIdValid() ); final PrintWriter out = response.getWriter(); out.println( KEY_REQUESTED_SESSION_ID + "=" + request.getRequestedSessionId() ); out.println( KEY_IS_REQUESTED_SESSION_ID_VALID + "=" + request.isRequestedSessionIdValid() );
/** * The default behavior of this method is to return getRequestedSessionId() * on the wrapped request object. */ @Override public String getRequestedSessionId() { return this._getHttpServletRequest().getRequestedSessionId(); }
@Override public String readAttribute(final HttpServerExchange exchange) { ServletRequestContext context = exchange.getAttachment(ServletRequestContext.ATTACHMENT_KEY); if (context != null) { ServletRequest req = context.getServletRequest(); if (req instanceof HttpServletRequest) { return ((HttpServletRequest) req).getRequestedSessionId(); } } return null; }