com.sun.xml.ws.encoding
Class StreamSOAP12Codec

java.lang.Object
  extended by com.sun.xml.ws.encoding.StreamSOAPCodec
      extended by com.sun.xml.ws.encoding.StreamSOAP12Codec
All Implemented Interfaces:
Codec, StreamSOAPCodec, RootOnlyCodec

final class StreamSOAP12Codec
extends StreamSOAPCodec

StreamSOAPCodec for SOAP 1.2.


Field Summary
static String DEFAULT_SOAP12_CONTENT_TYPE
           
static String SOAP12_MIME_TYPE
           
 
Fields inherited from class com.sun.xml.ws.encoding.StreamSOAPCodec
serializationFeature
 
Constructor Summary
StreamSOAP12Codec()
           
StreamSOAP12Codec(WSBinding binding)
           
StreamSOAP12Codec(WSFeatureList features)
           
 
Method Summary
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.
 
Methods inherited from class com.sun.xml.ws.encoding.StreamSOAPCodec
copy, create, 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
 

Field Detail

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
Constructor Detail

StreamSOAP12Codec

StreamSOAP12Codec()

StreamSOAP12Codec

StreamSOAP12Codec(WSBinding binding)

StreamSOAP12Codec

StreamSOAP12Codec(WSFeatureList features)
Method Detail

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 data
contentType - root part's MIME content type (like "application/xml")
packet - the new created Message is set in this packet
att - 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-2012 Oracle and/or its affiliates. All rights reserved.