@Extension
public static final class Mailer.DescriptorImpl
extends hudson.tasks.BuildStepDescriptor<hudson.tasks.Publisher>
Constructor and Description |
---|
DescriptorImpl() |
Modifier and Type | Method and Description |
---|---|
boolean |
configure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject json) |
javax.mail.Session |
createSession()
JavaMail session.
|
hudson.util.FormValidation |
doAddressCheck(String value) |
hudson.util.FormValidation |
doCheckDefaultSuffix(String value) |
hudson.util.FormValidation |
doCheckSmtpServer(String value) |
hudson.util.FormValidation |
doSendTestMail(String smtpServer,
String adminAddress,
boolean useSMTPAuth,
String smtpAuthUserName,
hudson.util.Secret smtpAuthPasswordSecret,
boolean useSsl,
String smtpPort,
String charset,
String sendTestMailTo)
Send an email to the admin address
|
String |
getAdminAddress()
Deprecated.
as of 1.4
Use
JenkinsLocationConfiguration |
String |
getCharset() |
String |
getDefaultSuffix() |
String |
getDisplayName() |
String |
getReplyToAddress() |
String |
getSmtpAuthPassword() |
hudson.util.Secret |
getSmtpAuthPasswordSecret() |
String |
getSmtpAuthUserName() |
String |
getSmtpPort() |
String |
getSmtpServer() |
String |
getUrl()
Deprecated.
as of 1.4
Use
JenkinsLocationConfiguration |
boolean |
getUseSsl() |
boolean |
isApplicable(Class<? extends hudson.model.AbstractProject> jobType) |
hudson.tasks.Publisher |
newInstance(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject formData) |
void |
setAdminAddress(String adminAddress)
Deprecated.
as of 1.4
Use
JenkinsLocationConfiguration |
void |
setCharset(String chaset) |
void |
setDefaultSuffix(String defaultSuffix) |
void |
setHudsonUrl(String hudsonUrl)
Deprecated.
as of 1.4
Use
JenkinsLocationConfiguration |
void |
setReplyToAddress(String address) |
void |
setSmtpAuth(String userName,
String password) |
void |
setSmtpHost(String smtpHost) |
void |
setSmtpPort(String smtpPort) |
void |
setUseSsl(boolean useSsl) |
addHelpFileRedirect, calcAutoCompleteSettings, calcFillSettings, configure, doHelp, find, find, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
public String getDisplayName()
getDisplayName
in class hudson.model.Descriptor<hudson.tasks.Publisher>
public String getDefaultSuffix()
public String getReplyToAddress()
public void setReplyToAddress(String address)
public javax.mail.Session createSession()
public boolean configure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject json) throws hudson.model.Descriptor.FormException
configure
in class hudson.model.Descriptor<hudson.tasks.Publisher>
hudson.model.Descriptor.FormException
public String getSmtpServer()
public String getAdminAddress()
JenkinsLocationConfiguration
public String getUrl()
JenkinsLocationConfiguration
public String getSmtpAuthUserName()
public String getSmtpAuthPassword()
public hudson.util.Secret getSmtpAuthPasswordSecret()
public boolean getUseSsl()
public String getSmtpPort()
public String getCharset()
public void setDefaultSuffix(String defaultSuffix)
public void setHudsonUrl(String hudsonUrl)
JenkinsLocationConfiguration
public void setAdminAddress(String adminAddress)
JenkinsLocationConfiguration
public void setSmtpHost(String smtpHost)
public void setUseSsl(boolean useSsl)
public void setSmtpPort(String smtpPort)
public void setCharset(String chaset)
public hudson.tasks.Publisher newInstance(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject formData) throws hudson.model.Descriptor.FormException
newInstance
in class hudson.model.Descriptor<hudson.tasks.Publisher>
hudson.model.Descriptor.FormException
public hudson.util.FormValidation doAddressCheck(@QueryParameter String value)
public hudson.util.FormValidation doCheckSmtpServer(@QueryParameter String value)
public hudson.util.FormValidation doCheckDefaultSuffix(@QueryParameter String value)
public hudson.util.FormValidation doSendTestMail(@QueryParameter String smtpServer, @QueryParameter String adminAddress, @QueryParameter boolean useSMTPAuth, @QueryParameter String smtpAuthUserName, @QueryParameter hudson.util.Secret smtpAuthPasswordSecret, @QueryParameter boolean useSsl, @QueryParameter String smtpPort, @QueryParameter String charset, @QueryParameter String sendTestMailTo) throws IOException, javax.servlet.ServletException, InterruptedException
IOException
javax.servlet.ServletException
InterruptedException
public boolean isApplicable(Class<? extends hudson.model.AbstractProject> jobType)
isApplicable
in class hudson.tasks.BuildStepDescriptor<hudson.tasks.Publisher>
Copyright © 2014. All rights reserved.