Class SimpleRequestProcessor

java.lang.Object
com.google.web.bindery.requestfactory.server.SimpleRequestProcessor

public class SimpleRequestProcessor extends Object
Processes request payloads from a RequestFactory client. This implementation is stateless. A single instance may be reused and is thread-safe.
  • Field Details

    • CONFIGURATION

      static final Configuration CONFIGURATION
      Allows the creation of properly-configured AutoBeans without having to create an AutoBeanFactory with the desired annotations.
    • FACTORY

      static final MessageFactory FACTORY
      Vends message objects.
  • Constructor Details

    • SimpleRequestProcessor

      public SimpleRequestProcessor(ServiceLayer serviceLayer)
  • Method Details

    • fromBase64

      static String fromBase64(String encoded)
    • toBase64

      static String toBase64(String data)
    • process

      public String process(String payload)
      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

      public void setExceptionHandler(ExceptionHandler exceptionHandler)
    • createOobMessage

      <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.
    • decodeOobMessage

      <T> List<T> decodeOobMessage(Class<T> domainClass, Splittable payload)
      Decode an out-of-band message.
    • process

      void process(RequestMessage req, ResponseMessage resp)
      Main processing method.