org.apache.catalina.SessionIdGenerator Java Examples
The following examples show how to use
org.apache.catalina.SessionIdGenerator.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ClusterManagerBase.java From Tomcat8-Source-Read with MIT License | 6 votes |
protected void clone(ClusterManagerBase copy) { copy.setName("Clone-from-" + getName()); copy.setMaxActiveSessions(getMaxActiveSessions()); copy.setProcessExpiresFrequency(getProcessExpiresFrequency()); copy.setNotifyListenersOnReplication(isNotifyListenersOnReplication()); copy.setSessionAttributeNameFilter(getSessionAttributeNameFilter()); copy.setSessionAttributeValueClassNameFilter(getSessionAttributeValueClassNameFilter()); copy.setWarnOnSessionAttributeFilterFailure(getWarnOnSessionAttributeFilterFailure()); copy.setSecureRandomClass(getSecureRandomClass()); copy.setSecureRandomProvider(getSecureRandomProvider()); copy.setSecureRandomAlgorithm(getSecureRandomAlgorithm()); if (getSessionIdGenerator() != null) { try { SessionIdGenerator copyIdGenerator = sessionIdGeneratorClass.getConstructor().newInstance(); copyIdGenerator.setSessionIdLength(getSessionIdGenerator().getSessionIdLength()); copyIdGenerator.setJvmRoute(getSessionIdGenerator().getJvmRoute()); copy.setSessionIdGenerator(copyIdGenerator); } catch (ReflectiveOperationException e) { // Ignore } } copy.setRecordAllActions(isRecordAllActions()); }
Example #2
Source File: PersistentManagerSF.java From Tomcat8-Source-Read with MIT License | 6 votes |
/** * Store the specified PersistentManager properties. * * @param aWriter * PrintWriter to which we are storing * @param indent * Number of spaces to indent this element * @param aManager * PersistentManager whose properties are being stored * * @exception Exception * if an exception occurs while storing */ @Override public void storeChildren(PrintWriter aWriter, int indent, Object aManager, StoreDescription parentDesc) throws Exception { if (aManager instanceof PersistentManager) { PersistentManager manager = (PersistentManager) aManager; // Store nested <Store> element Store store = manager.getStore(); storeElement(aWriter, indent, store); // Store nested <SessionIdGenerator> element SessionIdGenerator sessionIdGenerator = manager.getSessionIdGenerator(); if (sessionIdGenerator != null) { storeElement(aWriter, indent, sessionIdGenerator); } } }
Example #3
Source File: ManagerBase.java From Tomcat8-Source-Read with MIT License | 5 votes |
@Override public SessionIdGenerator getSessionIdGenerator() { if (sessionIdGenerator != null) { return sessionIdGenerator; } else if (sessionIdGeneratorClass != null) { try { sessionIdGenerator = sessionIdGeneratorClass.getConstructor().newInstance(); return sessionIdGenerator; } catch(ReflectiveOperationException ex) { // Ignore } } return null; }
Example #4
Source File: ManagerSF.java From Tomcat8-Source-Read with MIT License | 5 votes |
@Override public void storeChildren(PrintWriter aWriter, int indent, Object aManager, StoreDescription parentDesc) throws Exception { if (aManager instanceof Manager) { Manager manager = (Manager) aManager; // Store nested <SessionIdGenerator> element; SessionIdGenerator sessionIdGenerator = manager.getSessionIdGenerator(); if (sessionIdGenerator != null) { storeElement(aWriter, indent, sessionIdGenerator); } } }
Example #5
Source File: ManagerBase.java From Tomcat8-Source-Read with MIT License | 4 votes |
@Override public void setSessionIdGenerator(SessionIdGenerator sessionIdGenerator) { this.sessionIdGenerator = sessionIdGenerator; sessionIdGeneratorClass = sessionIdGenerator.getClass(); }
Example #6
Source File: ManagerBase.java From tomcatsrc with Apache License 2.0 | 4 votes |
public void setSessionIdGenerator(SessionIdGenerator sessionIdGenerator) { this.sessionIdGenerator = sessionIdGenerator; sessionIdGeneratorClass = sessionIdGenerator.getClass(); }
Example #7
Source File: ManagerBase.java From Tomcat7.0.67 with Apache License 2.0 | 2 votes |
/** * Sets the session id generator * * @param sessionIdGenerator The session id generator */ public void setSessionIdGenerator(SessionIdGenerator sessionIdGenerator) { this.sessionIdGenerator = sessionIdGenerator; sessionIdGeneratorClass = sessionIdGenerator.getClass(); }