submarine.connectors
Class XMLListener.Server
java.lang.Object
|
+--java.lang.Thread
|
+--submarine.util.esKernel
|
+--submarine.connectors.XMLListener.Server
- All Implemented Interfaces:
- java.lang.Runnable
- Enclosing class:
- XMLListener
- public static class XMLListener.Server
- extends esKernel
Fields inherited from class submarine.util.esKernel |
BUILD, cachedPID, client, clientInput, clientOutput, clientPID, curPID, dontLoad, FREE, freeSOCKETS, MAXIMUMSOCKETS, NAME, Ninja, noNinja, OWNED, quietMode, Samurai, server, serverPORT, theThread, theThreadGroup, VERSION |
Fields inherited from class java.lang.Thread |
contextClassLoader, daemon, eetop, group, inheritableThreadLocals, inheritedAccessControlContext, MAX_PRIORITY, MIN_PRIORITY, name, NORM_PRIORITY, priority, single_step, stillborn, stopThreadPermission, target, threadInitNumber, threadLocals, threadQ |
Methods inherited from class submarine.util.esKernel |
buildLazy, clientReader, clientSend, clientWriter, disconnectClient, getClientPID, loadSockets, parseCommandLineInput, parseDataInput, run, setEncoding, setPort, setQuiet, setSockets, showError, showHelp, showVersion, startCommandLineStream, startServer, statusMessage, stopServer |
Methods inherited from class java.lang.Thread |
, activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, exit, getContextClassLoader, getName, getPriority, getThreadGroup, init, interrupt, interrupt0, interrupted, isAlive, isDaemon, isInterrupted, isInterrupted, join, join, join, nextThreadNum, registerNatives, resume, resume0, setContextClassLoader, setDaemon, setName, setPriority, setPriority0, sleep, sleep, start, stop, stop, stop0, suspend, suspend0, toString, yield |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
submiter
private Submiter submiter
dbf
private javax.xml.parsers.DocumentBuilderFactory dbf
encoding
private java.lang.String encoding
XMLListener.Server
public XMLListener.Server(java.lang.String[] argv,
Submiter s,
java.lang.String enc)
serverStarted
public void serverStarted()
- Once the server is started it will call this function
- Overrides:
serverStarted
in class esKernel
clientLogin
public void clientLogin(int lPID)
- Once a user(lPID) logs in this function is kicked off
- Overrides:
clientLogin
in class esKernel
clientLogout
public void clientLogout(int lPID)
- Once a user(lPID) logs off this function is kicked off
- Overrides:
clientLogout
in class esKernel
clientRecieve
public void clientRecieve(java.lang.String lineIn,
int lPID)
- when the user sends information to the server this function kicks off
- Overrides:
clientRecieve
in class esKernel
manageXMLResponse
public void manageXMLResponse(java.io.PrintWriter w,
java.lang.Object o)
manageXMLError
public void manageXMLError(java.io.PrintWriter w,
java.lang.Exception e)
manageStringResponse
public void manageStringResponse(java.io.PrintWriter w,
java.lang.String s)
manageDocResponse
public void manageDocResponse(java.io.PrintWriter w,
org.w3c.dom.Document s)
manageStreamResponse
public void manageStreamResponse(java.io.PrintWriter w,
java.io.InputStream is)
manageReaderResponse
public void manageReaderResponse(java.io.PrintWriter w,
java.io.Reader r)
manageXMLRequest
public java.lang.Object manageXMLRequest(java.io.BufferedReader r,
Submiter submiter)
throws java.lang.Exception
extractBody
public java.lang.Object extractBody(org.w3c.dom.Element xml)
createDoc
public org.w3c.dom.Document createDoc(org.w3c.dom.Element xml)
createString
public java.lang.String createString(org.w3c.dom.Element xml)
createInputStream
public java.io.InputStream createInputStream(org.w3c.dom.Element xml)