Codota Logo
Request$Builder.get
Code IndexAdd Codota to your IDE (free)

How to use
get
method
in
com.atlassian.httpclient.api.Request$Builder

Best Java code snippets using com.atlassian.httpclient.api.Request$Builder.get (Showing top 5 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
DateTime d =
  • Codota Iconnew DateTime()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseDateTime(text)
  • Codota IconObject instant;new DateTime(instant)
  • Smart code suggestions by Codota
}
origin: com.atlassian.jira/jira-rest-java-client-core

@Override
public Promise<Iterable<Transition>> getTransitions(final URI transitionsUri) {
  return callAndParse(client().newRequest(transitionsUri).get(),
      (ResponseHandler<Iterable<Transition>>) response -> {
        final JSONObject jsonObject = new JSONObject(response.getEntity());
        if (jsonObject.has("transitions")) {
          return JsonParseUtil.parseJsonArray(jsonObject.getJSONArray("transitions"), transitionJsonParserV5);
        } else {
          final Collection<Transition> transitions = new ArrayList<>(jsonObject.length());
          @SuppressWarnings("unchecked") final Iterator<String> iterator = jsonObject.keys();
          while (iterator.hasNext()) {
            final String key = iterator.next();
            try {
              final int id = Integer.parseInt(key);
              final Transition transition = transitionJsonParser.parse(jsonObject.getJSONObject(key), id);
              transitions.add(transition);
            } catch (JSONException e) {
              throw new RestClientException(e);
            } catch (NumberFormatException e) {
              throw new RestClientException(
                  "Transition id should be an integer, but found [" + key + "]", e);
            }
          }
          return transitions;
        }
      }
  );
}
origin: com.atlassian.plugins/atlassian-connect-core

private DownloadResult<ResponsePromise> scheduleDownload(Language language, String baseUrl, String path) {
  URI uriToDownload = resolveUri(baseUrl, path);
  ResponsePromise responsePromise = httpClient
      .newRequest(uriToDownload)
      .setAccept(MediaType.APPLICATION_JSON)
      .get();
  return new DownloadResult<>(language, uriToDownload, responsePromise);
}
origin: com.atlassian.refapp/platform-ctk-plugin

  private int getUrlStatusCode(String url) {
    return httpClient.newRequest(url).get().claim().getStatusCode();
  }
}
origin: com.atlassian.jira/jira-rest-java-client-core

@Override
public Promise<InputStream> getAttachment(URI attachmentUri) {
  return callAndParse(client().newRequest(attachmentUri).get(), Message::getEntityStream);
}
origin: com.atlassian.jira/jira-rest-java-client-core

protected final <T> Promise<T> getAndParse(final URI uri, final JsonParser<?, T> parser) {
  return callAndParse(client.newRequest(uri).setAccept("application/json").get(), parser);
}
com.atlassian.httpclient.apiRequest$Builderget

Javadoc

Executes this request through the HttpClient service as a GET operation. The request SHOULD NOT contain an entity for the GET operation.

Popular methods of Request$Builder

  • setContentType
  • execute
    Executes this request through the HttpClient service using the given HTTP method.
  • setEntity
  • setEntityStream
  • setHeader
  • setAccept
    Sets the Accept header for the request.
  • setAttribute
    Sets an attribute on the request. Attributes are request metadata that are forwarded to the analytic
  • setAttributes
    Sets attributes on the request. Attributes are request metadata that are forwarded to the analytics
  • setHeaders
  • setUri
    Sets this request's URI. Must not be null by the time the request is executed.
  • delete
    Executes this request through the HttpClient service as a DELETE operation. The request SHOULD NOT c
  • post
    Executes this request through the HttpClient service as a POST operation. The request SHOULD contain
  • delete,
  • post,
  • put,
  • setCacheDisabled

Popular in Java

  • Start an intent from android
  • putExtra (Intent)
  • getExternalFilesDir (Context)
  • getSystemService (Context)
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • Iterator (java.util)
    An iterator over a collection. Iterator takes the place of Enumeration in the Java Collections Frame
  • TreeMap (java.util)
    A Red-Black tree based NavigableMap implementation. The map is sorted according to the Comparable of
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • JFrame (javax.swing)
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now