Issue #2495 Make FileSessionDataStore private methods protected
This commit is contained in:
parent
d25fa7d20c
commit
394c6313b3
|
@ -57,13 +57,11 @@ import org.eclipse.jetty.util.log.Logger;
|
||||||
@ManagedObject
|
@ManagedObject
|
||||||
public class FileSessionDataStore extends AbstractSessionDataStore
|
public class FileSessionDataStore extends AbstractSessionDataStore
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
private final static Logger LOG = Log.getLogger("org.eclipse.jetty.server.session");
|
private final static Logger LOG = Log.getLogger("org.eclipse.jetty.server.session");
|
||||||
private File _storeDir;
|
protected File _storeDir;
|
||||||
private boolean _deleteUnrestorableFiles = false;
|
protected boolean _deleteUnrestorableFiles = false;
|
||||||
private Map<String,String> _sessionFileMap = new ConcurrentHashMap<>();
|
protected Map<String,String> _sessionFileMap = new ConcurrentHashMap<>();
|
||||||
private String _contextString;
|
protected String _contextString;
|
||||||
protected long _lastSweepTime = 0L;
|
protected long _lastSweepTime = 0L;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -516,7 +514,7 @@ public class FileSessionDataStore extends AbstractSessionDataStore
|
||||||
* @param data the info of the session
|
* @param data the info of the session
|
||||||
* @throws IOException
|
* @throws IOException
|
||||||
*/
|
*/
|
||||||
private void save(OutputStream os, String id, SessionData data) throws IOException
|
protected void save(OutputStream os, String id, SessionData data) throws IOException
|
||||||
{
|
{
|
||||||
DataOutputStream out = new DataOutputStream(os);
|
DataOutputStream out = new DataOutputStream(os);
|
||||||
out.writeUTF(id);
|
out.writeUTF(id);
|
||||||
|
@ -657,7 +655,7 @@ public class FileSessionDataStore extends AbstractSessionDataStore
|
||||||
* @return the session data
|
* @return the session data
|
||||||
* @throws Exception
|
* @throws Exception
|
||||||
*/
|
*/
|
||||||
private SessionData load (InputStream is, String expectedId)
|
protected SessionData load (InputStream is, String expectedId)
|
||||||
throws Exception
|
throws Exception
|
||||||
{
|
{
|
||||||
String id = null; //the actual id from inside the file
|
String id = null; //the actual id from inside the file
|
||||||
|
@ -703,7 +701,7 @@ public class FileSessionDataStore extends AbstractSessionDataStore
|
||||||
* @param data the data to restore to
|
* @param data the data to restore to
|
||||||
* @throws Exception
|
* @throws Exception
|
||||||
*/
|
*/
|
||||||
private void restoreAttributes (InputStream is, int size, SessionData data)
|
protected void restoreAttributes (InputStream is, int size, SessionData data)
|
||||||
throws Exception
|
throws Exception
|
||||||
{
|
{
|
||||||
if (size>0)
|
if (size>0)
|
||||||
|
|
Loading…
Reference in New Issue