org.apache.hupa.shared.data
Class MessageAttachment

java.lang.Object
  extended by org.apache.hupa.shared.data.MessageAttachment
All Implemented Interfaces:
Serializable

public class MessageAttachment
extends Object
implements Serializable

Attachment of a message

See Also:
Serialized Form

Constructor Summary
MessageAttachment()
           
 
Method Summary
 String getContentType()
          Return the content-type of the attachment
 String getName()
          Return the name of the attachment
 int getSize()
          Return the content size in bytes
 void setContentType(String cType)
          Set the content-type of the attachment
 void setName(String name)
          Set the name of the attachment
 void setSize(int size)
          Set the content size in bytes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageAttachment

public MessageAttachment()
Method Detail

setName

public void setName(String name)
Set the name of the attachment

Parameters:
name -

getName

public String getName()
Return the name of the attachment

Returns:
name

setContentType

public void setContentType(String cType)
Set the content-type of the attachment

Parameters:
cType -

getContentType

public String getContentType()
Return the content-type of the attachment

Returns:
cType

setSize

public void setSize(int size)
Set the content size in bytes

Parameters:
size -

getSize

public int getSize()
Return the content size in bytes

Returns:
size


Copyright © 2009-2012 The Apache Software Foundation. All Rights Reserved.