Class ZPageHandler

java.lang.Object
io.opencensus.contrib.zpages.ZPageHandler
Direct Known Subclasses:
RpczZPageHandler, StatszZPageHandler, TraceConfigzZPageHandler, TracezZPageHandler

public abstract class ZPageHandler extends Object
Main interface for all the Z-Pages. All Z-Pages must implement this interface to allow other HTTP server implementation to support these pages.
Since:
0.6
  • Constructor Details

    • ZPageHandler

      ZPageHandler()
      Package protected constructor to disallow users to extend this class.
  • Method Details

    • getUrlPath

      public abstract String getUrlPath()
      Returns the URL path that should be used to register this page.
      Returns:
      the URL path that should be used to register this page.
      Since:
      0.6
    • emitHtml

      public abstract void emitHtml(Map<String,String> queryMap, OutputStream outputStream)
      Emits the HTML generated page to the outputStream.
      Parameters:
      queryMap - the query components map.
      outputStream - the output OutputStream.
      Since:
      0.6