Class SimpleRequestProcessor
java.lang.Object
com.google.web.bindery.requestfactory.server.SimpleRequestProcessor
Processes request payloads from a RequestFactory client. This implementation
is stateless. A single instance may be reused and is thread-safe.
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static class
This parameterization is so long, it improves readability to have a specific type. -
Field Summary
Modifier and TypeFieldDescription(package private) static final Configuration
Allows the creation of properly-configured AutoBeans without having to create an AutoBeanFactory with the desired annotations.(package private) static final MessageFactory
Vends message objects. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription(package private) <T> Splittable
createOobMessage
(List<T> domainValues) Encode a list of objects into a self-contained message that can be used for out-of-band communication.(package private) <T> List
<T> decodeOobMessage
(Class<T> domainClass, Splittable payload) Decode an out-of-band message.(package private) static String
fromBase64
(String encoded) (package private) void
process
(RequestMessage req, ResponseMessage resp) Main processing method.Process a payload sent by a RequestFactory client.void
setExceptionHandler
(ExceptionHandler exceptionHandler) (package private) static String
-
Field Details
-
CONFIGURATION
Allows the creation of properly-configured AutoBeans without having to create an AutoBeanFactory with the desired annotations. -
FACTORY
Vends message objects.
-
-
Constructor Details
-
SimpleRequestProcessor
-
-
Method Details
-
fromBase64
-
toBase64
-
process
Process a payload sent by a RequestFactory client.- Parameters:
payload
- the payload sent by the client- Returns:
- a payload to return to the client
-
setExceptionHandler
-
createOobMessage
Encode a list of objects into a self-contained message that can be used for out-of-band communication.
-