Move session.web to session.web.http

Fixes #18
This commit is contained in:
Rob Winch
2014-07-30 11:16:49 -05:00
parent 699bdf94a0
commit f1fa380bdd
13 changed files with 20 additions and 13 deletions

View File

@@ -24,7 +24,7 @@ import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.data.redis.serializer.StringRedisSerializer;
import org.springframework.session.Session;
import org.springframework.session.data.redis.RedisOperationsSessionRepository;
import org.springframework.session.web.SessionRepositoryFilter;
import org.springframework.session.web.http.SessionRepositoryFilter;
import redis.clients.jedis.Protocol;
import redis.embedded.RedisServer;

View File

@@ -20,6 +20,7 @@ import org.springframework.data.redis.core.RedisOperations;
import org.springframework.session.MapSession;
import org.springframework.session.Session;
import org.springframework.session.SessionRepository;
import org.springframework.session.web.http.SessionRepositoryFilter;
import org.springframework.util.Assert;
import java.util.HashMap;
@@ -31,7 +32,7 @@ import java.util.concurrent.TimeUnit;
* <p>
* A {@link org.springframework.session.SessionRepository} that is implemented using Spring Data's
* {@link org.springframework.data.redis.core.RedisOperations}. In a web environment, this is typically used in
* combination with {@link org.springframework.session.web.SessionRepositoryFilter}.
* combination with {@link SessionRepositoryFilter}.
* </p>
*
* <h2>Creating a new instance</h2>

View File

@@ -13,7 +13,7 @@
* License for the specific language governing permissions and limitations under
* the License.
*/
package org.springframework.session.web;
package org.springframework.session.web.http;
import org.springframework.session.Session;
import org.springframework.util.Assert;

View File

@@ -13,7 +13,7 @@
* License for the specific language governing permissions and limitations under
* the License.
*/
package org.springframework.session.web;
package org.springframework.session.web.http;
import org.springframework.session.Session;
import org.springframework.util.Assert;

View File

@@ -13,7 +13,7 @@
* License for the specific language governing permissions and limitations under
* the License.
*/
package org.springframework.session.web;
package org.springframework.session.web.http;
import org.springframework.session.Session;

View File

@@ -10,7 +10,7 @@
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License.
*/
package org.springframework.session.web;
package org.springframework.session.web.http;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

View File

@@ -13,7 +13,7 @@
* License for the specific language governing permissions and limitations under
* the License.
*/
package org.springframework.session.web;
package org.springframework.session.web.http;
import javax.servlet.*;
import javax.servlet.http.HttpServletRequest;

View File

@@ -13,7 +13,7 @@
* License for the specific language governing permissions and limitations under
* the License.
*/
package org.springframework.session.web;
package org.springframework.session.web.http;
import org.springframework.session.Session;
import org.springframework.session.SessionRepository;

View File

@@ -1,4 +1,4 @@
package org.springframework.session.web;
package org.springframework.session.web.http;
import static org.fest.assertions.Assertions.*;
@@ -8,6 +8,7 @@ import org.springframework.mock.web.MockHttpServletRequest;
import org.springframework.mock.web.MockHttpServletResponse;
import org.springframework.session.MapSession;
import org.springframework.session.Session;
import org.springframework.session.web.http.CookieHttpSessionStrategy;
import javax.servlet.http.Cookie;

View File

@@ -1,4 +1,4 @@
package org.springframework.session.web;
package org.springframework.session.web.http;
import org.junit.Before;
import org.junit.Test;
@@ -6,6 +6,7 @@ import org.springframework.mock.web.MockHttpServletRequest;
import org.springframework.mock.web.MockHttpServletResponse;
import org.springframework.session.MapSession;
import org.springframework.session.Session;
import org.springframework.session.web.http.HeaderHttpSessionStrategy;
import static org.fest.assertions.Assertions.assertThat;

View File

@@ -1,4 +1,4 @@
package org.springframework.session.web;
package org.springframework.session.web.http;
import java.io.PrintWriter;
import java.util.Locale;
@@ -8,6 +8,7 @@ import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.mockito.runners.MockitoJUnitRunner;
import org.springframework.session.web.http.OnCommittedResponseWrapper;
import javax.servlet.ServletOutputStream;
import javax.servlet.http.HttpServletResponse;

View File

@@ -1,10 +1,11 @@
package org.springframework.session.web;
package org.springframework.session.web.http;
import org.junit.Before;
import org.junit.Test;
import org.springframework.mock.web.MockFilterChain;
import org.springframework.mock.web.MockHttpServletRequest;
import org.springframework.mock.web.MockHttpServletResponse;
import org.springframework.session.web.http.OncePerRequestFilter;
import javax.servlet.FilterChain;
import javax.servlet.ServletException;

View File

@@ -1,4 +1,4 @@
package org.springframework.session.web;
package org.springframework.session.web.http;
import org.junit.Before;
import org.junit.Test;
@@ -7,6 +7,8 @@ import org.springframework.mock.web.MockHttpServletRequest;
import org.springframework.mock.web.MockHttpServletResponse;
import org.springframework.session.MapSessionRepository;
import org.springframework.session.SessionRepository;
import org.springframework.session.web.http.OncePerRequestFilter;
import org.springframework.session.web.http.SessionRepositoryFilter;
import javax.servlet.FilterChain;
import javax.servlet.ServletContext;