Class PoweredByApache

java.lang.Object
org.apache.juneau.rest.widget.Widget
org.apache.juneau.rest.widget.PoweredByApache
All Implemented Interfaces:
HtmlWidget

public class PoweredByApache extends Widget
Widget that places a powered-by-Apache message on the page.

The variable it resolves is "$W{PoweredByApache}".

It produces a simple Apache icon floating on the right. Typically it's used in the footer of the page, as shown below in the RootResources from the examples:

@Rest( path="/", title="Root resources", description="Example of a router resource page." ) @HtmlDocConfig( widgets={ PoweredByApache.class }, footer="$W{PoweredByApache}" )

It renders the following image:

See Also:
  • Constructor Details

  • Method Details

    • getHtml

      public String getHtml(RestRequest req, RestResponse res)
      Returns an Apache image tag hyperlinked to "http://apache.org"
      Overrides:
      getHtml in class Widget
      Parameters:
      req - The HTTP request object.
      res - The current HTTP response.
      Returns:
      The HTML content of this widget.