Class ServerInfo

java.lang.Object
com.atlassian.jira.rest.client.api.domain.ServerInfo

public class ServerInfo extends Object
Basic information about JIRA server
Since:
v0.1
  • Constructor Details

    • ServerInfo

      public ServerInfo(URI baseUri, String version, int buildNumber, org.joda.time.DateTime buildDate, @Nullable org.joda.time.DateTime serverTime, String scmInfo, String serverTitle)
  • Method Details

    • getBaseUri

      public URI getBaseUri()
      Returns:
      base URI of this JIRA instance
    • getVersion

      public String getVersion()
      Returns:
      version of this JIRA instance (like "4.2.1")
    • getBuildNumber

      public int getBuildNumber()
      Returns:
      build number
    • getBuildDate

      public org.joda.time.DateTime getBuildDate()
      Returns:
      date when the version of this JIRA instance has been built
    • getServerTime

      @Nullable public org.joda.time.DateTime getServerTime()
      Returns:
      current time (when the response is generated) on the server side or null when the user is not authenticated.
    • getScmInfo

      public String getScmInfo()
      Returns:
      SCM information (like SVN revision) indicated from which sources this JIRA server has been built.
    • getServerTitle

      public String getServerTitle()
      Returns:
      name of this JIRA instance (as defined by JIRA admin)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object