public abstract class Headers extends Object
Header
implementations.
This class provides various methods to create different
flavors of Header
classes that store data
in different formats.
This is a part of the JAX-WS RI internal API so that
Pipe
implementations 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.
Modifier and Type | Method and Description |
---|---|
static Header |
create(BindingContext context,
Object o) |
static Header |
create(com.sun.xml.bind.api.Bridge bridge,
Object jaxbObject)
Deprecated.
|
static Header |
create(Element node)
|
static Header |
create(JAXBContext context,
Object o)
Creates a
Header backed a by a JAXB bean. |
static Header |
create(QName name,
String value)
Creates a new
Header that that has a single text value in it
(IOW, of the form <foo>text</foo>.) |
static Header |
create(javax.xml.soap.SOAPHeaderElement header)
Creates a new
Header backed by a SAAJ object. |
static Header |
create(SOAPVersion soapVersion,
Element node)
Deprecated.
Use
create(Element) |
static Header |
create(SOAPVersion soapVersion,
Marshaller m,
Object o)
Deprecated.
Use
create(BindingContext, Object) instead. |
static Header |
create(SOAPVersion soapVersion,
Marshaller m,
QName tagName,
Object o)
Creates a
Header backed a by a JAXB bean, with the given tag name. |
static Header |
create(SOAPVersion soapVersion,
javax.xml.stream.XMLStreamReader reader)
Creates a new
Header that reads from XMLStreamReader . |
static Header |
create(XMLBridge bridge,
Object jaxbObject) |
static Header |
createMustUnderstand(SOAPVersion soapVersion,
QName name,
String value)
Creates a new
Header that that has a single text value in it
(IOW, of the form <foo>text</foo>.) |
public static Header create(SOAPVersion soapVersion, Marshaller m, Object o)
create(BindingContext, Object)
instead.public static Header create(JAXBContext context, Object o)
Header
backed a by a JAXB bean.public static Header create(BindingContext context, Object o)
public static Header create(SOAPVersion soapVersion, Marshaller m, QName tagName, Object o)
Header
backed a by a JAXB bean, with the given tag name.
See create(SOAPVersion, Marshaller, Object)
for the meaning
of other 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.public static Header create(com.sun.xml.bind.api.Bridge bridge, Object jaxbObject)
Header
backed a by a JAXB bean.public static Header create(javax.xml.soap.SOAPHeaderElement header)
Header
backed by a SAAJ object.public static Header create(SOAPVersion soapVersion, Element node)
create(Element)
public static Header create(SOAPVersion soapVersion, javax.xml.stream.XMLStreamReader reader) throws javax.xml.stream.XMLStreamException
Header
that reads from XMLStreamReader
.
Note that the header implementation will read the entire data into memory anyway, so this might not be as efficient as you might hope.
public static Header create(QName name, String value)
Header
that that has a single text value in it
(IOW, of the form <foo>text</foo>.)name
- QName of the header elementvalue
- text value of the headerpublic static Header createMustUnderstand(@NotNull SOAPVersion soapVersion, @NotNull QName name, @NotNull String value)
Header
that that has a single text value in it
(IOW, of the form <foo>text</foo>.)name
- QName of the header elementvalue
- text value of the headerCopyright (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.