public class ExtensionHistory extends ExtensionAdaptor implements SessionChangedListener
Constructor and Description |
---|
ExtensionHistory() |
Modifier and Type | Method and Description |
---|---|
void |
addHistory(HistoryReference historyRef) |
void |
addHistory(HttpMessage msg,
int type) |
void |
clearLogPanelDisplayQueue()
Deprecated.
(2.6.0) No longer used/needed.
|
void |
delete(HistoryReference href) |
String |
getAuthor()
Gets the author of the extension.
|
HistoryReference |
getHistoryReference(int historyId) |
HistoryReferencesTable |
getHistoryReferencesTable() |
int |
getLastHistoryId() |
ManualRequestEditorDialog |
getResendDialog()
This method initializes resendDialog
|
HistoryReference |
getSelectedHistoryReference() |
List<HistoryReference> |
getSelectedHistoryReferences() |
String |
getUIName()
By default returns the name returned by
getName() . |
void |
hideNotesAddDialog()
Deprecated.
(2.7.0) No longer used/needed.
|
void |
hook(ExtensionHook extensionHook)
Called during extension's initialisation to allow to add new functionality to core
components.
|
void |
init()
Initialize plugin during startup.
|
boolean |
isShowJustInScope() |
void |
notifyHistoryItemChanged(HistoryReference href) |
void |
purge(SiteMap map,
SiteNode node) |
void |
purgeHistory(List<HistoryReference> hrefs)
Deletes the given history references from the
History tab and the session
(database), along with the corresponding SiteNode s and Alert s. |
void |
registerProxy(ProxyServer ps) |
void |
removeFromHistoryList(HistoryReference href) |
void |
sessionAboutToChange(Session session)
Called just prior to the session changing.
|
void |
sessionChanged(Session session)
Called just after the session has changed.
|
void |
sessionModeChanged(Control.Mode mode)
Called when the user changes the mode.
|
void |
sessionScopeChanged(Session session)
Called when the user has changes the session scope.
|
void |
setShowJustInScope(boolean showJustInScope) |
void |
showAlertAddDialog(Alert alert)
Deprecated.
(2.7.0) Use
ExtensionAlert.showAlertEditDialog(Alert) instead. |
void |
showAlertAddDialog(HistoryReference ref)
Deprecated.
(2.7.0) Use
ExtensionAlert.showAlertAddDialog(HistoryReference) instead. |
void |
showAlertAddDialog(HttpMessage httpMessage,
int historyType)
Deprecated.
(2.7.0) Use
ExtensionAlert.showAlertAddDialog(HttpMessage, int) instead. |
protected int |
showFilterPlusDialog() |
void |
showInHistory(HistoryReference href) |
void |
showManageTagsDialog(HistoryReference ref,
List<String> tags) |
void |
showNotesAddDialog(HistoryReference ref,
String note) |
boolean |
supportsDb(String type)
Part of the core set of features that should be supported by all db types
|
boolean |
supportsLowMemory()
Return true it the extension can run with the 'low memory' option.
|
void |
unregisterProxy(ProxyServer ps) |
canUnload, databaseOpen, destroy, getActiveActions, getAddOn, getDependencies, getDescription, getExtensionMenu, getExtensionView, getI18nPrefix, getMessages, getModel, getName, getOrder, getUnsavedResources, getView, hasView, initModel, initView, initXML, isCore, isDepreciated, isEnabled, optionsLoaded, postInit, postInstall, setAddOn, setDescription, setEnabled, setI18nPrefix, setMessages, setName, setOrder, start, stop, unload
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
sessionPropertiesChanged
getURL, getVersion
public static final String NAME
public String getUIName()
ExtensionAdaptor
getName()
.getUIName
in interface Extension
getUIName
in class ExtensionAdaptor
null
ExtensionAdaptor.getName()
@Deprecated public void clearLogPanelDisplayQueue()
public HistoryReference getSelectedHistoryReference()
public List<HistoryReference> getSelectedHistoryReferences()
public void init()
Extension
init
in interface Extension
init
in class ExtensionAdaptor
public void hook(ExtensionHook extensionHook)
Extension
hook
in interface Extension
hook
in class ExtensionAdaptor
extensionHook
- the hook to add the components.public void sessionChanged(Session session)
SessionChangedListener
sessionChanged
in interface SessionChangedListener
session
- the new sessionpublic void registerProxy(ProxyServer ps)
public void unregisterProxy(ProxyServer ps)
public void removeFromHistoryList(HistoryReference href)
public void notifyHistoryItemChanged(HistoryReference href)
public void delete(HistoryReference href)
public HistoryReference getHistoryReference(int historyId)
public int getLastHistoryId()
public void addHistory(HttpMessage msg, int type)
public void addHistory(HistoryReference historyRef)
protected int showFilterPlusDialog()
public ManualRequestEditorDialog getResendDialog()
public void showNotesAddDialog(HistoryReference ref, String note)
@Deprecated public void hideNotesAddDialog()
@Deprecated public void showAlertAddDialog(HistoryReference ref)
ExtensionAlert.showAlertAddDialog(HistoryReference)
instead.ref
- the HistoryReference
that will have the new alert, if created.@Deprecated public void showAlertAddDialog(HttpMessage httpMessage, int historyType)
ExtensionAlert.showAlertAddDialog(HttpMessage, int)
instead.HttpMessage
and the history type of the HistoryReference
that will
be created if the user creates the alert. The current session will be used to create the
HistoryReference
. The alert created will be added to the newly created HistoryReference
.
Should be used when the alert is added to a temporary HistoryReference
as the
temporary HistoryReference
s are deleted when the session is closed.
httpMessage
- the HttpMessage
that will be used to create the HistoryReference
, must not be null
historyType
- the type of the history reference that will be used to create the HistoryReference
Model.getSession()
,
HistoryReference(org.parosproxy.paros.model.Session, int, HttpMessage)
@Deprecated public void showAlertAddDialog(Alert alert)
ExtensionAlert.showAlertEditDialog(Alert)
instead.alert
- the alert to editpublic void showManageTagsDialog(HistoryReference ref, List<String> tags)
public void showInHistory(HistoryReference href)
public void sessionAboutToChange(Session session)
SessionChangedListener
sessionAboutToChange
in interface SessionChangedListener
session
- the session about to be closedpublic String getAuthor()
Extension
Since 2.9.0 defaults to the author of the add-on, if set, otherwise an empty string.
public boolean isShowJustInScope()
public void setShowJustInScope(boolean showJustInScope)
public void sessionScopeChanged(Session session)
SessionChangedListener
sessionScopeChanged
in interface SessionChangedListener
session
- the current sessionpublic void sessionModeChanged(Control.Mode mode)
SessionChangedListener
sessionModeChanged
in interface SessionChangedListener
mode
- the new modepublic boolean supportsLowMemory()
Extension
supportsLowMemory
in interface Extension
supportsLowMemory
in class ExtensionAdaptor
true
if the extension support the 'low memory' option, false
otherwisepublic boolean supportsDb(String type)
supportsDb
in interface Extension
supportsDb
in class ExtensionAdaptor
type
- the db typeDatabase.getType()
public HistoryReferencesTable getHistoryReferencesTable()
public void purgeHistory(List<HistoryReference> hrefs)
History tab
and the session
(database), along with the corresponding SiteNode
s and Alert
s.hrefs
- the history entries to delete.View.getDefaultDeleteKeyStroke()