Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ buildscript {
}
}

version "2.0.1"
version "2.0.2"
group "org.grails.plugins"

apply plugin:"eclipse"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import org.springframework.session.web.http.SessionRepositoryFilter;
import org.springframework.util.Assert;
import org.springframework.web.filter.OncePerRequestFilter;

import org.grails.plugins.springsession.web.http.SpringSessionConfigProperties;
import javax.servlet.FilterChain;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
Expand All @@ -20,6 +20,15 @@
public class HttpSessionSynchronizer extends OncePerRequestFilter {

private Boolean persistMutable;
SpringSessionConfigProperties springSessionConfigProperties = new SpringSessionConfigProperties();

private Boolean getPersistMutable(){
return springSessionConfigProperties.allowPersistMutable;
}

HttpSessionSynchronizer(SpringSessionConfigProperties springSessionConfigProperties){
this.springSessionConfigProperties = springSessionConfigProperties;
}


@Override
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package org.grails.plugins.springsession.web.http;

import grails.util.Holders;
import groovy.util.ConfigObject;

class SpringSessionConfigProperties{
int maxInactiveInterval;
String mapName;
protected Boolean allowPersistMutable;
public void setValues(int maxInactiveInterval, String mapName, Boolean allowPersistMutable) {
this.maxInactiveInterval = maxInactiveInterval;
this.mapName = mapName;
this.allowPersistMutable = allowPersistMutable;
}

}