Package com.vaadin.swingkit.core
Class InvocationResponse
java.lang.Object
com.vaadin.swingkit.core.InvocationResponse
- All Implemented Interfaces:
Serializable
Represents the response from a remote method call between a Swing app and a
Vaadin app in a Vaadin panel.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe fully qualified name of the type of the response.getData()Get the actual response data.getId()Get the id of the response, which should match the id of the request.voidsetClassType(String classType) Set the fully qualified name of the type of the response.voidSet the response data.voidSet the id of the response, which should match the id of the request.toString()
-
Constructor Details
-
InvocationResponse
public InvocationResponse()
-
-
Method Details
-
getId
Get the id of the response, which should match the id of the request.- Returns:
- the id of the response.
-
setId
Set the id of the response, which should match the id of the request.- Parameters:
id- the id of the response to set.
-
getClassType
The fully qualified name of the type of the response. Could be void.- Returns:
- The fully qualified name of the type of the response or "void" if the method has no return type.
-
setClassType
Set the fully qualified name of the type of the response. Could be void.- Parameters:
classType- the fully qualified name of the type of the response or "void" if the method has no return type.
-
getData
Get the actual response data. It is the return value of the method called.- Returns:
- the actual response data.
-
setData
Set the response data.- Parameters:
data- the response data.
-
toString
-