Module net.morimekta.tiny.server
Package net.morimekta.tiny.server
Class TinyApplicationContext.Builder
- java.lang.Object
-
- net.morimekta.tiny.server.TinyApplicationContext.Builder
-
- Enclosing class:
- TinyApplicationContext
public static final class TinyApplicationContext.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder(TinyApplication server)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addHttpHandler(String context, HttpHandler handler)
Add a custom HTTP handler to the admin server.void
setDrainPath(String drainPath)
void
setHealthyPath(String healthyPath)
void
setReadyPath(String readyPath)
-
-
-
Constructor Detail
-
Builder
public Builder(TinyApplication server) throws IOException
- Throws:
IOException
-
-
Method Detail
-
setReadyPath
public void setReadyPath(String readyPath)
-
setHealthyPath
public void setHealthyPath(String healthyPath)
-
setDrainPath
public void setDrainPath(String drainPath)
-
addHttpHandler
public void addHttpHandler(String context, HttpHandler handler)
Add a custom HTTP handler to the admin server.- Parameters:
context
- The context path for the handler.handler
- The handler.
-
-