public class ActiveScanPanel extends ScanPanel2<ActiveScan,ScanController<ActiveScan>> implements ScanListenner2, ScannerListener
ScanPanel2.Location
JPanel.AccessibleJPanel
JComponent.AccessibleJComponent
Container.AccessibleAWTContainer
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
Modifier and Type | Field and Description |
---|---|
static String |
MESSAGE_CONTAINER_NAME
The name of the active scan HTTP messages container.
|
static String |
PANEL_NAME
Deprecated.
(2.3.0) Replaced by
MESSAGE_CONTAINER_NAME . |
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Constructor and Description |
---|
ActiveScanPanel(ExtensionActiveScan extension)
Constructs an
ActiveScanPanel with the given extension. |
Modifier and Type | Method and Description |
---|---|
protected int |
addToolBarElements(JToolBar panelToolbar,
ScanPanel2.Location loc,
int x)
Adds elements to the tool bar.
|
void |
alertFound(Alert alert) |
void |
clearFinishedScans() |
JButton |
getNewScanButton() |
protected int |
getNumberOfScansToShow() |
protected JPanel |
getWorkPanel() |
void |
hostComplete(int id,
String hostAndPort) |
void |
hostNewScan(int id,
String hostAndPort,
HostProcess hostThread) |
void |
hostProgress(int id,
String hostAndPort,
String msg,
int percentage) |
void |
notifyNewMessage(HttpMessage msg) |
void |
reset() |
void |
scannerComplete(int id) |
void |
switchView(ActiveScan scanner) |
getController, getGBC, getGBC, getPauseScanButton, getProgressBar, getProgressSelect, getSelectedScanner, getStopScanButton, hasOptionsButton, scanFinshed, scannerStarted, scanProgress, sessionModeChanged, sessionScopeChanged, trimProgressList, unload, updateScannerUI
getDefaultAccelerator, getIcon, getMnemonic, getTabIndex, isHideable, isLocked, isPinned, isShowByDefault, isTabVisible, setDefaultAccelerator, setHideable, setIcon, setLocked, setMnemonic, setParent, setPinned, setShowByDefault, setTabFocus, setTabIndex, tabSelected
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
scanFinshed, scanProgress
filteredMessage
@Deprecated public static final String PANEL_NAME
MESSAGE_CONTAINER_NAME
.public static final String MESSAGE_CONTAINER_NAME
HttpMessageContainer
,
Constant Field Valuespublic ActiveScanPanel(ExtensionActiveScan extension)
ActiveScanPanel
with the given extension.extension
- the active scan extension, to access options and start scansprotected int addToolBarElements(JToolBar panelToolbar, ScanPanel2.Location loc, int x)
ScanPanel2
ScanPanel2.Location
enumeration. Should be overridden by all subclasses
that want to add new elements to the ScanPanel's tool bar.
The tool bar uses a GridBagLayout
, so elements have to be added with a GridBagConstraints
. For this, the getGBC
methods can be used. The gridX
parameter specifies the cell (as used in GridBagConstraints.gridx
) of the current row
where the elements can be added.
The method must return the new coordinates of the current cell, after the elements have been added.
Note: A button is added at the end of the tool bar to show the Options
dialogue, unless ScanPanel2.hasOptionsButton()
returns false
. The name of the options
panel to show is obtained from the resource message with the key prefix +
".options.title"
.
addToolBarElements
in class ScanPanel2<ActiveScan,ScanController<ActiveScan>>
panelToolbar
- the tool barloc
- the current location where elements will be addedx
- the x coordinates of the current cell in the GridBagLayout
ScanPanel2.getGBC(int, int)
,
ScanPanel2.getGBC(int, int, double, Insets)
,
GridBagConstraints
,
GridBagLayout
public JButton getNewScanButton()
getNewScanButton
in class ScanPanel2<ActiveScan,ScanController<ActiveScan>>
public void clearFinishedScans()
clearFinishedScans
in class ScanPanel2<ActiveScan,ScanController<ActiveScan>>
protected JPanel getWorkPanel()
getWorkPanel
in class ScanPanel2<ActiveScan,ScanController<ActiveScan>>
public void switchView(ActiveScan scanner)
switchView
in class ScanPanel2<ActiveScan,ScanController<ActiveScan>>
public void alertFound(Alert alert)
alertFound
in interface ScannerListener
public void hostComplete(int id, String hostAndPort)
hostComplete
in interface ScannerListener
public void hostNewScan(int id, String hostAndPort, HostProcess hostThread)
hostNewScan
in interface ScannerListener
public void hostProgress(int id, String hostAndPort, String msg, int percentage)
hostProgress
in interface ScannerListener
public void scannerComplete(int id)
scannerComplete
in interface ScannerListener
public void notifyNewMessage(HttpMessage msg)
notifyNewMessage
in interface ScannerListener
public void reset()
reset
in class ScanPanel2<ActiveScan,ScanController<ActiveScan>>
protected int getNumberOfScansToShow()
getNumberOfScansToShow
in class ScanPanel2<ActiveScan,ScanController<ActiveScan>>