com.waveset.session
Class ServerConnection

java.lang.Object
  extended byjava.lang.Thread
      extended bycom.waveset.session.ServerConnection
All Implemented Interfaces:
java.lang.Runnable

public class ServerConnection
extends java.lang.Thread


Nested Class Summary
static class ServerConnection.Response
          A helper class that encapsulates the bits that make up a server response, and provide utilities for packing it.
 
Field Summary
static java.lang.String code_id
           
static byte MESSAGE_FIELD_DELIMITER
           
static java.lang.String MESSAGE_FIELD_DELIMITER_STRING
           
static byte MESSAGE_ID_CLEARKEYS
           
static byte MESSAGE_ID_CREATE
           
static byte MESSAGE_ID_DELETE
           
static byte MESSAGE_ID_GETCRED
           
static byte MESSAGE_ID_GETINFO
           
static byte MESSAGE_ID_LOGIN
           
static byte MESSAGE_ID_SETCRED
           
static int MESSAGE_STATUS_ERROR
           
static int MESSAGE_STATUS_INVALID_SUBJECT
           
static int MESSAGE_STATUS_LOGIN_FAILURE
           
static int MESSAGE_STATUS_OK
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
ServerConnection(java.net.Socket socket)
           
 
Method Summary
 void print(java.lang.Object o)
           
 void println(java.lang.Object o)
           
 void refresh()
          Refresh information from the repository.
 void run()
          Run the dispatch thread.
 void shutdown()
          Request a stoppage of the thread.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

code_id

public static final java.lang.String code_id
See Also:
Constant Field Values

MESSAGE_ID_LOGIN

public static final byte MESSAGE_ID_LOGIN
See Also:
Constant Field Values

MESSAGE_ID_GETCRED

public static final byte MESSAGE_ID_GETCRED
See Also:
Constant Field Values

MESSAGE_ID_SETCRED

public static final byte MESSAGE_ID_SETCRED
See Also:
Constant Field Values

MESSAGE_ID_GETINFO

public static final byte MESSAGE_ID_GETINFO
See Also:
Constant Field Values

MESSAGE_ID_CLEARKEYS

public static final byte MESSAGE_ID_CLEARKEYS
See Also:
Constant Field Values

MESSAGE_ID_CREATE

public static final byte MESSAGE_ID_CREATE
See Also:
Constant Field Values

MESSAGE_ID_DELETE

public static final byte MESSAGE_ID_DELETE
See Also:
Constant Field Values

MESSAGE_FIELD_DELIMITER

public static final byte MESSAGE_FIELD_DELIMITER
See Also:
Constant Field Values

MESSAGE_FIELD_DELIMITER_STRING

public static final java.lang.String MESSAGE_FIELD_DELIMITER_STRING
See Also:
Constant Field Values

MESSAGE_STATUS_OK

public static final int MESSAGE_STATUS_OK
See Also:
Constant Field Values

MESSAGE_STATUS_ERROR

public static final int MESSAGE_STATUS_ERROR
See Also:
Constant Field Values

MESSAGE_STATUS_LOGIN_FAILURE

public static final int MESSAGE_STATUS_LOGIN_FAILURE
See Also:
Constant Field Values

MESSAGE_STATUS_INVALID_SUBJECT

public static final int MESSAGE_STATUS_INVALID_SUBJECT
See Also:
Constant Field Values
Constructor Detail

ServerConnection

public ServerConnection(java.net.Socket socket)
Method Detail

shutdown

public void shutdown()
Request a stoppage of the thread. Need to figure something out...


refresh

public void refresh()
Refresh information from the repository.


run

public void run()
Run the dispatch thread.


print

public void print(java.lang.Object o)

println

public void println(java.lang.Object o)