Class HttpNotifierConfig

java.lang.Object
org.jenkinsci.plugins.githubautostatus.config.AbstractNotifierConfig
org.jenkinsci.plugins.githubautostatus.config.HttpNotifierConfig

public class HttpNotifierConfig extends AbstractNotifierConfig
Encapsulates the logic of determining HTTP notifier configuration for a build.
Author:
An Nguyen (nthienan.it@gmail.com)
  • Constructor Details

    • HttpNotifierConfig

      public HttpNotifierConfig()
  • Method Details

    • getRepoOwner

      public String getRepoOwner()
      Gets the repo owner.
      Returns:
      the repo owner
    • getRepoName

      public String getRepoName()
      Gets the repo name.
      Returns:
      the repo name
    • getBranchName

      public String getBranchName()
      Gets the branch name.
      Returns:
      the branch name
    • getHttpEndpoint

      public String getHttpEndpoint()
      Gets the HTTP endpoint URL.
      Returns:
      the HTTP endpoint URL
    • getHttpCredentialsId

      public String 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)