Class ExtensionCallback
- java.lang.Object
-
- org.parosproxy.paros.extension.ExtensionAdaptor
-
- org.zaproxy.zap.extension.callback.ExtensionCallback
-
- All Implemented Interfaces:
Extension
,OptionsChangedListener
,SessionChangedListener
@Deprecated public class ExtensionCallback extends ExtensionAdaptor implements OptionsChangedListener, SessionChangedListener
Deprecated.(2.11.0) Superseded by the OAST add-on.
-
-
Constructor Summary
Constructors Constructor Description ExtensionCallback()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
deleteCallbacks()
Deprecated.java.lang.String
getAuthor()
Deprecated.Gets the author of the extension.java.lang.String
getCallbackAddress()
Deprecated.java.lang.String
getDescription()
Deprecated.Returns the description of the extension, to be shown in UI components.protected int
getPort()
Deprecated.java.lang.String
getTestUrl()
Deprecated.java.lang.String
getUIName()
Deprecated.By default returns the name returned bygetName()
.void
hook(ExtensionHook extensionHook)
Deprecated.Called during extension's initialisation to allow to add new functionality to core components.void
optionsChanged(OptionsParam optionsParam)
Deprecated.void
optionsLoaded()
Deprecated.Called after the options for this extension have been loaded, so that the extension can make use of them.void
postInit()
Deprecated.Implement this method to perform tasks after all extensions/add-ons have been initialised.void
registerCallbackImplementor(CallbackImplementor impl)
Deprecated.void
removeCallbackImplementor(CallbackImplementor impl)
Deprecated.void
sessionAboutToChange(Session session)
Deprecated.Called just prior to the session changing.void
sessionChanged(Session session)
Deprecated.Called just after the session has changed.void
sessionModeChanged(Control.Mode mode)
Deprecated.Called when the user changes the mode.void
sessionScopeChanged(Session session)
Deprecated.Called when the user has changes the session scope.boolean
supportsDb(java.lang.String type)
Deprecated.Return true if the specified db type is supported by the extension (or if it doesn't use any db) If this method returns false (meaning the db in use is not supported) then the extension will not be loaded.-
Methods inherited from class org.parosproxy.paros.extension.ExtensionAdaptor
canUnload, databaseOpen, destroy, getActiveActions, getAddOn, getDependencies, getExtensionMenu, getExtensionView, getI18nPrefix, getMessages, getModel, getName, getOrder, getUnsavedResources, getView, hasView, init, initModel, initView, initXML, isCore, isDepreciated, isEnabled, postInstall, setAddOn, setDescription, setEnabled, setI18nPrefix, setMessages, setName, setOrder, start, stop, supportsLowMemory, unload
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.parosproxy.paros.extension.Extension
getURL, getVersion
-
Methods inherited from interface org.parosproxy.paros.extension.SessionChangedListener
sessionPropertiesChanged
-
-
-
-
Method Detail
-
supportsDb
public boolean supportsDb(java.lang.String type)
Deprecated.Description copied from interface:Extension
Return true if the specified db type is supported by the extension (or if it doesn't use any db) If this method returns false (meaning the db in use is not supported) then the extension will not be loaded.- Specified by:
supportsDb
in interfaceExtension
- Overrides:
supportsDb
in classExtensionAdaptor
- Parameters:
type
- the db type- Returns:
- true if the specified db type is supported by the extension (or if it doesn't use any db)
- See Also:
Database.getType()
-
getUIName
public java.lang.String getUIName()
Deprecated.Description copied from class:ExtensionAdaptor
By default returns the name returned bygetName()
.- Specified by:
getUIName
in interfaceExtension
- Overrides:
getUIName
in classExtensionAdaptor
- Returns:
- the UI name of the extension, never
null
- See Also:
ExtensionAdaptor.getName()
-
hook
public void hook(ExtensionHook extensionHook)
Deprecated.Description copied from interface:Extension
Called during extension's initialisation to allow to add new functionality to core components.- Specified by:
hook
in interfaceExtension
- Overrides:
hook
in classExtensionAdaptor
- Parameters:
extensionHook
- the hook to add the components.
-
optionsLoaded
public void optionsLoaded()
Deprecated.Description copied from interface:Extension
Called after the options for this extension have been loaded, so that the extension can make use of them. Note that other add-ons may not have been loaded at this point - if you need them to be then implement postInit()- Specified by:
optionsLoaded
in interfaceExtension
- Overrides:
optionsLoaded
in classExtensionAdaptor
- See Also:
Extension.postInit()
-
postInit
public void postInit()
Deprecated.Description copied from interface:Extension
Implement this method to perform tasks after all extensions/add-ons have been initialised.- Specified by:
postInit
in interfaceExtension
- Overrides:
postInit
in classExtensionAdaptor
- See Also:
Extension.postInstall()
-
getCallbackAddress
public java.lang.String getCallbackAddress()
Deprecated.
-
getTestUrl
public java.lang.String getTestUrl()
Deprecated.
-
getPort
protected int getPort()
Deprecated.
-
registerCallbackImplementor
public void registerCallbackImplementor(CallbackImplementor impl)
Deprecated.
-
removeCallbackImplementor
public void removeCallbackImplementor(CallbackImplementor impl)
Deprecated.
-
getAuthor
public java.lang.String getAuthor()
Deprecated.Description copied from interface:Extension
Gets the author of the extension.Since 2.9.0 defaults to the author of the add-on, if set, otherwise an empty string.
-
getDescription
public java.lang.String getDescription()
Deprecated.Description copied from interface:Extension
Returns the description of the extension, to be shown in UI components. The description must be internationalised.- Specified by:
getDescription
in interfaceExtension
- Overrides:
getDescription
in classExtensionAdaptor
- Returns:
- the description of the extension, never
null
-
optionsChanged
public void optionsChanged(OptionsParam optionsParam)
Deprecated.- Specified by:
optionsChanged
in interfaceOptionsChangedListener
-
sessionChanged
public void sessionChanged(Session session)
Deprecated.Description copied from interface:SessionChangedListener
Called just after the session has changed. sessionChanged may be called by non-event thread. Should handle with care in all the listener. Use EventThread for each GUI event.- Specified by:
sessionChanged
in interfaceSessionChangedListener
- Parameters:
session
- the new session
-
deleteCallbacks
public void deleteCallbacks()
Deprecated.
-
sessionAboutToChange
public void sessionAboutToChange(Session session)
Deprecated.Description copied from interface:SessionChangedListener
Called just prior to the session changing. Listeners should close down any resources associated with this session. sessionAboutToChange may be called by non-event thread. Should handle with care in all the listener. Use EventThread for each GUI event.- Specified by:
sessionAboutToChange
in interfaceSessionChangedListener
- Parameters:
session
- the session about to be closed
-
sessionScopeChanged
public void sessionScopeChanged(Session session)
Deprecated.Description copied from interface:SessionChangedListener
Called when the user has changes the session scope. sessionScopeChanged may be called by non-event thread. Should handle with care in all the listener. Use EventThread for each GUI event.- Specified by:
sessionScopeChanged
in interfaceSessionChangedListener
- Parameters:
session
- the current session
-
sessionModeChanged
public void sessionModeChanged(Control.Mode mode)
Deprecated.Description copied from interface:SessionChangedListener
Called when the user changes the mode. sessionModeChanged may be called by non-event thread. Should handle with care in all the listener. Use EventThread for each GUI event.- Specified by:
sessionModeChanged
in interfaceSessionChangedListener
- Parameters:
mode
- the new mode
-
-