public class Update extends Purge
| Constructor and Description |
|---|
Update()
Construct a new UpdateTask.
|
| Modifier and Type | Method and Description |
|---|---|
void |
execute()
Executes the update by initializing the settings, downloads the NVD XML
data, and then processes the data storing it in the local database.
|
java.lang.String |
getConnectionString()
Get the value of connectionString.
|
java.lang.String |
getConnectionTimeout()
Get the value of connectionTimeout.
|
java.lang.Integer |
getCveStartYear()
Get the value of cveStartYear.
|
java.lang.String |
getCveUrlBase()
Get the value of cveUrlBase.
|
java.lang.String |
getCveUrlModified()
Get the value of cveUrlModified.
|
java.lang.Integer |
getCveValidForHours()
Get the value of cveValidForHours.
|
java.lang.String |
getCveWaitTime()
Get the value of cveUrlBase.
|
java.lang.String |
getDatabaseDriverName()
Get the value of databaseDriverName.
|
java.lang.String |
getDatabaseDriverPath()
Get the value of databaseDriverPath.
|
java.lang.String |
getDatabasePassword()
Get the value of databasePassword.
|
java.lang.String |
getDatabaseUser()
Get the value of databaseUser.
|
java.lang.String |
getNonProxyHosts()
Get the value of nonProxyHosts.
|
java.lang.String |
getProxyPassword()
Get the value of proxyPassword.
|
java.lang.String |
getProxyPort()
Get the value of proxyPort.
|
java.lang.String |
getProxyServer()
Get the value of proxyServer.
|
java.lang.String |
getProxyUsername()
Get the value of proxyUsername.
|
protected void |
populateSettings()
Takes the properties supplied and updates the dependency-check settings.
|
void |
setConnectionString(java.lang.String connectionString)
Set the value of connectionString.
|
void |
setConnectionTimeout(java.lang.String connectionTimeout)
Set the value of connectionTimeout.
|
void |
setCveStartYear(java.lang.Integer cveStartYear)
Set the value of cveStartYear.
|
void |
setCveUrlBase(java.lang.String cveUrlBase)
Set the value of cveUrlBase.
|
void |
setCveUrlModified(java.lang.String cveUrlModified)
Set the value of cveUrlModified.
|
void |
setCveValidForHours(java.lang.Integer cveValidForHours)
Set the value of cveValidForHours.
|
void |
setCveWaitTime(java.lang.String cveWaitTime)
Set the value of cveWaitTime.
|
void |
setDatabaseDriverName(java.lang.String databaseDriverName)
Set the value of databaseDriverName.
|
void |
setDatabaseDriverPath(java.lang.String databaseDriverPath)
Set the value of databaseDriverPath.
|
void |
setDatabasePassword(java.lang.String databasePassword)
Set the value of databasePassword.
|
void |
setDatabaseUser(java.lang.String databaseUser)
Set the value of databaseUser.
|
void |
setNonProxyHosts(java.lang.String nonProxyHosts)
Set the value of nonProxyHosts.
|
void |
setProxyPassword(java.lang.String proxyPassword)
Set the value of proxyPassword.
|
void |
setProxyPort(java.lang.String proxyPort)
Set the value of proxyPort.
|
void |
setProxyServer(java.lang.String server)
Set the value of proxyServer.
|
void |
setProxyUsername(java.lang.String proxyUsername)
Set the value of proxyUsername.
|
getDataDirectory, getSettings, isFailOnError, setDataDirectory, setFailOnErrorbindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypepublic java.lang.String getProxyServer()
public void setProxyServer(java.lang.String server)
server - new value of proxyServerpublic java.lang.String getProxyPort()
public void setProxyPort(java.lang.String proxyPort)
proxyPort - new value of proxyPortpublic java.lang.String getProxyUsername()
public void setProxyUsername(java.lang.String proxyUsername)
proxyUsername - new value of proxyUsernamepublic java.lang.String getProxyPassword()
public void setProxyPassword(java.lang.String proxyPassword)
proxyPassword - new value of proxyPasswordpublic java.lang.String getNonProxyHosts()
public void setNonProxyHosts(java.lang.String nonProxyHosts)
nonProxyHosts - new value of nonProxyHostspublic java.lang.String getConnectionTimeout()
public void setConnectionTimeout(java.lang.String connectionTimeout)
connectionTimeout - new value of connectionTimeoutpublic java.lang.String getDatabaseDriverName()
public void setDatabaseDriverName(java.lang.String databaseDriverName)
databaseDriverName - new value of databaseDriverNamepublic java.lang.String getDatabaseDriverPath()
public void setDatabaseDriverPath(java.lang.String databaseDriverPath)
databaseDriverPath - new value of databaseDriverPathpublic java.lang.String getConnectionString()
public void setConnectionString(java.lang.String connectionString)
connectionString - new value of connectionStringpublic java.lang.String getDatabaseUser()
public void setDatabaseUser(java.lang.String databaseUser)
databaseUser - new value of databaseUserpublic java.lang.String getDatabasePassword()
public void setDatabasePassword(java.lang.String databasePassword)
databasePassword - new value of databasePasswordpublic void setCveUrlModified(java.lang.String cveUrlModified)
cveUrlModified - new value of cveUrlModifiedpublic java.lang.String getCveUrlModified()
public java.lang.String getCveUrlBase()
public void setCveUrlBase(java.lang.String cveUrlBase)
cveUrlBase - new value of cveUrlBasepublic java.lang.String getCveWaitTime()
public void setCveWaitTime(java.lang.String cveWaitTime)
cveWaitTime - new value of cveWaitTimepublic java.lang.Integer getCveValidForHours()
public void setCveValidForHours(java.lang.Integer cveValidForHours)
cveValidForHours - new value of cveValidForHourspublic java.lang.Integer getCveStartYear()
public void setCveStartYear(java.lang.Integer cveStartYear)
cveStartYear - new value of cveStartYearpublic void execute()
throws org.apache.tools.ant.BuildException
protected void populateSettings()
throws org.apache.tools.ant.BuildException
populateSettings in class Purgeorg.apache.tools.ant.BuildException - thrown when an invalid setting is configured.Copyright© 2012-21 Jeremy Long. All Rights Reserved.