gov.grants.apply.util
Class Attachment

java.lang.Object
  extended bygov.grants.apply.util.Attachment

public class Attachment
extends java.lang.Object

Author:
Brian Husted

Constructor Summary
Attachment(java.lang.String fileName)
           
 
Method Summary
 java.lang.String getAttachmentXML()
           
 org.apache.soap.util.mime.ByteArrayDataSource getByteArrayDS()
           
 java.lang.String getContentId()
           
 java.lang.String getContentType()
           
 java.io.File getFile()
           
 java.lang.String getFileName()
           
 java.lang.String getHashValue()
           
 void setByteArrayDS(org.apache.soap.util.mime.ByteArrayDataSource byteArrayDS)
           
 void setContentId(java.lang.String contentId)
           
 void setContentType(java.lang.String contentType)
           
 void setFile(java.io.File file)
           
 void setFileName(java.lang.String fileName)
           
 void setHashValue(java.lang.String hashValue)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Attachment

public Attachment(java.lang.String fileName)
Method Detail

getFile

public java.io.File getFile()
Returns:
Returns the file.

setFile

public void setFile(java.io.File file)
Parameters:
file - The file to set.

getByteArrayDS

public org.apache.soap.util.mime.ByteArrayDataSource getByteArrayDS()
Returns:
Returns the byteArrayDS.

setByteArrayDS

public void setByteArrayDS(org.apache.soap.util.mime.ByteArrayDataSource byteArrayDS)
Parameters:
byteArrayDS - The byteArrayDS to set.

getContentId

public java.lang.String getContentId()
Returns:
Returns the contentId.

setContentId

public void setContentId(java.lang.String contentId)
Parameters:
contentId - The contentId to set.

getContentType

public java.lang.String getContentType()
Returns:
Returns the contentType.

setContentType

public void setContentType(java.lang.String contentType)
Parameters:
contentType - The contentType to set.

getFileName

public java.lang.String getFileName()
Returns:
Returns the fileName.

setFileName

public void setFileName(java.lang.String fileName)
Parameters:
fileName - The fileName to set.

getAttachmentXML

public java.lang.String getAttachmentXML()

getHashValue

public java.lang.String getHashValue()
Returns:
Returns the hashValue.

setHashValue

public void setHashValue(java.lang.String hashValue)
Parameters:
hashValue - The hashValue to set.