Class AbstractConfluenceRestResponseHandler<T>
java.lang.Object
com.atlassian.jira.plugin.link.confluence.service.rest.AbstractConfluenceRestResponseHandler<T>
- All Implemented Interfaces:
com.atlassian.applinks.api.ApplicationLinkResponseHandler<RemoteResponse<T>>
,com.atlassian.sal.api.net.ReturningResponseHandler<com.atlassian.sal.api.net.Response,
RemoteResponse<T>>
- Direct Known Subclasses:
AbstractConfluenceRestCollectionResponseHandler
,ConfluenceRestContentResponseHandler
public abstract class AbstractConfluenceRestResponseHandler<T>
extends Object
implements com.atlassian.applinks.api.ApplicationLinkResponseHandler<RemoteResponse<T>>
Convert HTTP Response objects in to POJOs representing Confluence data.
- Since:
- 7.3.2
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncredentialsRequired
(com.atlassian.sal.api.net.Response response) protected String
fullConfluenceUrl
(JSONObject links) protected String
getBaseUrl
(JSONObject responseObj) handle
(com.atlassian.sal.api.net.Response response)
-
Constructor Details
-
AbstractConfluenceRestResponseHandler
public AbstractConfluenceRestResponseHandler()
-
-
Method Details
-
credentialsRequired
public RemoteResponse<T> credentialsRequired(com.atlassian.sal.api.net.Response response) throws com.atlassian.sal.api.net.ResponseException - Specified by:
credentialsRequired
in interfacecom.atlassian.applinks.api.ApplicationLinkResponseHandler<T>
- Throws:
com.atlassian.sal.api.net.ResponseException
-
handle
public RemoteResponse<T> handle(com.atlassian.sal.api.net.Response response) throws com.atlassian.sal.api.net.ResponseException - Specified by:
handle
in interfacecom.atlassian.sal.api.net.ReturningResponseHandler<com.atlassian.sal.api.net.Response,
RemoteResponse<T>> - Throws:
com.atlassian.sal.api.net.ResponseException
-
fullConfluenceUrl
- Throws:
JSONException
-
getBaseUrl
- Throws:
JSONException
-