org.montsuqi.client
Class Protocol

java.lang.Object
  extended by org.montsuqi.client.Connection
      extended by org.montsuqi.client.Protocol

public class Protocol
extends Connection

A class that implements high level operations over client/server connection.


Field Summary
(package private) static Logger logger
           
 
Fields inherited from class org.montsuqi.client.Connection
in, out
 
Constructor Summary
Protocol(Client client, java.lang.String encoding, java.util.Map styleMap, java.io.File cacheRoot, int protocolVersion)
           
 
Method Summary
(package private)  void addChangedWidget(java.awt.Component widget)
           
(package private)  void checkScreens(boolean init)
           
(package private)  void clearWindowTable()
           
(package private)  void closeWindow(java.awt.Component widget)
           
 void exceptionOccured(java.io.IOException e)
           
(package private)  void exit()
           
 Interface getInterface()
           
(package private)  Node getNode(java.awt.Component component)
           
(package private)  boolean getScreenData()
           
 java.lang.StringBuffer getWidgetNameBuffer()
           
 boolean isReceiving()
           
 java.lang.String receiveName()
           
 void receiveValue(java.lang.StringBuffer longName, int offset)
           
(package private)  boolean receiveWidgetData(java.awt.Component widget)
           
(package private)  void sendConnect(java.lang.String user, java.lang.String pass, java.lang.String app)
           
(package private)  void sendEvent(java.lang.String window, java.lang.String widget, java.lang.String event)
           
 void sendName(java.lang.String name)
           
(package private)  void sendWindowData()
           
 
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
 

Field Detail

logger

static final Logger logger
Constructor Detail

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
Method Detail

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)