站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 4.0.1 sp1 jaxrpc API Documentation 英文版文档

Part (JAXRPC API) - JBoss 4.0.1 sp1 jaxrpc API Documentation 英文版文档


org.apache.axis
Interface Part

All Superinterfaces:
Serializable
All Known Implementing Classes:
AttachmentPartImpl, MessagePart

public interface Part
extends Serializable


Method Summary
 void addMimeHeader(String header, String value)
          Add the specified MIME header, as per JAXM.
 String getContentId()
          Content ID.
 String getContentIdRef()
          Content ID.
 String getContentLocation()
          Content location.
 String getContentType()
          Content type.
 Iterator getMatchingMimeHeaders(String[] match)
          Get all headers that match
 String[] getMimeHeader(String name)
          Gets all the values of the MimeHeader object in this SOAPPart object that is identified by the given String.
 Iterator getNonMatchingMimeHeaders(String[] match)
          Get all headers that do not match
 void setContentId(String newCid)
          Sets Content-Id of this part.
 void setContentLocation(String loc)
          Set content location.
 

Method Detail

getMimeHeader

public String[] getMimeHeader(String name)
Gets all the values of the MimeHeader object in this SOAPPart object that is identified by the given String.

Parameters:
name - the name of the header; example: "Content-Type"
Returns:
a String array giving all the values for the specified header
See Also:
setMimeHeader(java.lang.String, java.lang.String)

addMimeHeader

public void addMimeHeader(String header,
                          String value)
Add the specified MIME header, as per JAXM.


getContentLocation

public String getContentLocation()
Content location.


setContentLocation

public void setContentLocation(String loc)
Set content location.


setContentId

public void setContentId(String newCid)
Sets Content-Id of this part. already defined.

Parameters:
newCid - new Content-Id

getContentId

public String getContentId()
Content ID.


getMatchingMimeHeaders

public Iterator getMatchingMimeHeaders(String[] match)
Get all headers that match


getNonMatchingMimeHeaders

public Iterator getNonMatchingMimeHeaders(String[] match)
Get all headers that do not match


getContentType

public String getContentType()
Content type.


getContentIdRef

public String getContentIdRef()
Content ID.

Returns:
the contentId reference value that should be used directly as an href in a SOAP element to reference this attachment. Not part of JAX-RPC, JAX-M, SAAJ, etc.


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.