Class RestApiInternalRequestTag

  • All Implemented Interfaces:
    javax.servlet.jsp.tagext.DynamicAttributes, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.SimpleTag

    public class RestApiInternalRequestTag
    extends javax.servlet.jsp.tagext.SimpleTagSupport
    implements javax.servlet.jsp.tagext.DynamicAttributes
    Allows to perform internal requests to the Rest API. The 'Content-Type' of the response is JSON. Writes the Rest API response to the output.
    • Constructor Detail

      • RestApiInternalRequestTag

        public RestApiInternalRequestTag()
    • Method Detail

      • setQuery

        public void setQuery​(@NotNull
                             String query)
      • setPath

        public void setPath​(@NotNull
                            String path)
      • setVar

        public void setVar​(@NotNull
                           String var)
      • setDynamicAttribute

        public void setDynamicAttribute​(String uri,
                                        String localName,
                                        Object value)
        Specified by:
        setDynamicAttribute in interface javax.servlet.jsp.tagext.DynamicAttributes
      • doTag

        public void doTag()
                   throws IOException
        Specified by:
        doTag in interface javax.servlet.jsp.tagext.SimpleTag
        Overrides:
        doTag in class javax.servlet.jsp.tagext.SimpleTagSupport
        Throws:
        IOException