public interface ServiceHandler
Modifier and Type | Method and Description |
---|---|
void |
handleRequest(ServiceEnvironment environment,
java.io.BufferedReader in,
java.io.PrintWriter out)
Invoked whenever a client connects to the service.
|
void handleRequest(ServiceEnvironment environment, java.io.BufferedReader in, java.io.PrintWriter out) throws java.io.IOException
environment
- is the registered environment of the service. A handler can
use this parameter to, for example, log messages.in
- is the buffer from which the client's request can be read.out
- is the buffer where a possible response to the client can be
written.java.io.IOException