public abstract class BaseHttpRetrievalMacro
extends com.atlassian.renderer.v2.macro.BaseMacro
Constructor and Description |
---|
BaseHttpRetrievalMacro() |
Modifier and Type | Method and Description |
---|---|
protected String |
cleanupUrl(String url) |
String |
execute(Map parameters,
String body,
com.atlassian.renderer.RenderContext renderContext) |
String |
failed(String url,
HttpResponse response) |
com.atlassian.renderer.v2.RenderMode |
getBodyRenderMode() |
protected ConfluenceUser |
getRemoteUser() |
boolean |
hasBody() |
String |
notFound(String url) |
String |
notPermitted(String url) |
void |
setHttpRetrievalService(HttpRetrievalService httpRetrievalService) |
void |
setUserAccessor(UserAccessor userAccessor) |
abstract String |
successfulResponse(Map parameters,
com.atlassian.renderer.RenderContext renderContext,
String url,
HttpResponse response) |
public boolean hasBody()
public com.atlassian.renderer.v2.RenderMode getBodyRenderMode()
public String execute(Map parameters, String body, com.atlassian.renderer.RenderContext renderContext) throws com.atlassian.renderer.v2.macro.MacroException
com.atlassian.renderer.v2.macro.MacroException
public abstract String successfulResponse(Map parameters, com.atlassian.renderer.RenderContext renderContext, String url, HttpResponse response) throws com.atlassian.renderer.v2.macro.MacroException
com.atlassian.renderer.v2.macro.MacroException
public String failed(String url, HttpResponse response)
public void setHttpRetrievalService(HttpRetrievalService httpRetrievalService)
protected ConfluenceUser getRemoteUser()
public void setUserAccessor(UserAccessor userAccessor)
Copyright © 2003–2016 Atlassian. All rights reserved.