public abstract class XMLRequest extends Object
Constructor and Description |
---|
XMLRequest() |
Modifier and Type | Method and Description |
---|---|
List<MessageBox> |
getAllMessageBoxes()
Returns a List of all MessageBoxes object if the server returns messages for this request.
|
MessageBox |
getMessageBox()
Returns a MessageBox object if the server returns a message for this request.
|
String |
getRequestID(String defaultValue)
Sub classes may override to send a UUID instead.
|
void |
handleResponse(com.uc4.util.XMLDocument doc,
ConnectionAttributes session)
Handles the response from the server.
|
void |
send(Document doc,
ConnectionAttributes sessioninfo,
String nr)
Prepares the request for sending.
|
boolean |
showQuarantineNotification()
Returns
true if a new quarantine message has been found. |
public final void handleResponse(com.uc4.util.XMLDocument doc, ConnectionAttributes session)
IResponseHandler#handleResponse
.doc
- Document returned from the serversession
- Information about the sessionpublic boolean showQuarantineNotification()
true
if a new quarantine message has been found.
This information can be used to show an alert message to users.
The request GetQuarantineMessage
can be used to get more details about the crash.public final MessageBox getMessageBox()
public final List<MessageBox> getAllMessageBoxes()
public void send(Document doc, ConnectionAttributes sessioninfo, String nr)
doc
- DOMsessioninfo
- Information about the UC4 sessionnr
- Request numberCopyright © 2021. All rights reserved.