public class LoadServer.MyRequestHandler extends Object implements HttpServerRequestHandler
| Constructor and Description |
|---|
MyRequestHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
process(ConnectionContext connectionContext,
HttpRequest request,
OutputStream outputStream)
Processes one HTTP request
|
public void process(ConnectionContext connectionContext, HttpRequest request, OutputStream outputStream) throws IOException
HttpServerRequestHandlerprocess in interface HttpServerRequestHandlerconnectionContext - - context of the client connectionrequest - - an incoming requestoutputStream - - output stream where a response needs to be written, do not close this stream unless you wish to
close the connection to the client. The client might make several requests on the same connection.IOException - - thrown when connection is closed or the request does not follow HTTP standardsCopyright © 2019. All rights reserved.