|
jSyncManager Simple Java Server | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Thread org.jSyncManager.SJS.API.AbstractAdapter org.jSyncManager.SJS.API.AbstractRequestResponseAdapter org.jSyncManager.SJS.Adapters.TestAdapter.TestAdapter
public class TestAdapter
A simple Test Adapter to demonstrate the Internet Server Service. This is a very simple Internet Server application built upon the AbstractRequestResponseAdapter in order to create a simple server which accepts requests, and uses them to increment a counter, completing when the user enters the word "QUIT".
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
Field Summary | |
---|---|
static java.lang.String |
DISCONNECT_MESSAGE
A static field to hold the disconnect message for this adapter. |
Fields inherited from class org.jSyncManager.SJS.API.AbstractAdapter |
---|
props |
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
TestAdapter()
Constructs a new instance of this TestAdapter. |
Method Summary | |
---|---|
protected java.lang.String |
getConnectionHeaderString()
The Connection Header method. |
protected java.lang.String |
getTimeoutMessage()
The timeout error message. |
protected java.lang.String |
processRequest(java.lang.String request)
The processRequest method. |
Methods inherited from class org.jSyncManager.SJS.API.AbstractRequestResponseAdapter |
---|
disconnect, processConnection |
Methods inherited from class org.jSyncManager.SJS.API.AbstractAdapter |
---|
connectionPermitted, getConnectionManagerInterface, getInetAddress, getLogManager, getProperty, processConnection, run, setLogManager, setThreadGroup |
Methods inherited from class java.lang.Thread |
---|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, 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 |
---|
public static final java.lang.String DISCONNECT_MESSAGE
Constructor Detail |
---|
public TestAdapter()
Method Detail |
---|
protected java.lang.String processRequest(java.lang.String request) throws java.lang.Exception
processRequest
in class AbstractRequestResponseAdapter
request
- the request to be processed.
java.lang.Exception
- any checked exception that goes unhandled.protected java.lang.String getConnectionHeaderString()
getConnectionHeaderString
in class AbstractRequestResponseAdapter
protected java.lang.String getTimeoutMessage()
getTimeoutMessage
in class AbstractRequestResponseAdapter
|
jSyncManager Simple Java Server | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |