All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jboss.resteasy.annotations.providers.jaxb.XmlHeader Maven / Gradle / Ivy

There is a newer version: 7.0.0.Alpha4
Show newest version
package org.jboss.resteasy.annotations.providers.jaxb;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import jakarta.xml.bind.Marshaller;

import org.jboss.resteasy.annotations.Decorator;
import org.jboss.resteasy.plugins.providers.jaxb.XmlHeaderProcessor;

/**
 * Sets an XML header for the returned document.
 * 

* You can use replacement expressions in value string. * * @author Bill Burke * @version $Revision: 1 $ * @see org.jboss.resteasy.util.StringContextReplacement */ @Target({ ElementType.TYPE, ElementType.METHOD, ElementType.PARAMETER, ElementType.FIELD }) @Retention(RetentionPolicy.RUNTIME) @Decorator(processor = XmlHeaderProcessor.class, target = Marshaller.class) public @interface XmlHeader { String value(); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy