public class GENAEventProcessorImpl extends Object implements GENAEventProcessor, ErrorHandler
Constructor and Description |
---|
GENAEventProcessorImpl() |
Modifier and Type | Method and Description |
---|---|
protected DocumentBuilderFactory |
createDocumentBuilderFactory() |
void |
error(SAXParseException e) |
void |
fatalError(SAXParseException e) |
protected String |
getMessageBody(UpnpMessage message) |
protected String |
getUnprefixedNodeName(Node node) |
void |
readBody(IncomingEventRequestMessage requestMessage)
Transforms an XML message body and adds to a collection of
StateVariableValue s.. |
protected void |
readProperties(Element propertysetElement,
IncomingEventRequestMessage message) |
protected Element |
readPropertysetElement(Document d) |
protected String |
toString(Document d) |
void |
warning(SAXParseException e) |
void |
writeBody(OutgoingEventRequestMessage requestMessage)
Transforms a collection of
StateVariableValue s into an XML message body. |
protected void |
writeProperties(Document d,
Element propertysetElement,
OutgoingEventRequestMessage message) |
protected Element |
writePropertysetElement(Document d) |
protected DocumentBuilderFactory createDocumentBuilderFactory() throws FactoryConfigurationError
FactoryConfigurationError
public void writeBody(OutgoingEventRequestMessage requestMessage) throws UnsupportedDataException
GENAEventProcessor
StateVariableValue
s into an XML message body.writeBody
in interface GENAEventProcessor
requestMessage
- The message to transform.UnsupportedDataException
public void readBody(IncomingEventRequestMessage requestMessage) throws UnsupportedDataException
GENAEventProcessor
StateVariableValue
s..readBody
in interface GENAEventProcessor
requestMessage
- The message to transform.UnsupportedDataException
protected void writeProperties(Document d, Element propertysetElement, OutgoingEventRequestMessage message)
protected void readProperties(Element propertysetElement, IncomingEventRequestMessage message)
protected String getMessageBody(UpnpMessage message) throws UnsupportedDataException
UnsupportedDataException
public void warning(SAXParseException e) throws SAXException
warning
in interface ErrorHandler
SAXException
public void error(SAXParseException e) throws SAXException
error
in interface ErrorHandler
SAXException
public void fatalError(SAXParseException e) throws SAXException
fatalError
in interface ErrorHandler
SAXException
Copyright © 2016 4th Line GmbH, Switzerland. All rights reserved.