Package net.morimekta.providence.server
Class DefaultProcessorHandler
- java.lang.Object
-
- net.morimekta.providence.server.DefaultProcessorHandler
-
- All Implemented Interfaces:
ProcessorHandler
public class DefaultProcessorHandler extends java.lang.Object implements ProcessorHandler
Service processor wraps the service' Processor implementation of thePServiceCallHandler
so that it can read the service call message parsed into aPServiceCall
, 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.
-
-
-
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 interfaceProcessorHandler
- 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.
-
-