JavaTM Platform
Standard Ed. 6

类 javax.xml.soap.AttachmentPart
的使用

使用 AttachmentPart 的软件包
javax.xml.soap 提供用于创建和构建 SOAP 消息的 API。 
 

javax.xml.soapAttachmentPart 的使用
 

返回 AttachmentPartjavax.xml.soap 中的方法
abstract  AttachmentPart SOAPMessage.createAttachmentPart()
          创建一个新的空 AttachmentPart 对象。
 AttachmentPart SOAPMessage.createAttachmentPart(DataHandler dataHandler)
          创建 AttachmentPart 对象并使用给定的 DataHandler 对象填充。
 AttachmentPart SOAPMessage.createAttachmentPart(Object content, String contentType)
          创建 AttachmentPart 对象并使用指定内容类型的指定数据填充。
abstract  AttachmentPart SOAPMessage.getAttachment(SOAPElement element)
          返回与此 SOAPElement 引用的附件关联的 AttachmentPart 对象,如果不存在此类附件,则返回 null
 

参数类型为 AttachmentPartjavax.xml.soap 中的方法
abstract  void SOAPMessage.addAttachmentPart(AttachmentPart AttachmentPart)
          将给定的 AttachmentPart 对象添加到此 SOAPMessage 对象。
 


JavaTM Platform
Standard Ed. 6


© ChiefLeo 沪ICP备19010539号-1 - ChiefLeo博客 - ChiefLeo上网导航 - ChiefLeo知识库 - ChiefLeo新闻 - ChiefLeo精选视频