@Alternative public class RecoveringGENAEventProcessorImpl extends PullGENAEventProcessorImpl
This processor extends PullGENAEventProcessorImpl, it will always
first try to read messages regularly with the superclass' methods before
trying to recover from a failure.
When the superclass can't read the message, this processor will try to recover from broken XML by for example, detecting wrongly encoded XML entities, and working around other vendor-specific bugs caused by incompatible UPnP stacks in the wild.
This processor will also return partial results, if at least a single state variable value could be recovered from the (broken) event XML.
| Constructor and Description |
|---|
RecoveringGENAEventProcessorImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
fixXMLEncodedLastChange(String xml) |
void |
readBody(IncomingEventRequestMessage requestMessage)
Transforms an XML message body and adds to a collection of
StateVariableValues.. |
readProperties, readPropertycreateDocumentBuilderFactory, error, fatalError, getMessageBody, getUnprefixedNodeName, readProperties, readPropertysetElement, toString, warning, writeBody, writeProperties, writePropertysetElementpublic void readBody(IncomingEventRequestMessage requestMessage) throws UnsupportedDataException
GENAEventProcessorStateVariableValues..readBody in interface GENAEventProcessorreadBody in class PullGENAEventProcessorImplrequestMessage - The message to transform.UnsupportedDataExceptionCopyright © 2015 4th Line GmbH, Switzerland. All rights reserved.