本文整理汇总了Java中com.sun.xml.internal.ws.encoding.ContentTypeImpl类的典型用法代码示例。如果您正苦于以下问题:Java ContentTypeImpl类的具体用法?Java ContentTypeImpl怎么用?Java ContentTypeImpl使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ContentTypeImpl类属于com.sun.xml.internal.ws.encoding包,在下文中一共展示了ContentTypeImpl类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getContentType
import com.sun.xml.internal.ws.encoding.ContentTypeImpl; //导入依赖的package包/类
protected ContentType getContentType(String soapAction) {
if (soapAction == null || soapAction.length() == 0) {
return _defaultContentType;
} else {
return new ContentTypeImpl(_defaultContentType.getContentType(), soapAction);
}
}
示例2: getContentType
import com.sun.xml.internal.ws.encoding.ContentTypeImpl; //导入依赖的package包/类
protected ContentType getContentType(String soapAction) {
if (soapAction == null) {
return _defaultContentType;
} else {
return new ContentTypeImpl(
_defaultContentType.getContentType() + ";action=\""+soapAction+"\"");
}
}
示例3: FastInfosetStreamSOAPCodec
import com.sun.xml.internal.ws.encoding.ContentTypeImpl; //导入依赖的package包/类
FastInfosetStreamSOAPCodec(StreamSOAPCodec soapCodec, SOAPVersion soapVersion, boolean retainState, String mimeType) {
// _soapCodec = StreamSOAPCodec.create(soapVersion);
_soapCodec = soapCodec;
_retainState = retainState;
_defaultContentType = new ContentTypeImpl(mimeType);
}
示例4: FastInfosetCodec
import com.sun.xml.internal.ws.encoding.ContentTypeImpl; //导入依赖的package包/类
FastInfosetCodec(boolean retainState) {
_retainState = retainState;
_contentType = (retainState) ? new ContentTypeImpl(FastInfosetMIMETypes.STATEFUL_INFOSET) :
new ContentTypeImpl(FastInfosetMIMETypes.INFOSET);
}
示例5: build
import com.sun.xml.internal.ws.encoding.ContentTypeImpl; //导入依赖的package包/类
public ContentType build() {
//TODO Do we want to remove this implementation dependency?
return new ContentTypeImpl(contentType, soapAction, accept, charset);
}