com.atlassian.confluence.renderer.v2.macros
Class BaseHttpRetrievalMacro
java.lang.Object
com.atlassian.renderer.v2.macro.BaseMacro
com.atlassian.confluence.renderer.v2.macros.BaseHttpRetrievalMacro
- All Implemented Interfaces:
- Macro
public abstract class BaseHttpRetrievalMacro
- extends BaseMacro
Field Summary |
static org.apache.log4j.Category |
log
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
public static final org.apache.log4j.Category log
BaseHttpRetrievalMacro
public BaseHttpRetrievalMacro()
isInline
public boolean isInline()
- Specified by:
isInline
in interface Macro
- Overrides:
isInline
in class BaseMacro
hasBody
public boolean hasBody()
getBodyRenderMode
public RenderMode getBodyRenderMode()
execute
public String execute(Map parameters,
String body,
RenderContext renderContext)
throws MacroException
- Throws:
MacroException
successfulResponse
public abstract String successfulResponse(Map parameters,
RenderContext renderContext,
String url,
HttpResponse response)
throws MacroException
- Throws:
MacroException
notFound
public String notFound(String url)
notPermitted
public String notPermitted(String url)
failed
public String failed(String url,
HttpResponse response)
cleanupUrl
protected String cleanupUrl(String url)
setHttpRetrievalService
public void setHttpRetrievalService(HttpRetrievalService httpRetrievalService)
getRemoteUser
protected User getRemoteUser()
setUserAccessor
public void setUserAccessor(UserAccessor userAccessor)