SilverStream
Application Server 3.5

com.sssw.shr.page
Class AgpFileUploadEvent

java.lang.Object
 |
 +--java.util.EventObject
       |
       +--com.sssw.shr.page.AgpFileUploadEvent
All Implemented Interfaces:
Serializable

public class AgpFileUploadEvent
extends EventObject

Custom event for FileUpload page controls.

See Also:
Serialized Form

Fields inherited from class java.util.EventObject
source
 
Constructor Summary
AgpFileUploadEvent()
           
 
Method Summary
 byte[] getContent()
          Returns the file contents as an array of bytes.
 String getContentType()
          Returns the MIME-type string that describes the data being uploaded.
 String getOriginalPath()
          Returns the Pathname that was specified to the browser.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AgpFileUploadEvent

public AgpFileUploadEvent()
Method Detail

getOriginalPath

public final String getOriginalPath()
Returns the Pathname that was specified to the browser.
See Also:
AgpFileUploadEvent.getContent(), AgpFileUploadEvent.getContentType()

getContentType

public final String getContentType()
Returns the MIME-type string that describes the data being uploaded. This string is generated by the browser based on the file that is chosen.
See Also:
AgpFileUploadEvent.getContent(), AgpFileUploadEvent.getOriginalPath()

getContent

public final byte[] getContent()
Returns the file contents as an array of bytes. The size of the byte array is the size of the file contents.
Usage:

If the filename was invalid, a zero-length byte will be returned.

See Also:
AgpFileUploadEvent.getContentType(), AgpFileUploadEvent.getOriginalPath()

SilverStream
Application Server 3.5