@Test public void testCreateSessionNoProtocolId() { InMemorySessionStore store=new InMemorySessionStore(); try { store.create(null, new ConversationId("id"), null); fail("Should have thrown IllegalArgumentException"); } catch(IllegalArgumentException iae) { } catch(Exception e) { fail("Not expecting: "+e); } }
public java.io.Serializable create(ProtocolId pid, ConversationId cid, Serializable session) { if (pid == null) { throw new IllegalArgumentException("Protocol id not specified"); } else if (cid == null) { throw new IllegalArgumentException("Conversation instance id not specified"); } addSession(pid, cid, session); return(session); }
InMemorySessionStore implements SessionStore { public java.io.Serializable create(ProtocolId pid, ConversationId cid, Serializable session) { if (pid == null) { throw new IllegalArgumentException("Protocol id not specified"); } else if (cid == null) { throw new IllegalArgumentException("Conversation instance id not specified"); } addSession(pid, cid, session); return(session); } }
InMemorySessionStore implements SessionStore { public java.io.Serializable create(ProtocolId pid, ConversationId cid, Serializable session) { if (pid == null) { throw new IllegalArgumentException("Protocol id not specified"); } else if (cid == null) { throw new IllegalArgumentException("Conversation instance id not specified"); } addSession(pid, cid, session); return(session); }  }
InMemorySessionStore implements SessionStore { public java.io.Serializable create(ProtocolId pid, ConversationId cid, Serializable session) { if (pid == null) { throw new IllegalArgumentException("Protocol id not specified"); } else if (cid == null) { throw new IllegalArgumentException("Conversation instance id not specified"); } addSession(pid, cid, session); return(session); }  void setConfiguration(Configuration config); java.io.Serializable create(ProtocolId pid, ConversationId cid, Serializable session); java.io.Serializable find(ProtocolId pid, ConversationId cid); void remove(ProtocolId pid, ConversationId cid); void update(ProtocolId pid, ConversationId cid, java.io.Serializable session); void close(); }
InMemorySessionStore implements SessionStore { public java.io.Serializable create(ProtocolId pid, ConversationId cid, Serializable session) { if (pid == null) { throw new IllegalArgumentException("Protocol id not specified"); } else if (cid == null) { throw new IllegalArgumentException("Conversation instance id not specified"); } addSession(pid, cid, session); return(session); }  void setConfiguration(Configuration config); java.io.Serializable create(ProtocolId pid, ConversationId cid, Serializable session); java.io.Serializable find(ProtocolId pid, ConversationId cid); void remove(ProtocolId pid, ConversationId cid); void update(ProtocolId pid, ConversationId cid, java.io.Serializable session); void close();  }