Jive Forums API (5.5.20.2-oracle) Developer Javadocs

com.jivesoftware.base.action.multipart
Class UploadListener

java.lang.Object
  extended by com.jivesoftware.base.action.multipart.UploadListener
All Implemented Interfaces:
OutputStreamListener

public class UploadListener
extends java.lang.Object
implements OutputStreamListener

This class implements the OutputStreamListener interface and updates an UploadInfo object in the session (using the attribute key 'uploadInfo') with the current state of the upload.


Constructor Summary
UploadListener(javax.servlet.http.HttpServletRequest request)
           
 
Method Summary
 void bytesRead(int bytesRead)
          Called when bytes are read from the output stream.
 void done()
          Called when reading from the output stream is completed.
 void error(java.lang.String message)
          Called if there was an error reading from the output stream.
 void reset()
           
 void start()
          Called when reading from the output stream is started.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UploadListener

public UploadListener(javax.servlet.http.HttpServletRequest request)
Method Detail

start

public void start()
Description copied from interface: OutputStreamListener
Called when reading from the output stream is started.

Specified by:
start in interface OutputStreamListener

bytesRead

public void bytesRead(int bytesRead)
Description copied from interface: OutputStreamListener
Called when bytes are read from the output stream.

Specified by:
bytesRead in interface OutputStreamListener
Parameters:
bytesRead - the number of bytes read from the stream.

error

public void error(java.lang.String message)
Description copied from interface: OutputStreamListener
Called if there was an error reading from the output stream.

Specified by:
error in interface OutputStreamListener
Parameters:
message - the error message.

done

public void done()
Description copied from interface: OutputStreamListener
Called when reading from the output stream is completed.

Specified by:
done in interface OutputStreamListener

reset

public void reset()

Jive Forums Project Page

Copyright © 1999-2006 Jive Software.