Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.
17.3. JAXB and XML provider
RESTEasy provides the required JAXB provider support for XML. It has several additional annotations to make application coding simpler.
17.3.1. @XmlHeader and @Stylesheet Link kopierenLink in die Zwischenablage kopiert!
Link kopierenLink in die Zwischenablage kopiert!
To set an XML header when you output XML documents, use the
@org.jboss.resteasy.annotations.providers.jaxb.XmlHeader annotation.
Here, the
@XmlHeader forces an xml-stylesheet header on the XML output. The same result can be obtained by placing the header on the Thing class. Read the JavaDocs for further information regarding the substitution values provided by RESTEasy.
RESTEasy also has a convenient annotation for stylesheet headers. For example: