org.opencrx.application.adapter
Class AbstractSession

java.lang.Object
  extended by org.opencrx.application.adapter.AbstractSession
All Implemented Interfaces:
Runnable
Direct Known Subclasses:
IMAPSession, LDAPSession

public abstract class AbstractSession
extends Object
implements Runnable


Field Summary
static String PASSWORD_ENCODING_ALGORITHM
           
protected  String segmentName
           
protected  AbstractServer server
           
protected  Socket socket
           
protected  String username
           
 
Constructor Summary
AbstractSession(Socket client, AbstractServer server)
           
 
Method Summary
protected  boolean login(String username, String password)
           
protected  void logout()
           
static javax.jdo.PersistenceManager newPersistenceManager(javax.jdo.PersistenceManagerFactory pmf, String username)
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.lang.Runnable
run
 

Field Detail

PASSWORD_ENCODING_ALGORITHM

public static final String PASSWORD_ENCODING_ALGORITHM
See Also:
Constant Field Values

server

protected final AbstractServer server

socket

protected Socket socket

username

protected String username

segmentName

protected String segmentName
Constructor Detail

AbstractSession

public AbstractSession(Socket client,
                       AbstractServer server)
Method Detail

stop

public void stop()

newPersistenceManager

public static javax.jdo.PersistenceManager newPersistenceManager(javax.jdo.PersistenceManagerFactory pmf,
                                                                 String username)

login

protected boolean login(String username,
                        String password)

logout

protected void logout()


This software is published under the BSD license. Copyright © 2003-2012, CRIXP AG, Switzerland, All rights reserved. Use is subject to license terms.