public interface WebServerInterface
The first character the HTTP request string is passed to the
onClientRequest
routine. The rest of the string is read from
the socket.
The implementor of the WebServerInterface should close the socket as soon as possible and then stop the execution of e.g. the thread in order to release resources and memory to the Server.
Modifier and Type | Method and Description |
---|---|
void |
dispose()
This method is called when the web server interface is disposed of.
|
void |
initialize(ClientSessionManager csm)
This method is called just after creation of the web server interface.
|
void |
onClientRequest(ServerSocketInterface ssi,
ISocket socket,
int firstChar,
String id)
This method is called whenever a web server request is called
from a client.
|
void initialize(ClientSessionManager csm) throws IOException
IOException
- if there is a problem in loading the web server.void onClientRequest(ServerSocketInterface ssi, ISocket socket, int firstChar, String id) throws IOException
IOException
- if there is a problem in requesting the data
from the server.void dispose()
Phantom® and NetPhantom® are registered trademarks of Mindus SARL.
© © Mindus SARL, 2024. All rights reserved.