From d5df53f1dbfcbe274656cce4e7a2e064f8db1597 Mon Sep 17 00:00:00 2001 From: Luke Taylor Date: Fri, 12 Mar 2010 15:53:05 +0000 Subject: [PATCH] SEC-1439: Make getters and setters public on HttpRequestResponseHolder. Necessary to allow use of custom SecurityContextRepository. --- .../web/context/HttpRequestResponseHolder.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/web/src/main/java/org/springframework/security/web/context/HttpRequestResponseHolder.java b/web/src/main/java/org/springframework/security/web/context/HttpRequestResponseHolder.java index 64903af3b2..4153b53538 100644 --- a/web/src/main/java/org/springframework/security/web/context/HttpRequestResponseHolder.java +++ b/web/src/main/java/org/springframework/security/web/context/HttpRequestResponseHolder.java @@ -11,28 +11,28 @@ import javax.servlet.http.HttpServletResponse; * @author Luke Taylor * @since 3.0 */ -public class HttpRequestResponseHolder { - HttpServletRequest request; - HttpServletResponse response; +public final class HttpRequestResponseHolder { + private HttpServletRequest request; + private HttpServletResponse response; public HttpRequestResponseHolder(HttpServletRequest request, HttpServletResponse response) { this.request = request; this.response = response; } - HttpServletRequest getRequest() { + public HttpServletRequest getRequest() { return request; } - void setRequest(HttpServletRequest request) { + public void setRequest(HttpServletRequest request) { this.request = request; } - HttpServletResponse getResponse() { + public HttpServletResponse getResponse() { return response; } - void setResponse(HttpServletResponse response) { + public void setResponse(HttpServletResponse response) { this.response = response; } }