Class XML2HTTP
java.lang.Object
com.predic8.membrane.core.interceptor.rest.XML2HTTP
Reverse of
Request.write(XMLStreamWriter) and
Response.write(XMLStreamWriter).-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidunwrapMessageIfNecessary(Message message) Checks, if the response contains an XML doc with NSConstants.HTTP_NS.
-
Constructor Details
-
XML2HTTP
public XML2HTTP()
-
-
Method Details
-
unwrapMessageIfNecessary
Checks, if the response contains an XML doc with NSConstants.HTTP_NS. If it does, the HTTP data (uri, method, status, headers, body) is extracted from the doc and set as the response.Reverse of
Request.write(XMLStreamWriter)andResponse.write(XMLStreamWriter).
-