Este contenido no está disponible en el idioma seleccionado.
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 Copiar enlaceEnlace copiado en el portapapeles!
Copiar enlaceEnlace copiado en el portapapeles!
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: