Package com.sun.xml.ws.api.message
Class Headers
- java.lang.Object
-
- com.sun.xml.ws.api.message.Headers
-
public abstract class Headers extends Object
Factory methods for variousHeaderimplementations.This class provides various methods to create different flavors of
Headerclasses that store data in different formats.This is a part of the JAX-WS RI internal API so that
Pipeimplementations can reuse the implementations done inside the JAX-WS without having a strong dependency to the actual class.If you find some of the useful convenience methods missing from this class, please talk to us.
- Author:
- Kohsuke Kawaguchi
-
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static Headercreate(SOAPVersion soapVersion, jakarta.xml.bind.Marshaller m, Object o)Deprecated.Usecreate(BindingContext, Object)instead.static Headercreate(SOAPVersion soapVersion, jakarta.xml.bind.Marshaller m, QName tagName, Object o)Creates aHeaderbacked a by a JAXB bean, with the given tag name.static Headercreate(SOAPVersion soapVersion, XMLStreamReader reader)Creates a newHeaderthat reads fromXMLStreamReader.static Headercreate(SOAPVersion soapVersion, Element node)Deprecated.Usecreate(Element)static Headercreate(BindingContext context, Object o)static Headercreate(XMLBridge bridge, Object jaxbObject)static Headercreate(jakarta.xml.bind.JAXBContext context, Object o)Creates aHeaderbacked a by a JAXB bean.static Headercreate(jakarta.xml.soap.SOAPHeaderElement header)Creates a newHeaderbacked by a SAAJ object.static Headercreate(QName name, String value)Creates a newHeaderthat that has a single text value in it (IOW, of the form <foo>text</foo>.)static Headercreate(org.glassfish.jaxb.runtime.api.Bridge bridge, Object jaxbObject)Deprecated.static Headercreate(Element node)static HeadercreateMustUnderstand(SOAPVersion soapVersion, QName name, String value)Creates a newHeaderthat that has a single text value in it (IOW, of the form <foo>text</foo>.)
-
-
-
Method Detail
-
create
public static Header create(SOAPVersion soapVersion, jakarta.xml.bind.Marshaller m, Object o)
Deprecated.Usecreate(BindingContext, Object)instead.
-
create
public static Header create(jakarta.xml.bind.JAXBContext context, Object o)
Creates aHeaderbacked a by a JAXB bean.
-
create
public static Header create(BindingContext context, Object o)
-
create
public static Header create(SOAPVersion soapVersion, jakarta.xml.bind.Marshaller m, QName tagName, Object o)
Creates aHeaderbacked a by a JAXB bean, with the given tag name. Seecreate(SOAPVersion, Marshaller, Object)for the meaning of other parameters.- Parameters:
tagName- The name of the newly created header. Must not be null.o- The JAXB bean that represents the contents of the header. Must not be null.
-
create
public static Header create(org.glassfish.jaxb.runtime.api.Bridge bridge, Object jaxbObject)
Deprecated.Creates aHeaderbacked a by a JAXB bean.
-
create
public static Header create(jakarta.xml.soap.SOAPHeaderElement header)
Creates a newHeaderbacked by a SAAJ object.
-
create
public static Header create(SOAPVersion soapVersion, Element node)
Deprecated.Usecreate(Element)
-
create
public static Header create(SOAPVersion soapVersion, XMLStreamReader reader) throws XMLStreamException
Creates a newHeaderthat reads fromXMLStreamReader.Note that the header implementation will read the entire data into memory anyway, so this might not be as efficient as you might hope.
- Throws:
XMLStreamException
-
create
public static Header create(QName name, String value)
Creates a newHeaderthat that has a single text value in it (IOW, of the form <foo>text</foo>.)- Parameters:
name- QName of the header elementvalue- text value of the header
-
createMustUnderstand
public static Header createMustUnderstand(@NotNull SOAPVersion soapVersion, @NotNull QName name, @NotNull String value)
Creates a newHeaderthat that has a single text value in it (IOW, of the form <foo>text</foo>.)- Parameters:
name- QName of the header elementvalue- text value of the header
-
-