com.sun.xml.ws.encoding
Class StreamSOAP12Codec
java.lang.Object
com.sun.xml.ws.encoding.StreamSOAPCodec
com.sun.xml.ws.encoding.StreamSOAP12Codec
- All Implemented Interfaces:
- Codec, StreamSOAPCodec, RootOnlyCodec
final class StreamSOAP12Codec
- extends StreamSOAPCodec
StreamSOAPCodec for SOAP 1.2.
| Methods inherited from class com.sun.xml.ws.encoding.StreamSOAPCodec |
copy, create, create, decode, decode, decode, decode, decode, encode, encode, getContenTypeBuilder, getStaticContentType |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SOAP12_MIME_TYPE
public static final String SOAP12_MIME_TYPE
- See Also:
- Constant Field Values
DEFAULT_SOAP12_CONTENT_TYPE
public static final String DEFAULT_SOAP12_CONTENT_TYPE
- See Also:
- Constant Field Values
StreamSOAP12Codec
StreamSOAP12Codec()
StreamSOAP12Codec
StreamSOAP12Codec(WSBinding binding)
getMimeType
public String getMimeType()
- Description copied from interface:
Codec
- Get the MIME type associated with this 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.
- Returns:
- null if the MIME type can't be determined by the
Codec
implementation. Otherwise the MIME type is returned.
createHeader
protected final StreamHeader createHeader(javax.xml.stream.XMLStreamReader reader,
com.sun.xml.stream.buffer.XMLStreamBuffer mark)
- Specified by:
createHeader in class StreamSOAPCodec
getContentType
protected ContentType getContentType(Packet packet)
- Specified by:
getContentType in class StreamSOAPCodec
decode
public void decode(InputStream in,
String contentType,
Packet packet,
AttachmentSet att)
throws IOException
- Description copied from interface:
RootOnlyCodec
- Reads root part bytes from
InputStream and constructs a Message
along with the given attachments.
- Specified by:
decode in interface RootOnlyCodec- Overrides:
decode in class StreamSOAPCodec
- Parameters:
in - root part's datacontentType - root part's MIME content type (like "application/xml")packet - the new created Message is set in this packetatt - attachments
- Throws:
IOException - if InputStream throws an exception.
getExpectedContentTypes
protected List<String> getExpectedContentTypes()
- Specified by:
getExpectedContentTypes in class StreamSOAPCodec
getDefaultContentType
protected String getDefaultContentType()
- Specified by:
getDefaultContentType in class StreamSOAPCodec
Copyright (c) 1997-2011 Oracle and/or its affiliates. All rights reserved.