Package io.opencensus.contrib.zpages
Class ZPageHandler
- java.lang.Object
-
- io.opencensus.contrib.zpages.ZPageHandler
-
- Direct Known Subclasses:
RpczZPageHandler,StatszZPageHandler,TraceConfigzZPageHandler,TracezZPageHandler
public abstract class ZPageHandler extends java.lang.ObjectMain 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 Summary
Constructors Constructor Description ZPageHandler()Package protected constructor to disallow users to extend this class.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract voidemitHtml(java.util.Map<java.lang.String,java.lang.String> queryMap, java.io.OutputStream outputStream)Emits the HTML generated page to theoutputStream.abstract java.lang.StringgetUrlPath()Returns the URL path that should be used to register this page.
-
-
-
Method Detail
-
getUrlPath
public abstract java.lang.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(java.util.Map<java.lang.String,java.lang.String> queryMap, java.io.OutputStream outputStream)Emits the HTML generated page to theoutputStream.- Parameters:
queryMap- the query components map.outputStream- the outputOutputStream.- Since:
- 0.6
-
-