@Test public void stripJvmRouteNull() { InfinispanSessionManager ispnSM = new InfinispanSessionManager(); String sessionId = null; String newSessionId = ispnSM.stripJvmRoute(sessionId); assertNull(newSessionId); }
protected String stripJvmRoute(String sessionId){ String jvmRoute = this.getJvmRoute(); if (sessionId == null){ return null; } String newSessionId = sessionId; if ( jvmRoute != null && jvmRoute.length() > 0 && sessionId.endsWith(jvmRoute) ){ int endIndex = newSessionId.length() -1 - jvmRoute.length(); newSessionId = newSessionId.substring(0, endIndex); } return newSessionId; }
InfinispanSessionManager extends ManagerBase { protected String stripJvmRoute(String sessionId){ String jvmRoute = this.getJvmRoute(); if (sessionId == null){ return null; } String newSessionId = sessionId; if ( jvmRoute != null && jvmRoute.length() > 0 && sessionId.endsWith(jvmRoute) ){ int endIndex = newSessionId.length() -1 - jvmRoute.length(); newSessionId = newSessionId.substring(0, endIndex); } return newSessionId; } }
InfinispanSessionManager extends ManagerBase { protected String stripJvmRoute(String sessionId){ String jvmRoute = this.getJvmRoute(); if (sessionId == null){ return null; } String newSessionId = sessionId; if ( jvmRoute != null && jvmRoute.length() > 0 && sessionId.endsWith(jvmRoute) ){ int endIndex = newSessionId.length() -1 - jvmRoute.length(); newSessionId = newSessionId.substring(0, endIndex); } return newSessionId; }  }
InfinispanSessionManager extends ManagerBase { protected String stripJvmRoute(String sessionId){ String jvmRoute = this.getJvmRoute(); if (sessionId == null){ return null; } String newSessionId = sessionId; if ( jvmRoute != null && jvmRoute.length() > 0 && sessionId.endsWith(jvmRoute) ){ int endIndex = newSessionId.length() -1 - jvmRoute.length(); newSessionId = newSessionId.substring(0, endIndex); } return newSessionId; }  @Override String getInfo(); @Override String getName(); @Override void load(); @Override void unload(); @Override Session createEmptySession(); @Override Session createSession(String sessionId ); @Override void add(Session session); @Override Session findSession(String sessionId); @Override void remove(Session session, boolean update); Engine getEngine(); String getJvmRoute(); String getCacheName(); }
InfinispanSessionManager extends ManagerBase { protected String stripJvmRoute(String sessionId){ String jvmRoute = this.getJvmRoute(); if (sessionId == null){ return null; } String newSessionId = sessionId; if ( jvmRoute != null && jvmRoute.length() > 0 && sessionId.endsWith(jvmRoute) ){ int endIndex = newSessionId.length() -1 - jvmRoute.length(); newSessionId = newSessionId.substring(0, endIndex); } return newSessionId; }  @Override String getInfo(); @Override String getName(); @Override void load(); @Override void unload(); @Override Session createEmptySession(); @Override Session createSession(String sessionId ); @Override void add(Session session); @Override Session findSession(String sessionId); @Override void remove(Session session, boolean update); Engine getEngine(); String getJvmRoute(); String getCacheName();  }