com.atlassian.jira.rest.client.api.domain
Class ServerInfo

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

public class ServerInfo
extends java.lang.Object

Basic information about JIRA server

Since:
v0.1

Constructor Summary
ServerInfo(java.net.URI baseUri, java.lang.String version, int buildNumber, org.joda.time.DateTime buildDate, org.joda.time.DateTime serverTime, java.lang.String scmInfo, java.lang.String serverTitle)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.net.URI getBaseUri()
           
 org.joda.time.DateTime getBuildDate()
           
 int getBuildNumber()
           
 java.lang.String getScmInfo()
           
 org.joda.time.DateTime getServerTime()
           
 java.lang.String getServerTitle()
           
 java.lang.String getVersion()
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ServerInfo

public ServerInfo(java.net.URI baseUri,
                  java.lang.String version,
                  int buildNumber,
                  org.joda.time.DateTime buildDate,
                  @Nullable
                  org.joda.time.DateTime serverTime,
                  java.lang.String scmInfo,
                  java.lang.String serverTitle)
Method Detail

getBaseUri

public java.net.URI getBaseUri()
Returns:
base URI of this JIRA instance

getVersion

public java.lang.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 java.lang.String getScmInfo()
Returns:
SCM information (like SVN revision) indicated from which sources this JIRA server has been built.

getServerTitle

public java.lang.String getServerTitle()
Returns:
name of this JIRA instance (as defined by JIRA admin)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object


Copyright © 2013 Atlassian. All Rights Reserved.