public class RealisationRequest extends Object implements Runnable
The object will parse the xml from the client socket and return a surface realisation of the xml structure.
If an exception occurs, the request attempts to inform the client by sending a string that starts with "Exception: " and continues with the message of the exception. Sending the error might fail (for example, if the client disconnected).
The program implements the "standard" socket protocol: each message is preceded with an integer indicating the length of the message (int is 4 bytes).
| Constructor and Description |
|---|
RealisationRequest(Socket s) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
doRealisation(Reader inputReader) |
void |
run() |
public RealisationRequest(Socket s)
protected String doRealisation(Reader inputReader) throws XMLRealiserException
XMLRealiserExceptionCopyright © 2020. All Rights Reserved.