final class StreamSOAP12Codec extends StreamSOAPCodec
StreamSOAPCodec
for SOAP 1.2.Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_SOAP12_CONTENT_TYPE |
static String |
SOAP12_MIME_TYPE |
serializationFeature
Constructor and Description |
---|
StreamSOAP12Codec() |
StreamSOAP12Codec(WSBinding binding) |
StreamSOAP12Codec(WSFeatureList features) |
Modifier and Type | Method and Description |
---|---|
protected StreamHeader |
createHeader(javax.xml.stream.XMLStreamReader reader,
com.sun.xml.stream.buffer.XMLStreamBuffer mark) |
void |
decode(InputStream in,
String contentType,
Packet packet,
AttachmentSet att)
Reads root part bytes from
InputStream and constructs a Message
along with the given attachments. |
protected ContentType |
getContentType(Packet packet) |
protected String |
getDefaultContentType() |
protected List<String> |
getExpectedContentTypes() |
String |
getMimeType()
Get the MIME type associated with this Codec.
|
copy, create, create, create, decode, decode, decode, decode, decode, encode, encode, getContenTypeBuilder, getStaticContentType
public static final String SOAP12_MIME_TYPE
public static final String DEFAULT_SOAP12_CONTENT_TYPE
StreamSOAP12Codec()
StreamSOAP12Codec(WSBinding binding)
StreamSOAP12Codec(WSFeatureList features)
public String getMimeType()
Codec
If available the MIME type will represent the media that the codec encodes and decodes. The MIME type returned will be the most general representation independent of an instance of this MIME type utilized as a MIME content-type.
Codec
implementation. Otherwise the MIME type is returned.protected final StreamHeader createHeader(javax.xml.stream.XMLStreamReader reader, com.sun.xml.stream.buffer.XMLStreamBuffer mark)
createHeader
in class StreamSOAPCodec
protected ContentType getContentType(Packet packet)
getContentType
in class StreamSOAPCodec
public void decode(InputStream in, String contentType, Packet packet, AttachmentSet att) throws IOException
RootOnlyCodec
InputStream
and constructs a Message
along with the given attachments.decode
in interface RootOnlyCodec
decode
in class StreamSOAPCodec
in
- root part's datacontentType
- root part's MIME content type (like "application/xml")packet
- the new created Message
is set in this packetatt
- attachmentsIOException
- if InputStream
throws an exception.protected List<String> getExpectedContentTypes()
getExpectedContentTypes
in class StreamSOAPCodec
protected String getDefaultContentType()
getDefaultContentType
in class StreamSOAPCodec
Copyright (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.