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, getStaticContentTypepublic static final String SOAP12_MIME_TYPE
public static final String DEFAULT_SOAP12_CONTENT_TYPE
StreamSOAP12Codec()
StreamSOAP12Codec(WSBinding binding)
StreamSOAP12Codec(WSFeatureList features)
public String getMimeType()
CodecIf 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 StreamSOAPCodecprotected ContentType getContentType(Packet packet)
getContentType in class StreamSOAPCodecpublic void decode(InputStream in, String contentType, Packet packet, AttachmentSet att) throws IOException
RootOnlyCodecInputStream and constructs a Message
along with the given attachments.decode in interface RootOnlyCodecdecode in class StreamSOAPCodecin - 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 StreamSOAPCodecprotected String getDefaultContentType()
getDefaultContentType in class StreamSOAPCodecCopyright (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.