Class DefaultProcessorHandler

  • All Implemented Interfaces:
    ProcessorHandler

    public class DefaultProcessorHandler
    extends java.lang.Object
    implements ProcessorHandler
    Service processor wraps the service' Processor implementation of the PServiceCallHandler so that it can read the service call message parsed into a PServiceCall, and write the response with proper exception handling.
    • Constructor Summary

      Constructors 
      Constructor Description
      DefaultProcessorHandler​(net.morimekta.providence.PProcessor processor)
      Wrap a service with a service call handler to work as the server side of a providence service.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void process​(net.morimekta.providence.mio.MessageReader reader, net.morimekta.providence.mio.MessageWriter writer)
      Process message read from reader, and write response to writer.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultProcessorHandler

        public DefaultProcessorHandler​(@Nonnull
                                       net.morimekta.providence.PProcessor processor)
        Wrap a service with a service call handler to work as the server side of a providence service.
        Parameters:
        processor - The service call handler.
    • Method Detail

      • process

        public void process​(net.morimekta.providence.mio.MessageReader reader,
                            net.morimekta.providence.mio.MessageWriter writer)
                     throws java.io.IOException
        Description copied from interface: ProcessorHandler
        Process message read from reader, and write response to writer.
        Specified by:
        process in interface ProcessorHandler
        Parameters:
        reader - The message reader for the request.
        writer - The message writer for the response.
        Throws:
        java.io.IOException - In failure to handle input or output.