コード例 #1
0
 public DelegateSessionManagerFactory(AppEngineWebXml appEngineWebXml) {
   final SessionType sessionType = appEngineWebXml.getSessionType();
   switch (sessionType) {
     case APPENGINE:
       delegate =
           new CapedwarfSessionManagerFactory(
               appEngineWebXml.isAsyncSessionPersistence(),
               appEngineWebXml.getSessionPersistenceQueueName());
       break;
     case STUB:
       delegate = StubSessionManagerFactory.INSTANCE;
       break;
     default:
       throw new IllegalStateException();
   }
 }
コード例 #2
0
 public String getVersionId() {
   assertInitialized();
   return appEngineWebXml.getVersion();
 }
コード例 #3
0
 public String getAppId() {
   assertInitialized();
   return appEngineWebXml.getApplication();
 }