com.sun.xml.ws.encoding
Class ContentTypeImpl

java.lang.Object
  extended by com.sun.xml.ws.encoding.ContentTypeImpl
All Implemented Interfaces:
com.oracle.webservices.api.message.ContentType

public final class ContentTypeImpl
extends java.lang.Object
implements ContentType


Nested Class Summary
static class ContentTypeImpl.Builder
           
 
Constructor Summary
ContentTypeImpl(java.lang.String contentType)
           
ContentTypeImpl(java.lang.String contentType, java.lang.String soapAction)
           
ContentTypeImpl(java.lang.String contentType, java.lang.String soapAction, java.lang.String accept)
           
ContentTypeImpl(java.lang.String contentType, java.lang.String soapAction, java.lang.String accept, java.lang.String charsetParam)
           
 
Method Summary
 java.lang.String getAcceptHeader()
          Controls the Accept transport header, if the transport supports it.
 java.lang.String getBoundary()
           
 java.lang.String getBoundaryParameter()
           
 java.lang.String getCharSet()
          Returns the character set encoding.
 java.lang.String getContentType()
          Gives non-null Content-Type header value.
 java.lang.String getRootId()
           
 java.lang.String getSOAPActionHeader()
          Gives SOAPAction transport header value.
 void setAcceptHeader(java.lang.String accept)
           
 void setBoundary(java.lang.String boundary)
           
 void setBoundaryParameter(java.lang.String boundaryParameter)
           
 void setRootId(java.lang.String rootId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContentTypeImpl

public ContentTypeImpl(java.lang.String contentType)

ContentTypeImpl

public ContentTypeImpl(java.lang.String contentType,
                       @Nullable
                       java.lang.String soapAction)

ContentTypeImpl

public ContentTypeImpl(java.lang.String contentType,
                       @Nullable
                       java.lang.String soapAction,
                       @Nullable
                       java.lang.String accept)

ContentTypeImpl

public ContentTypeImpl(java.lang.String contentType,
                       @Nullable
                       java.lang.String soapAction,
                       @Nullable
                       java.lang.String accept,
                       java.lang.String charsetParam)
Method Detail

getCharSet

@Nullable
public java.lang.String getCharSet()
Returns the character set encoding.

Returns:
returns the character set encoding.

getContentType

public java.lang.String getContentType()
Description copied from interface: com.oracle.webservices.api.message.ContentType
Gives non-null Content-Type header value.

Specified by:
getContentType in interface com.oracle.webservices.api.message.ContentType

getSOAPActionHeader

public java.lang.String getSOAPActionHeader()
Description copied from interface: com.oracle.webservices.api.message.ContentType
Gives SOAPAction transport header value. It will be non-null only for SOAP 1.1 messages. In other cases it MUST be null. The SOAPAction transport header should be written out only when its non-null.

Specified by:
getSOAPActionHeader in interface com.oracle.webservices.api.message.ContentType
Returns:
It can be null, in that case SOAPAction header should be written.

getAcceptHeader

public java.lang.String getAcceptHeader()
Description copied from interface: com.oracle.webservices.api.message.ContentType
Controls the Accept transport header, if the transport supports it. Returning null means the transport need not add any new header.

We realize that this is not an elegant abstraction, but this would do for now. If another person comes and asks for a similar functionality, we'll define a real abstraction.

Specified by:
getAcceptHeader in interface com.oracle.webservices.api.message.ContentType

setAcceptHeader

public void setAcceptHeader(java.lang.String accept)

getBoundary

public java.lang.String getBoundary()

setBoundary

public void setBoundary(java.lang.String boundary)

getBoundaryParameter

public java.lang.String getBoundaryParameter()

setBoundaryParameter

public void setBoundaryParameter(java.lang.String boundaryParameter)

getRootId

public java.lang.String getRootId()

setRootId

public void setRootId(java.lang.String rootId)


Copyright (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.