|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--de.mud.jta.Plugin | +--de.mud.jta.plugin.Capture
A capture plugin that captures data and stores it in a defined location. The location is specified as a plugin configuration option Capture.url and can be used in conjunction with the UploadServlet from the tools directory.
Parametrize the plugin carefully:
Capture.url should contain a unique URL can may have
parameters for identifying the upload.
Example: http://mg.mud.de/servlet/UpladServlet?id=12345
The actually captured data will be appended as the parameter content.
Maintainer: Matthias L. Jugel
Field Summary | |
protected boolean |
captureEnabled
Whether the capture is currently enabled or not |
protected java.awt.Dialog |
dialog
|
protected java.awt.Menu |
menu
The plugin menu |
protected java.util.Hashtable |
remoteUrlList
The remote storage URL |
protected FilterPlugin |
source
|
Fields inherited from class de.mud.jta.Plugin |
bus, id |
Constructor Summary | |
Capture(PluginBus bus,
java.lang.String id)
Initialize the Capture plugin. |
Method Summary | |
void |
actionPerformed(java.awt.event.ActionEvent e)
|
java.awt.Menu |
getPluginMenu()
The Capture menu for the menu bar as configured in the constructor. |
java.awt.Component |
getPluginVisual()
The Capture plugin has no visual component that is embedded in the JTA main frame, so this returns null. |
int |
read(byte[] b)
Read data from the left side plugin, capture the content and pass it on to the next plugin which called this method. |
void |
setFilterSource(FilterPlugin source)
The filter source is the plugin where Capture is connected to. |
void |
write(byte[] b)
Write data to the backend but also append it to the capture buffer. |
Methods inherited from class de.mud.jta.Plugin |
error |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.util.Hashtable remoteUrlList
protected java.awt.Menu menu
protected java.awt.Dialog dialog
protected boolean captureEnabled
protected FilterPlugin source
Constructor Detail |
public Capture(PluginBus bus, java.lang.String id)
Method Detail |
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
public void setFilterSource(FilterPlugin source)
setFilterSource
in interface FilterPlugin
source
- the next pluginpublic int read(byte[] b) throws java.io.IOException
read
in interface FilterPlugin
b
- the buffer to store data intopublic void write(byte[] b) throws java.io.IOException
write
in interface FilterPlugin
b
- the buffer with data to writepublic java.awt.Component getPluginVisual()
getPluginVisual
in interface VisualPlugin
public java.awt.Menu getPluginMenu()
getPluginMenu
in interface VisualPlugin
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |