de.mud.jta.plugin
Class Capture
- ActionListener, FilterPlugin, VisualPlugin
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
$Id: Capture.java 499 2005-09-29 08:24:54Z leo $- Matthias L. Jugel, Marcus Mei???ner
void | actionPerformed(ActionEvent e)
|
FilterPlugin | getFilterSource()
|
JMenu | getPluginMenu() - The Capture menu for the menu bar as configured in the constructor.
|
JComponent | 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.
|
captureEnabled
protected boolean captureEnabled
Whether the capture is currently enabled or not
doneDialog
protected JDialog doneDialog
errorDialog
protected JDialog errorDialog
fileDialog
protected JDialog fileDialog
menu
protected JMenu menu
The plugin menu
remoteUrlList
protected Hashtable remoteUrlList
The remote storage URL
Capture
public Capture(PluginBus bus,
String id)
Initialize the Capture plugin. This sets up the menu entries
and registers the plugin on the bus.
actionPerformed
public void actionPerformed(ActionEvent e)
getPluginMenu
public JMenu getPluginMenu()
The Capture menu for the menu bar as configured in the constructor.
- getPluginMenu in interface VisualPlugin
getPluginVisual
public JComponent getPluginVisual()
The Capture plugin has no visual component that is embedded in
the JTA main frame, so this returns null.
- getPluginVisual in interface VisualPlugin
read
public int read(byte[] b)
throws IOException
Read data from the left side plugin, capture the content and
pass it on to the next plugin which called this method.
- read in interface FilterPlugin
b
- the buffer to store data into
setFilterSource
public void setFilterSource(FilterPlugin source)
The filter source is the plugin where Capture is connected to.
In the list of plugins this is the one to the left.
- setFilterSource in interface FilterPlugin
write
public void write(byte[] b)
throws IOException
Write data to the backend but also append it to the capture buffer.
- write in interface FilterPlugin
b
- the buffer with data to write