@Component public class RemoteJiraRestServiceImpl extends Object implements RemoteJiraRestService
RemoteJiraRestService.RestVersion| Constructor and Description |
|---|
RemoteJiraRestServiceImpl(com.atlassian.applinks.host.spi.InternalHostApplication internalHostApplication,
com.atlassian.sal.api.net.RequestFactory<com.atlassian.sal.api.net.Request<?,com.atlassian.sal.api.net.Response>> requestFactory) |
| Modifier and Type | Method and Description |
|---|---|
static String |
buildIssueUrl(String baseUri,
String issueKey) |
RemoteResponse<JSONObject> |
createRemoteIssueLink(com.atlassian.applinks.api.ApplicationLink applicationLink,
String remoteIssueKey,
Issue issue,
String relationship,
RemoteJiraRestService.RestVersion restVersion)
Creates a remote issue link between the given remote issue and the given local issue.
|
RemoteResponse<RemoteJiraIssue> |
getIssue(com.atlassian.applinks.api.ApplicationLink applicationLink,
String issueIdOrKey,
RemoteJiraRestService.RestVersion restVersion)
Gets the issue with the given key, on the JIRA server given by the application link.
|
RemoteResponse<RemoteJiraIssue> |
getIssue(String baseUri,
String issueIdOrKey,
RemoteJiraRestService.RestVersion restVersion)
Gets the issue with the given key, on the JIRA server given by the application link.
|
RemoteResponse<String> |
requestResource(com.atlassian.applinks.api.ApplicationLink applicationLink,
String resourcePath,
Map<String,String> params,
RemoteJiraRestService.RestVersion restVersion)
Request the given REST resource on the given JIRA server with the given params.
|
RemoteResponse<String> |
requestURL(com.atlassian.applinks.api.ApplicationLink applicationLink,
String url,
Map<String,String> params)
Request the given URL on the given JIRA server with the given params.
|
@Autowired
public RemoteJiraRestServiceImpl(com.atlassian.applinks.host.spi.InternalHostApplication internalHostApplication,
com.atlassian.sal.api.net.RequestFactory<com.atlassian.sal.api.net.Request<?,com.atlassian.sal.api.net.Response>> requestFactory)
public RemoteResponse<RemoteJiraIssue> getIssue(com.atlassian.applinks.api.ApplicationLink applicationLink, String issueIdOrKey, RemoteJiraRestService.RestVersion restVersion) throws com.atlassian.applinks.api.CredentialsRequiredException, com.atlassian.sal.api.net.ResponseException
RemoteJiraRestServicegetIssue in interface RemoteJiraRestServiceapplicationLink - the application link of the JIRA serverissueIdOrKey - the issue ID or keyrestVersion - the version of the REST API to invokeRemoteResponse containing a RemoteJiraIssue and properties of the HTTP responsecom.atlassian.applinks.api.CredentialsRequiredException - thrown if authentication is requiredcom.atlassian.sal.api.net.ResponseException - thrown if the response cannot be retrievedpublic RemoteResponse<RemoteJiraIssue> getIssue(String baseUri, String issueIdOrKey, RemoteJiraRestService.RestVersion restVersion) throws com.atlassian.applinks.api.CredentialsRequiredException, com.atlassian.sal.api.net.ResponseException
RemoteJiraRestServicegetIssue in interface RemoteJiraRestServicebaseUri - the base URI of the JIRA instanceissueIdOrKey - the issue ID or keyrestVersion - the version of the REST API to invokeRemoteResponse containing a RemoteJiraIssue and properties of the HTTP responsecom.atlassian.applinks.api.CredentialsRequiredException - thrown if authentication is requiredcom.atlassian.sal.api.net.ResponseException - thrown if the response cannot be retrievedpublic RemoteResponse<JSONObject> createRemoteIssueLink(com.atlassian.applinks.api.ApplicationLink applicationLink, String remoteIssueKey, Issue issue, String relationship, RemoteJiraRestService.RestVersion restVersion) throws com.atlassian.applinks.api.CredentialsRequiredException, com.atlassian.sal.api.net.ResponseException
RemoteJiraRestServicecreateRemoteIssueLink in interface RemoteJiraRestServiceapplicationLink - the application link of the remote JIRA serverremoteIssueKey - the issue key of the remote issueissue - the local issuerelationship - the relationship for the linkrestVersion - the version of the REST API to invokeRemoteResponse containing a JSONObject and properties of the HTTP responsecom.atlassian.applinks.api.CredentialsRequiredException - thrown if authentication is requiredcom.atlassian.sal.api.net.ResponseException - thrown if the response cannot be retrievedpublic RemoteResponse<String> requestResource(com.atlassian.applinks.api.ApplicationLink applicationLink, String resourcePath, Map<String,String> params, RemoteJiraRestService.RestVersion restVersion) throws com.atlassian.applinks.api.CredentialsRequiredException, com.atlassian.sal.api.net.ResponseException
RemoteJiraRestServicerequestResource in interface RemoteJiraRestServiceapplicationLink - the application link of the JIRA serverresourcePath - the path of the REST resource, e.g. issueparams - the parameters to add to the requestrestVersion - the version of the REST API to invokeRemoteResponse containing the String response and properties of the HTTP responsecom.atlassian.applinks.api.CredentialsRequiredException - thrown if authentication is requiredcom.atlassian.sal.api.net.ResponseException - thrown if the response cannot be retrievedpublic RemoteResponse<String> requestURL(com.atlassian.applinks.api.ApplicationLink applicationLink, String url, Map<String,String> params) throws com.atlassian.applinks.api.CredentialsRequiredException, com.atlassian.sal.api.net.ResponseException
RemoteJiraRestServicerequestURL in interface RemoteJiraRestServiceapplicationLink - the application link of the JIRA serverurl - the relative URL to request, from the base URL of the applicationLink, e.g. secure/Dashboard.jspaparams - the parameters to add to the requestRemoteResponse containing the String response and properties of the HTTP responsecom.atlassian.applinks.api.CredentialsRequiredException - thrown if authentication is requiredcom.atlassian.sal.api.net.ResponseException - thrown if the response cannot be retrievedCopyright © 2002-2017 Atlassian. All Rights Reserved.