|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--java.lang.Thread
|
+--amber.server.manager.handler.BaseHandler
|
+--amber.server.manager.handler.Application
This class handles the connection requirements for the particular incoming connection. This class handles the application systems.
Core,
HandlerInterface| Fields inherited from class amber.server.manager.handler.BaseHandler |
dataDecoder, dataEncoder, encoderBytes, initPacket, loggingFile, mainServer, socket, type |
| Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
Application()
|
|
| Method Summary | |
protected boolean |
clientRequestedHandlers(java.net.Socket socket,
Packet initPacket,
AmberInputStream dd,
int type)
In the case with an invalid page ID this function checks to see if the client has requested the available ApplicationHandlers. |
ApplicationManager |
getApplicationManager()
Returns the parent application manager for this object. |
void |
run()
This function handles the connection requirements for the specified incoming connection. |
protected void |
sendHandlersPacket(java.net.Socket socket,
java.lang.String username,
java.lang.String password,
int type)
|
void |
setApplicationManager(ApplicationManager manager)
Sets the parent application manager for this object. |
| Methods inherited from class amber.server.manager.handler.BaseHandler |
connectToClient, sendPacket, setCore, setLogger |
| Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, 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 |
| Methods inherited from interface amber.server.manager.handler.HandlerInterface |
connectToClient, setCore, setLogger |
| Constructor Detail |
public Application()
| Method Detail |
public void setApplicationManager(ApplicationManager manager)
manager - ApplicationManager which is the parent manager.public ApplicationManager getApplicationManager()
public void run()
run in class java.lang.Thread
protected boolean clientRequestedHandlers(java.net.Socket socket,
Packet initPacket,
AmberInputStream dd,
int type)
throws java.io.IOException
socket - Socket connection to the original requester.initPacket - Packet containing the original requesting packet.dd - AmberInputStream containing the encoded packet data.type - The type of connection that is attempting to match the packet.
This matches the constants in ListenerThread.java.io.IOException - containing decoding errors.
protected void sendHandlersPacket(java.net.Socket socket,
java.lang.String username,
java.lang.String password,
int type)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||