|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opengts.util.AbstractClientPacketHandler
org.opengts.util.RemoteLogServer.RemoteLogHandler
public class RemoteLogServer.RemoteLogHandler
| Field Summary |
|---|
| Fields inherited from class org.opengts.util.AbstractClientPacketHandler |
|---|
GMT_Timezone, PACKET_LEN_END_OF_STREAM, PACKET_LEN_LINE_TERMINATOR |
| Constructor Summary | |
|---|---|
RemoteLogServer.RemoteLogHandler()
|
|
| Method Summary | |
|---|---|
int |
getActualPacketLength(byte[] packet,
int packetLen)
Callback to obtain the length of the next packet, based on the provided partial packet data. |
byte[] |
getHandlePacket(byte[] pkt)
Parse the provided packet information, and return any response that should be sent back to the remote device |
byte[] |
getInitialPacket()
Returns the initial packet that should be sent to the device upon openning the socket connection . |
void |
sessionStarted(java.net.InetAddress inetAddr,
boolean isTCP,
boolean isText)
Called when the session has started |
void |
sessionTerminated(java.lang.Throwable err,
long readCount,
long writeCount)
Callback just before the session is terminated |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RemoteLogServer.RemoteLogHandler()
| Method Detail |
|---|
public byte[] getInitialPacket()
AbstractClientPacketHandler
getInitialPacket in interface ClientPacketHandlergetInitialPacket in class AbstractClientPacketHandler
public void sessionStarted(java.net.InetAddress inetAddr,
boolean isTCP,
boolean isText)
AbstractClientPacketHandler
sessionStarted in interface ClientPacketHandlersessionStarted in class AbstractClientPacketHandlerinetAddr - The host IP addressisTCP - True if the connection is TCPisText - True if the connection is text
public void sessionTerminated(java.lang.Throwable err,
long readCount,
long writeCount)
AbstractClientPacketHandler
sessionTerminated in interface ClientPacketHandlersessionTerminated in class AbstractClientPacketHandler
public int getActualPacketLength(byte[] packet,
int packetLen)
AbstractClientPacketHandler
getActualPacketLength in interface ClientPacketHandlergetActualPacketLength in class AbstractClientPacketHandler
public byte[] getHandlePacket(byte[] pkt)
throws java.lang.Exception
AbstractClientPacketHandler
getHandlePacket in interface ClientPacketHandlergetHandlePacket in class AbstractClientPacketHandlerpkt - The packet
java.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||