PageRenderTime 60ms CodeModel.GetById 24ms RepoModel.GetById 1ms app.codeStats 0ms

/src/main/java/com/atlassian/jira/plugins/bitbucket/spi/RequestHelper.java

https://bitbucket.org/atlassian/jira-bitbucket-connector/
Java | 23 lines | 14 code | 9 blank | 0 comment | 0 complexity | 0d2646fa7af3844a732241d5fc6eaaaf MD5 | raw file
  1. package com.atlassian.jira.plugins.bitbucket.spi;
  2. import java.util.Map;
  3. import com.atlassian.jira.plugins.bitbucket.api.Authentication;
  4. import com.atlassian.jira.plugins.bitbucket.spi.ExtendedResponseHandler.ExtendedResponse;
  5. import com.atlassian.sal.api.net.ResponseException;
  6. public interface RequestHelper
  7. {
  8. public String get(Authentication auth, String urlPath, Map<String, Object> params, String apiBaseUrl) throws ResponseException;
  9. public ExtendedResponse getExtendedResponse(Authentication auth, String urlPath, Map<String, Object> params, String apiBaseUrl)
  10. throws ResponseException;
  11. public String post(Authentication auth, String urlPath, String postData, String apiBaseUrl) throws ResponseException;
  12. public void delete(Authentication auth, String apiUrl, String urlPath) throws ResponseException;
  13. public Boolean isRepositoryPrivate1(final RepositoryUri repositoryUri);
  14. }