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

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

public class ServerInfo
extends Object

Basic information about JIRA server

Since:
v0.1

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

Constructor Detail

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 Detail

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


Copyright © 2011 Atlassian Pty Ltd. All Rights Reserved.