Package com.adobe.xfa.form
Class FormModel.ServerExchange
java.lang.Object
com.adobe.xfa.form.FormModel.ServerExchange
- Enclosing class:
FormModel
Provides a mechanism for FormModel to execute an event on a server.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidremerge()Allows this implementation to react to the changed data after the FormModel has loaded the data from the response.abstract byte[]sendToServer(byte[] request) Sends a request to the server and returns the server's response.
-
Constructor Details
-
ServerExchange
public ServerExchange()
-
-
Method Details
-
remerge
public void remerge()Allows this implementation to react to the changed data after the FormModel has loaded the data from the response. This is called as the last step after data has been successfully exchanged with the server. The default implementation does nothing. -
sendToServer
public abstract byte[] sendToServer(byte[] request) Sends a request to the server and returns the server's response. The derived class must implement the transfer mechanism. The contents in each direction are formatted as UTF-8 encoded XDP data. The request includes the DataModel contents, as well as an execEvent packet (with context and activity attributes) that describe the event to be executed on the server.- Parameters:
request- a buffer containing the data to be sent in the server request.- Returns:
- a buffer containing the server response, this is expected to be UTF-8 encoded XDP data.
-