@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
StateVariableValue s.. |
readProperties, readProperty
createDocumentBuilderFactory, error, fatalError, getMessageBody, getUnprefixedNodeName, readProperties, readPropertysetElement, toString, warning, writeBody, writeProperties, writePropertysetElement
public void readBody(IncomingEventRequestMessage requestMessage) throws UnsupportedDataException
GENAEventProcessor
StateVariableValue
s..readBody
in interface GENAEventProcessor
readBody
in class PullGENAEventProcessorImpl
requestMessage
- The message to transform.UnsupportedDataException
Copyright © 2016 4th Line GmbH, Switzerland. All rights reserved.