Tabnine Logo
MetadataRestClient.getServerInfo
Code IndexAdd Tabnine to your IDE (free)

How to use
getServerInfo
method
in
com.atlassian.jira.rest.client.api.MetadataRestClient

Best Java code snippets using com.atlassian.jira.rest.client.api.MetadataRestClient.getServerInfo (Showing top 5 results out of 315)

origin: com.atlassian.jira/jira-rest-java-client-core

private synchronized ServerInfo getVersionInfo() {
  if (serverInfo == null) {
    serverInfo = metadataRestClient.getServerInfo().claim();
  }
  return serverInfo;
}
origin: org.openengsb.wrapped/jira-rest-java-client-core

private synchronized ServerInfo getVersionInfo() {
  if (serverInfo == null) {
    serverInfo = metadataRestClient.getServerInfo().claim();
  }
  return serverInfo;
}
origin: OpenNMS/opennms

private JiraRestClient verifyConnection() {
  final String host = config.getHost();
  final String username = config.getUsername();
  final String password = config.getPassword();
  try {
    System.out.println();
    System.out.println("Try connecting to jira server " + host + " with username: '" + username + "' and password: '" + password +"'...");
    final JiraRestClient connection = JiraConnectionFactory.createConnection(host, username, password);
    final ServerInfo serverInfo = connection.getMetadataClient().getServerInfo().get();
    System.out.println("Successfully connected to jira instance at " + host);
    System.out.println("Server Info:" + serverInfo.toString());
    System.out.println("OK");
    return connection;
  } catch (PluginException | InterruptedException | ExecutionException e) {
    throw new RuntimeException("Could not connect to jira server", e);
  }
}
origin: org.opennms.features/jira-troubleticketer

private JiraRestClient verifyConnection() {
  final String host = config.getHost();
  final String username = config.getUsername();
  final String password = config.getPassword();
  try {
    System.out.println();
    System.out.println("Try connecting to jira server " + host + " with username: '" + username + "' and password: '" + password +"'...");
    final JiraRestClient connection = JiraConnectionFactory.createConnection(host, username, password);
    final ServerInfo serverInfo = connection.getMetadataClient().getServerInfo().get();
    System.out.println("Successfully connected to jira instance at " + host);
    System.out.println("Server Info:" + serverInfo.toString());
    System.out.println("OK");
    return connection;
  } catch (PluginException | InterruptedException | ExecutionException e) {
    throw new RuntimeException("Could not connect to jira server", e);
  }
}
origin: org.smartdeveloperhub.harvesters.it.backend/it-backend-core

.getServerInfo().claim()
  .getVersion();
com.atlassian.jira.rest.client.apiMetadataRestClientgetServerInfo

Javadoc

Retrieves information about this JIRA instance

Popular methods of MetadataRestClient

  • getIssueTypes
    Retrieves from the server complete list of available issue type
  • getPriorities
    Retrieves from the server complete list of available priorities
  • getStatuses
    Retrieves lists of available statuses with complete information about them

Popular in Java

  • Making http post requests using okhttp
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • addToBackStack (FragmentTransaction)
  • getApplicationContext (Context)
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • Path (java.nio.file)
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • Notification (javax.management)
  • Join (org.hibernate.mapping)
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now