public abstract class AbstractConfluenceRestResponseHandler<T> extends Object implements com.atlassian.applinks.api.ApplicationLinkResponseHandler<RemoteResponse<T>>
Constructor and Description |
---|
AbstractConfluenceRestResponseHandler() |
Modifier and Type | Method and Description |
---|---|
RemoteResponse<T> |
credentialsRequired(com.atlassian.sal.api.net.Response response) |
protected String |
fullConfluenceUrl(JSONObject links) |
protected String |
getBaseUrl(JSONObject responseObj) |
RemoteResponse<T> |
handle(com.atlassian.sal.api.net.Response response) |
public AbstractConfluenceRestResponseHandler()
public RemoteResponse<T> credentialsRequired(com.atlassian.sal.api.net.Response response) throws com.atlassian.sal.api.net.ResponseException
credentialsRequired
in interface com.atlassian.applinks.api.ApplicationLinkResponseHandler<RemoteResponse<T>>
com.atlassian.sal.api.net.ResponseException
public RemoteResponse<T> handle(com.atlassian.sal.api.net.Response response) throws com.atlassian.sal.api.net.ResponseException
handle
in interface com.atlassian.sal.api.net.ReturningResponseHandler<com.atlassian.sal.api.net.Response,RemoteResponse<T>>
com.atlassian.sal.api.net.ResponseException
protected String fullConfluenceUrl(JSONObject links) throws JSONException
JSONException
protected String getBaseUrl(JSONObject responseObj) throws JSONException
JSONException
Copyright © 2002-2019 Atlassian. All Rights Reserved.