fix checkstyle
Signed-off-by: Greg Wilkins <gregw@webtide.com>
This commit is contained in:
parent
83463c2a23
commit
2564a08150
|
@ -25,7 +25,6 @@ import javax.servlet.http.HttpServletRequest;
|
||||||
import javax.servlet.http.HttpSessionAttributeListener;
|
import javax.servlet.http.HttpSessionAttributeListener;
|
||||||
import javax.servlet.http.HttpSessionBindingEvent;
|
import javax.servlet.http.HttpSessionBindingEvent;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* NullSessionCache
|
* NullSessionCache
|
||||||
*
|
*
|
||||||
|
@ -75,8 +74,7 @@ public class NullSessionCache extends AbstractSessionCache
|
||||||
if (store == null)
|
if (store == null)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (_writeThroughMode == WriteThroughMode.ALWAYS
|
if (_writeThroughMode == WriteThroughMode.ALWAYS || (_writeThroughMode == WriteThroughMode.NEW && session.isNew()))
|
||||||
|| (_writeThroughMode == WriteThroughMode.NEW && session.isNew()))
|
|
||||||
{
|
{
|
||||||
//ensure that a call to willPassivate doesn't result in a passivation
|
//ensure that a call to willPassivate doesn't result in a passivation
|
||||||
//listener removing an attribute, which would cause this listener to
|
//listener removing an attribute, which would cause this listener to
|
||||||
|
@ -128,11 +126,10 @@ public class NullSessionCache extends AbstractSessionCache
|
||||||
* (which is the default behaviour of AbstractSessionCache)
|
* (which is the default behaviour of AbstractSessionCache)
|
||||||
*/
|
*/
|
||||||
ON_EXIT
|
ON_EXIT
|
||||||
};
|
}
|
||||||
|
|
||||||
private WriteThroughMode _writeThroughMode = WriteThroughMode.ON_EXIT;
|
private WriteThroughMode _writeThroughMode = WriteThroughMode.ON_EXIT;
|
||||||
protected WriteThroughAttributeListener _listener = null;
|
protected WriteThroughAttributeListener _listener = null;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return the writeThroughMode
|
* @return the writeThroughMode
|
||||||
|
@ -142,14 +139,13 @@ public class NullSessionCache extends AbstractSessionCache
|
||||||
return _writeThroughMode;
|
return _writeThroughMode;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param writeThroughMode the writeThroughMode to set
|
* @param writeThroughMode the writeThroughMode to set
|
||||||
*/
|
*/
|
||||||
public void setWriteThroughMode(WriteThroughMode writeThroughMode)
|
public void setWriteThroughMode(WriteThroughMode writeThroughMode)
|
||||||
{
|
{
|
||||||
if (getSessionHandler() == null)
|
if (getSessionHandler() == null)
|
||||||
throw new IllegalStateException ("No SessionHandler");
|
throw new IllegalStateException("No SessionHandler");
|
||||||
|
|
||||||
//assume setting null is the same as ON_EXIT
|
//assume setting null is the same as ON_EXIT
|
||||||
if (writeThroughMode == null)
|
if (writeThroughMode == null)
|
||||||
|
@ -184,7 +180,6 @@ public class NullSessionCache extends AbstractSessionCache
|
||||||
_writeThroughMode = writeThroughMode;
|
_writeThroughMode = writeThroughMode;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param handler The SessionHandler related to this SessionCache
|
* @param handler The SessionHandler related to this SessionCache
|
||||||
*/
|
*/
|
||||||
|
@ -193,7 +188,6 @@ public class NullSessionCache extends AbstractSessionCache
|
||||||
super(handler);
|
super(handler);
|
||||||
super.setEvictionPolicy(EVICT_ON_SESSION_EXIT);
|
super.setEvictionPolicy(EVICT_ON_SESSION_EXIT);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see org.eclipse.jetty.server.session.SessionCache#shutdown()
|
* @see org.eclipse.jetty.server.session.SessionCache#shutdown()
|
||||||
|
|
Loading…
Reference in New Issue