Class HttpNotifierConfig
java.lang.Object
org.jenkinsci.plugins.githubautostatus.config.AbstractNotifierConfig
org.jenkinsci.plugins.githubautostatus.config.HttpNotifierConfig
Encapsulates the logic of determining HTTP notifier configuration for a build.
- Author:
- An Nguyen (nthienan.it@gmail.com)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic HttpNotifierConfigfromGlobalConfig(String repoOwner, String repoName, String branchName) Gets the branch name.com.cloudbees.plugins.credentials.common.UsernamePasswordCredentialsReturns credentials for accessing the HTTP endpoint if they are configured.Gets the HTTP credentials id.Gets the HTTP endpoint URL.booleanGets whether to enable SSL verify.Gets the repo name.Gets the repo owner.Methods inherited from class org.jenkinsci.plugins.githubautostatus.config.AbstractNotifierConfig
getHttpClient
-
Constructor Details
-
HttpNotifierConfig
public HttpNotifierConfig()
-
-
Method Details
-
getRepoOwner
Gets the repo owner.- Returns:
- the repo owner
-
getRepoName
Gets the repo name.- Returns:
- the repo name
-
getBranchName
Gets the branch name.- Returns:
- the branch name
-
getHttpEndpoint
Gets the HTTP endpoint URL.- Returns:
- the HTTP endpoint URL
-
getHttpCredentialsId
Gets the HTTP credentials id.- Returns:
- the credentials id
-
getHttpVerifySSL
public boolean getHttpVerifySSL()Gets whether to enable SSL verify.- Returns:
- true if verify SSL is enabled
-
getCredentials
@CheckForNull public com.cloudbees.plugins.credentials.common.UsernamePasswordCredentials getCredentials()Returns credentials for accessing the HTTP endpoint if they are configured.- Returns:
- credentials; null if not provided
-
fromGlobalConfig
public static HttpNotifierConfig fromGlobalConfig(String repoOwner, String repoName, String branchName)
-