org.montsuqi.client
Class Protocol
java.lang.Object
org.montsuqi.client.Connection
org.montsuqi.client.Protocol
public class Protocol
- extends Connection
A class that implements high level operations over client/server connection.
|
Constructor Summary |
Protocol(Client client,
java.lang.String encoding,
java.util.Map styleMap,
java.io.File cacheRoot,
int protocolVersion)
|
| Methods inherited from class org.montsuqi.client.Connection |
close, getLastDataType, receiveBinaryData, receiveBoolean, receiveBooleanData, receiveChar, receiveDataType, receiveDataTypeWithCheck, receiveFixed, receiveFixedData, receiveFloat, receiveInt, receiveIntData, receiveLength, receiveLong, receivePacketClass, receiveString, receiveStringBody, receiveStringData, sendBoolean, sendBooleanData, sendChar, sendDataType, sendFixed, sendFixedData, sendFloat, sendInt, sendIntegerData, sendLength, sendLong, sendPacketClass, sendString, sendStringData |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
static final Logger logger
Protocol
Protocol(Client client,
java.lang.String encoding,
java.util.Map styleMap,
java.io.File cacheRoot,
int protocolVersion)
throws java.io.IOException,
java.security.GeneralSecurityException
- Throws:
java.io.IOException
java.security.GeneralSecurityException
getInterface
public Interface getInterface()
checkScreens
void checkScreens(boolean init)
throws java.io.IOException
- Throws:
java.io.IOException
receiveWidgetData
boolean receiveWidgetData(java.awt.Component widget)
throws java.io.IOException
- Throws:
java.io.IOException
receiveValue
public void receiveValue(java.lang.StringBuffer longName,
int offset)
throws java.io.IOException
- Throws:
java.io.IOException
receiveName
public java.lang.String receiveName()
throws java.io.IOException
- Throws:
java.io.IOException
sendName
public void sendName(java.lang.String name)
throws java.io.IOException
- Throws:
java.io.IOException
getScreenData
boolean getScreenData()
throws java.io.IOException
- Throws:
java.io.IOException
sendConnect
void sendConnect(java.lang.String user,
java.lang.String pass,
java.lang.String app)
throws java.io.IOException
- Throws:
java.io.IOException
sendEvent
void sendEvent(java.lang.String window,
java.lang.String widget,
java.lang.String event)
throws java.io.IOException
- Throws:
java.io.IOException
sendWindowData
void sendWindowData()
throws java.io.IOException
- Throws:
java.io.IOException
clearWindowTable
void clearWindowTable()
addChangedWidget
void addChangedWidget(java.awt.Component widget)
isReceiving
public boolean isReceiving()
getNode
Node getNode(java.awt.Component component)
closeWindow
void closeWindow(java.awt.Component widget)
exit
void exit()
getWidgetNameBuffer
public java.lang.StringBuffer getWidgetNameBuffer()
exceptionOccured
public void exceptionOccured(java.io.IOException e)