Rob Winch
900b9174d3
Fix integration tests for JDK8
...
Update jacoco version.
Fixes gh-86
2014-12-22 16:37:06 -06:00
Rob Winch
0b403c3313
WebSocketRegistryListener handles null Session in SessionDisconnectEvent
...
Fixes gh-77
2014-12-12 15:26:07 -06:00
Rob Winch
977d1f474b
Add Default Expiration Option to MapSessionRepository
...
Fixes gh-73
2014-12-11 21:00:03 -06:00
Rob Winch
62ce30fb38
Remove @Override from interface method implementations
...
Issues: gh-71
2014-12-11 11:07:40 -06:00
Rob Winch
604ec4a50d
Session.getAttribute returns generic type
...
This prevents the need to cast the attribute values.
Fixes: gh-64
2014-12-11 11:05:33 -06:00
Rob Winch
9834e91c6d
Make JDK 1.5 compatible
...
Fixes gh-71
2014-11-26 08:49:58 -06:00
Rob Winch
d015f4c25a
Added Hazelcast Sample
...
Fixes gh-63
2014-11-17 16:53:05 -06:00
Rob Winch
f7a35e8da3
Remove dependency on Spring for MapSessionRepository
2014-11-17 14:58:12 -06:00
Rob Winch
495d19982d
Update CookieHttpSessionStrategy default parameter from u to _s
...
This both provides two things:
- more meaningful parameter name since it relates to session
- less likely to have a collission due to the _ prefix
gh-49
2014-11-17 13:26:47 -06:00
Rob Winch
a0805e8411
Add support for multiple sessions in a browser
...
Fixes gh-49
2014-11-16 22:13:27 -06:00
Rob Winch
9df0594573
Polish RedisOperationsSessionRepository ConnectionFactory Constructor
...
Add test and remove unnecessary comment.
Relates to gh-61
2014-11-14 21:12:41 -06:00
Steve Storey
0926df9c54
Force initialization of default values after creation of the default template
2014-11-14 21:10:56 -06:00
Rob Winch
b001580334
Removed path check when reading Cookie
...
The Cookie path is not passed to the server so there is no point to check
it.
Relates to gh-34
2014-11-12 21:37:02 -06:00
Rob Winch
25804f1725
Add WebSocket Support
...
Fixes gh-35
2014-11-12 21:13:23 -06:00
Rob Winch
04fcc393fd
MapSessionRepository handles expried sessions
...
Fixes gh-31
2014-11-12 17:37:37 -06:00
Rob Winch
46173f6486
Add SessionDestroyedEvent
...
Add support for SessionDestroyedEvent so that applications can detect
when a Spring Session has expired or explicitly deleted. This will
ensure that we can cleanup resources (i.e. WebSockets) can be cleaned up
when a Session ends.
Fixes gh-60
2014-11-12 17:37:30 -06:00
Rob Winch
6430e43f0e
Add Support for background task cleanup of RedisSession
...
Redis key expiration has no guarantees of when the expired key is
actually removed. In some instances, it is necessary to clean up resources
as soon as the sessione expires. For example, when an HTTP Session expires
we must ensure that the associated Web Socket sessions are closed.
Sessions are now mapped to their expiration times and a background task
is used to clean up the sessions as they expire.
Fixes gh-59
2014-11-12 17:30:50 -06:00
Rob Winch
dbc7018a11
Add ExpiringSession.isExpired
...
Fixes gh-58
2014-11-12 17:29:09 -06:00
Rob Winch
9cb5c75b4e
MapSessionTests tabs -> spaces
2014-11-12 17:27:39 -06:00
Rob Winch
1ad47fc7b1
Disable onCommit after first commit
...
At times OnCommittedResponseWrapper#onResponseCommitted() can be invoked
multiple times. For example, when flush is performed multiple times. This
means that the session can be written multiple times which is inefficient.
Instead, we should only save on the first update.
Fixes gh-57
2014-11-12 17:26:43 -06:00
Rob Winch
2a558885ad
Polish SessionRepository javadoc
...
Clarifies that getSession updates expiration, but it must be saved for
the expiration to be persisted.
2014-11-10 13:39:24 -06:00
Rob Winch
87e4dd8a0b
Allow configure HttpSessionStrategy
2014-10-27 13:45:32 -05:00
Rob Winch
97f3333194
SessionRepositoryFilter implements Ordered
...
Support Spring Boot applications by implementing Ordered.
2014-10-27 11:28:37 -05:00
Rob Winch
07ff3088bf
Change RedisOperationsSessionRepository.BOUNDED_HASH_KEY_PREFIX
...
Previously the key contained spring-security-sessions in it since the
project was originally going to be a part of Spring Security.
This commit moves it to spring:session:sessions: to better align with
being part of Spring Session
Fixes #46
2014-10-08 22:01:25 -05:00
Rob Winch
6a22a11187
Allow configure expires for EnableRedisHttpSession
2014-10-01 16:14:40 -05:00
Rob Winch
d026dd6821
Add AbstractHttpSessionApplicationInitializer
...
This reduces the boilerplate code required to register Spring Session with
the servlet container.
Fixes gh-43
2014-09-30 14:13:26 -05:00
Rob Winch
417174388b
Add EnableRedisHttpSession
...
Fixes gh-42
2014-09-30 13:40:15 -05:00
Rob Winch
750ae663fc
Create spring-session-data-redis pom
2014-09-30 10:09:47 -05:00
Rob Winch
0abbba0309
Polish Generics and Update Spring Version
...
We needed to update Spring Version to avoid
https://jira.spring.io/browse/SPR-11471
2014-09-30 09:07:46 -05:00
Rob Winch
6130a10d14
Remove Compiler Warnings
...
* Fixes Generics
* Remove unused imports
* Ignore serialize warnings in tests
Fixes gh-40
2014-09-29 22:00:46 -05:00
Rob Winch
876d466563
Remove JDK8 options from Javadoc
2014-09-29 21:04:06 -05:00
Rob Winch
83b902c86b
Add ext.javadocLinks
2014-09-29 21:00:31 -05:00
Rob Winch
ee4bd71855
Cleanup Maven Publishing
...
* Ensure that Maven Source Jars are published
* Ensure that Javadoc is published
* Ensure Maven pom includes required information for central
Fixes gh-36
2014-09-29 20:56:54 -05:00
Rob Winch
a4e003ebf1
HeaderSessionStrategy uses response.setHeader
...
Previously multiple headers might be outputed. This ensures that only a
single header is sent back with the session id.
Fixes #32
2014-08-01 15:24:50 -05:00
Rob Winch
2732a183f3
OnCommitedResponseWrapper commits when buffer exceeded
...
Fixes #26
2014-08-01 15:24:50 -05:00
Rob Winch
0d217c680a
OnCommittedResponseWrapper triggers commit when content length is reached
...
Fixes #26
2014-07-31 16:01:18 -05:00
Rob Winch
eb0da565f3
Reorder SessionRepository methods
...
Fixes #29
2014-07-30 12:10:56 -05:00
Rob Winch
903017285b
Create ExpiringSession which extends Session
...
This provides a better separation for consumers of the API. Most users are
likely not interested in checking to see if a session is expired so they
can focus on the Session API.
Fixes #28
2014-07-30 12:10:56 -05:00
Rob Winch
f1fa380bdd
Move session.web to session.web.http
...
Fixes #18
2014-07-30 12:10:56 -05:00
Rob Winch
699bdf94a0
Remove Sesion.setLastAccessedTime
...
Fixes #16
2014-07-30 12:10:56 -05:00
Rob Winch
cc71e1f567
Remove Serializable from Session
...
Fixes #15
2014-07-30 12:10:55 -05:00
Rob Winch
602359a5d8
Update Copyright dates
2014-07-08 14:28:55 -05:00
Rob Winch
8f2c692a92
Remove .project files
2014-07-08 13:34:04 -05:00
Rob Winch
68414fa7a7
Polish for Sonar violations
2014-07-08 13:32:48 -05:00
Rob Winch
ca42853c70
Remove source/target compatability
2014-07-08 13:26:47 -05:00
Rob Winch
f03dd6f168
Improve test coverage
2014-07-08 13:25:09 -05:00
Rob Winch
722082a95c
Add Sonar
2014-07-03 16:13:35 -05:00
Rob Winch
bad70bb0ca
Javadoc
2014-07-03 12:07:52 -05:00
Rob Winch
cafa62589d
Do not apply maven plugin to samples
2014-07-02 17:00:22 -05:00
Rob Winch
1acbca062a
Move src to separate project to support sample
2014-07-01 17:28:50 -05:00