Class BaseHttpRetrievalMacro

  • All Implemented Interfaces:
    com.atlassian.renderer.v2.macro.Macro

    public abstract class BaseHttpRetrievalMacro
    extends com.atlassian.renderer.v2.macro.BaseMacro
    • Constructor Detail

      • BaseHttpRetrievalMacro

        public BaseHttpRetrievalMacro()
    • Method Detail

      • hasBody

        public boolean hasBody()
      • getBodyRenderMode

        public com.atlassian.renderer.v2.RenderMode getBodyRenderMode()
      • execute

        public String execute​(Map parameters,
                              String body,
                              com.atlassian.renderer.RenderContext renderContext)
                       throws com.atlassian.renderer.v2.macro.MacroException
        Throws:
        com.atlassian.renderer.v2.macro.MacroException
      • successfulResponse

        public abstract String successfulResponse​(Map parameters,
                                                  com.atlassian.renderer.RenderContext renderContext,
                                                  String url,
                                                  HttpResponse response)
                                           throws com.atlassian.renderer.v2.macro.MacroException
        Throws:
        com.atlassian.renderer.v2.macro.MacroException
      • setHttpRetrievalService

        public void setHttpRetrievalService​(HttpRetrievalService httpRetrievalService)
      • setUserAccessor

        public void setUserAccessor​(UserAccessor userAccessor)