public class SimpleRequestProcessor
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
(package private) static class |
SimpleRequestProcessor.IdToEntityMap
This parameterization is so long, it improves readability to have a
specific type.
|
Modifier and Type | Field and Description |
---|---|
(package private) static Configuration |
CONFIGURATION
Allows the creation of properly-configured AutoBeans without having to
create an AutoBeanFactory with the desired annotations.
|
(package private) static MessageFactory |
FACTORY
Vends message objects.
|
Constructor and Description |
---|
SimpleRequestProcessor(ServiceLayer serviceLayer) |
Modifier and Type | Method and Description |
---|---|
(package private) <T> Splittable |
createOobMessage(java.util.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> java.util.List<T> |
decodeOobMessage(java.lang.Class<T> domainClass,
Splittable payload)
Decode an out-of-band message.
|
(package private) static java.lang.String |
fromBase64(java.lang.String encoded) |
(package private) void |
process(RequestMessage req,
ResponseMessage resp)
Main processing method.
|
java.lang.String |
process(java.lang.String payload)
Process a payload sent by a RequestFactory client.
|
void |
setExceptionHandler(ExceptionHandler exceptionHandler) |
(package private) static java.lang.String |
toBase64(java.lang.String data) |
static final Configuration CONFIGURATION
static final MessageFactory FACTORY
public SimpleRequestProcessor(ServiceLayer serviceLayer)
static java.lang.String fromBase64(java.lang.String encoded)
static java.lang.String toBase64(java.lang.String data)
public java.lang.String process(java.lang.String payload)
payload
- the payload sent by the clientpublic void setExceptionHandler(ExceptionHandler exceptionHandler)
<T> Splittable createOobMessage(java.util.List<T> domainValues)
<T> java.util.List<T> decodeOobMessage(java.lang.Class<T> domainClass, Splittable payload)
void process(RequestMessage req, ResponseMessage resp)