com.moyosoft.exchange.attachment
Class AttachmentInfo

java.lang.Object
  extended by com.moyosoft.exchange.attachment.AttachmentInfo

public class AttachmentInfo
extends java.lang.Object

Contains information on an attachment.


Constructor Summary
AttachmentInfo(java.lang.String name)
          Creates an information object for a new attachment with the specified parameters.
AttachmentInfo(java.lang.String name, java.lang.String contentId)
          Creates an information object for a new attachment with the specified parameters.
AttachmentInfo(java.lang.String name, java.lang.String contentId, java.lang.String contentType)
          Creates an information object for a new attachment with the specified parameters.
AttachmentInfo(java.lang.String name, java.lang.String contentId, java.lang.String contentType, java.lang.String contentLocation)
          Creates an information object for a new attachment with the specified parameters.
 
Method Summary
 java.lang.String getContentId()
          Returns an application-specific identifier for the contents of an attachment.
 java.lang.String getContentLocation()
          Returns the URI corresponding to the location of the content of the attachment.
 java.lang.String getContentType()
          Returns the MIME type of the attachment content.
 java.lang.String getName()
          Returns the displayed name of the attachment.
 void setContentId(java.lang.String contentId)
          Sets an application-specific identifier for the contents of an attachment.
 void setContentLocation(java.lang.String contentLocation)
          Sets the URI corresponding to the location of the content of the attachment.
 void setContentType(java.lang.String contentType)
          Sets the MIME type of the attachment content.
 void setName(java.lang.String name)
          Sets the displayed name of the attachment.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttachmentInfo

public AttachmentInfo(java.lang.String name)
Creates an information object for a new attachment with the specified parameters.

Parameters:
name - the displayed name of the attachment.

AttachmentInfo

public AttachmentInfo(java.lang.String name,
                      java.lang.String contentId)
Creates an information object for a new attachment with the specified parameters.

Parameters:
name - the displayed name of the attachment.
contentId - an application-specific identifier for the contents of an attachment.

AttachmentInfo

public AttachmentInfo(java.lang.String name,
                      java.lang.String contentId,
                      java.lang.String contentType)
Creates an information object for a new attachment with the specified parameters.

Parameters:
name - the displayed name of the attachment.
contentId - an application-specific identifier for the contents of an attachment.
contentType - the MIME type of the attachment content.

AttachmentInfo

public AttachmentInfo(java.lang.String name,
                      java.lang.String contentId,
                      java.lang.String contentType,
                      java.lang.String contentLocation)
Creates an information object for a new attachment with the specified parameters.

Parameters:
name - the displayed name of the attachment.
contentId - an application-specific identifier for the contents of an attachment.
contentType - the MIME type of the attachment content.
contentLocation - the URI corresponding to the location of the content of the attachment.
Method Detail

getName

public java.lang.String getName()
Returns the displayed name of the attachment.


setName

public void setName(java.lang.String name)
Sets the displayed name of the attachment.


getContentId

public java.lang.String getContentId()
Returns an application-specific identifier for the contents of an attachment.


setContentId

public void setContentId(java.lang.String contentId)
Sets an application-specific identifier for the contents of an attachment.


getContentType

public java.lang.String getContentType()
Returns the MIME type of the attachment content.


setContentType

public void setContentType(java.lang.String contentType)
Sets the MIME type of the attachment content.


getContentLocation

public java.lang.String getContentLocation()
Returns the URI corresponding to the location of the content of the attachment.


setContentLocation

public void setContentLocation(java.lang.String contentLocation)
Sets the URI corresponding to the location of the content of the attachment.