NextApp Echo3
v3.0.rc1

nextapp.echo.webcontainer
Class InputProcessor

java.lang.Object
  extended by nextapp.echo.webcontainer.InputProcessor

public class InputProcessor
extends java.lang.Object

Parses an XML ClientMessage describing client-side changes to the state of an application that is sent to the remote client as the request of a synchronization HTTP connection.


Constructor Summary
InputProcessor(SynchronizationState syncState, Connection conn)
          Creates a new InputProcessor.
 
Method Summary
 java.lang.String getInitId()
          Returns the unique client-generated initialization request identifier specified in the ClientMessage.
 java.lang.String getWindowId()
          Returns the unique client-generated window identifier specified in the ClientMessage.
 void process()
          Processes input to the application, parsing a client message provided in the Connection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InputProcessor

public InputProcessor(SynchronizationState syncState,
                      Connection conn)
               throws java.io.IOException
Creates a new InputProcessor.

Parameters:
syncState - the SynchronizationState of the current synchronization
conn - the Connection for which the input is being parsed
Throws:
java.io.IOException
Method Detail

getWindowId

public java.lang.String getWindowId()
Returns the unique client-generated window identifier specified in the ClientMessage.

Returns:
the client window identifier

getInitId

public java.lang.String getInitId()
Returns the unique client-generated initialization request identifier specified in the ClientMessage.

Returns:
the client window identifier

process

public void process()
             throws java.io.IOException
Processes input to the application, parsing a client message provided in the Connection. Verifies client/server are in sync, and performs full refresh if they are not. Writes incoming XML message to System.err in the event debug flag is enabled. Invokes ClientMessage.process() to begin client-message processing (assuming client/server are synchronized).

Throws:
java.io.IOException

NextApp Echo3
v3.0.rc1