Package org.zaproxy.zap.model
Interface ContextDataFactory
-
- All Known Implementing Classes:
ExtensionAuthentication
,ExtensionAuthorization
,ExtensionForcedUser
,ExtensionSessionManagement
,ExtensionUserManagement
public interface ContextDataFactory
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
exportContextData(Context ctx, org.apache.commons.configuration.Configuration config)
Export the Context data into the given configurationvoid
importContextData(Context ctx, org.apache.commons.configuration.Configuration config)
Import the Context data from the given configurationvoid
loadContextData(Session session, Context context)
Loads the Context data from the given session.void
persistContextData(Session session, Context context)
Save the Context data into the given session.
-
-
-
Method Detail
-
loadContextData
void loadContextData(Session session, Context context)
Loads the Context data from the given session.- Parameters:
session
- the session to load from, notnull
.context
- the context to load into, notnull
.
-
persistContextData
void persistContextData(Session session, Context context)
Save the Context data into the given session.- Parameters:
session
- the session to persist into, notnull
.context
- the context to persist from, notnull
.
-
exportContextData
void exportContextData(Context ctx, org.apache.commons.configuration.Configuration config)
Export the Context data into the given configuration- Parameters:
ctx
- the context to export, notnull
.config
- theConfiguration
where to export the context data, notnull
.
-
importContextData
void importContextData(Context ctx, org.apache.commons.configuration.Configuration config) throws org.apache.commons.configuration.ConfigurationException
Import the Context data from the given configuration- Parameters:
ctx
- the context to import the context data toconfig
- theConfiguration
containing the context data, notnull
.- Throws:
org.apache.commons.configuration.ConfigurationException
- if an error occurred while reading the context data from theConfiguration
, notnull
.
-
-