package org.springframework.security.web.context;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * Used to pass the incoming request to {@link SecurityContextRepository#loadContext(HttpRequestResponseHolder)},
 * allowing the method to swap the request for a wrapped version, as well as returning the <tt>SecurityContext</tt>
 * value.
 *
 * @author Luke Taylor
 * @since 3.0
 */
public class HttpRequestResponseHolder {
    HttpServletRequest request;
    HttpServletResponse response;

    public HttpRequestResponseHolder(HttpServletRequest request, HttpServletResponse response) {
        this.request = request;
        this.response = response;
    }

    HttpServletRequest getRequest() {
        return request;
    }

    void setRequest(HttpServletRequest request) {
        this.request = request;
    }

    HttpServletResponse getResponse() {
        return response;
    }

    void setResponse(HttpServletResponse response) {
        this.response = response;
    }
}

@@ -433,16 +433,22 @@
 %0Apublic 
+final 
 class Ht
@@ -473,24 +473,32 @@
 older %7B%0A    
+private 
 HttpServletR
@@ -513,24 +513,32 @@
 equest;%0A    
+private 
 HttpServletR
@@ -722,32 +722,39 @@
 nse;%0A    %7D%0A%0A    
+public 
 HttpServletReque
@@ -798,32 +798,39 @@
 est;%0A    %7D%0A%0A    
+public 
 void setRequest(
@@ -902,16 +902,23 @@
  %7D%0A%0A    
+public 
 HttpServ
@@ -981,16 +981,23 @@
  %7D%0A%0A    
+public 
 void set

Make getters and setters public on HttpRequestResponseHolder.