Codota Logo
com.atlassian.sal.api.net
Code IndexAdd Codota to your IDE (free)

How to use com.atlassian.sal.api.net

Best Java code snippets using com.atlassian.sal.api.net (Showing top 20 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ArrayList a =
  • Codota Iconnew ArrayList<String>()
  • Codota Iconnew ArrayList()
  • Codota Iconnew ArrayList<Object>()
  • Smart code suggestions by Codota
}
origin: com.atlassian.applinks/applinks-plugin-core

  public String handle(final Response response) throws ResponseException
  {
    if (!response.isSuccessful())
    {
      throw new ResponseStatusException("Unexpected response received. Status code: " + response.getStatusCode(), response);
    }

    return response.getResponseBodyAsString();
  }
}
origin: com.atlassian.jwt/jwt-plugin

  @Override
  public void handle(Response response) throws ResponseException
  {
    if (!response.isSuccessful())
    {
      throw new ResponseException("Registration failed, received " +
          response.getStatusCode() + " " + response.getStatusText() +
          " from peer.");
    }
  }
});
origin: com.atlassian.plugins.rest/atlassian-rest-module

@Override
public JerseyRequest setRequestBody(final String s) {
  delegateRequest.setRequestBody(s);
  return this;
}
origin: com.atlassian.applinks/applinks-plugin

public Boolean handle(final Response response) throws ResponseException {
  if (response.getStatusCode() == 200) {
    // deleted reciprocal link, continue
    return false;
  } else {
    throw new ResponseException(String.format("Received %s - %s",
        response.getStatusCode(),
        response.getStatusText()
    ));
  }
}
origin: com.marvelution.jira.plugins/jira-jenkins-plugin

@Override
public ApplicationStatus handle(final Response response) throws ResponseException {
  return response.isSuccessful() || (response.getStatusCode() == HttpStatus.SC_FORBIDDEN) || (response.getStatusCode()
      == HttpStatus.SC_UNAUTHORIZED) ? ApplicationStatus.AVAILABLE : ApplicationStatus.UNAVAILABLE;
}
origin: com.atlassian.applinks/applinks-plugin-core

  public ApplicationStatus handle(final Response response) throws ResponseException
  {
    return response.isSuccessful() ?
        ApplicationStatus.AVAILABLE :
        ApplicationStatus.UNAVAILABLE;
  }
});
origin: com.atlassian.applinks/applinks-plugin-core

public String execute()
    throws ResponseException
{
  return request.execute();
}
origin: com.atlassian.applinks/applinks-plugin-core

public <R> R execute(final ApplicationLinkResponseHandler<R> applicationLinkResponseHandler)
    throws ResponseException
{
  return (R) request.executeAndReturn(applicationLinkResponseHandler);
}
origin: com.atlassian.applinks/applinks-plugin-core

public String getNextRedirectLocation(final Response response) throws ResponseException
{
  final String location = response.getHeader("location");
  redirects++;
  return location;
}
origin: com.atlassian.plugins.rest/atlassian-rest-module

@Override
public JerseyRequest setSoTimeout(final int i) {
  delegateRequest.setSoTimeout(i);
  return this;
}
origin: com.atlassian.cpji/cpji-jira-plugin

  @Override
  protected CopyInformationBean parseResponse(Response response) throws ResponseException, JSONException {
    return response.getEntity(CopyInformationBean.class);
  }
});
origin: com.atlassian.plugins.rest/atlassian-rest-module

@Override
public JerseyRequest addHeader(final String s, final String s1) {
  delegateRequest.addHeader(s, s1);
  return this;
}
origin: com.atlassian.plugins.rest/atlassian-rest-module

  public Void handle(JerseyResponse jerseyResponse) throws ResponseException {
    responseHandler.handle(jerseyResponse);
    return null;
  }
});
origin: com.atlassian.plugins.rest/atlassian-rest-module

@Override
public JerseyRequest setFollowRedirects(final boolean follow) {
  delegateRequest.setFollowRedirects(follow);
  return this;
}
origin: com.atlassian.plugins.rest/atlassian-rest-module

@Override
public JerseyRequest setHeader(final String s, final String s1) {
  delegateRequest.setHeader(s, s1);
  return this;
}
origin: com.atlassian.plugins.rest/atlassian-rest-module

@Override
public JerseyRequest setUrl(final String s) {
  delegateRequest.setUrl(s);
  return this;
}
origin: com.atlassian.applinks/applinks-plugin-core

  public boolean supportsHeader()
  {
    return requestFactory.supportsHeader();
  }
}
origin: com.atlassian.applinks/applinks-common

  public String handle(final Response response) throws ResponseException {
    if (!response.isSuccessful()) {
      throw new ResponseStatusException("Unexpected response received. Status code: " + response.getStatusCode(), response);
    }

    return response.getResponseBodyAsString();
  }
}
origin: com.atlassian.applinks/applinks-plugin-core

@Override
public <RET> RET executeAndReturn(final ReturningResponseHandler<? super Response, RET> responseHandler)
    throws ResponseException
{
  return (RET) request.executeAndReturn(responseHandler);
}
origin: com.atlassian.cpji/cpji-jira-plugin

  @Override
  protected FieldPermissionsBean parseResponse(Response response) throws ResponseException, JSONException {
    return response.getEntity(FieldPermissionsBean.class);
  }
});
com.atlassian.sal.api.net

Most used classes

  • Response
  • ResponseException
  • Request
  • RequestFactory
  • Request$MethodType
  • ResponseStatusException,
  • ReturningResponseHandler,
  • RequestFilePart,
  • ResponseTimeoutException,
  • TrustedRequest,
  • TrustedRequestFactory
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