public class DefaultProcessorHandler extends Object implements ProcessorHandler
PServiceCallHandler so that it can read the service call message
parsed into a PServiceCall, and write the response with proper
exception handling.| Constructor and Description |
|---|
DefaultProcessorHandler(PProcessor processor)
Wrap a service with a service call handler to work as the server side
of a providence service.
|
| Modifier and Type | Method and Description |
|---|---|
void |
process(MessageReader reader,
MessageWriter writer)
Process message read from reader, and write response to writer.
|
public DefaultProcessorHandler(@Nonnull PProcessor processor)
processor - The service call handler.public void process(MessageReader reader, MessageWriter writer) throws IOException
ProcessorHandlerprocess in interface ProcessorHandlerreader - The message reader for the request.writer - The message writer for the response.IOException - In failure to handle input or output.Copyright © 2015–2018 morimekta.net. All rights reserved.