public static class WebServer.WebContext
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
context
The public context path
|
java.lang.String |
file
Welcome file delivered by the server to the client
|
java.lang.String |
resource
The path to the target resource
|
| Constructor and Description |
|---|
WebContext() |
| Modifier and Type | Method and Description |
|---|---|
org.eclipse.jetty.server.handler.ContextHandler |
createContextHandler(java.util.function.Supplier<java.util.List<java.lang.String>> propathSupplier)
Creates the context handler based on this web context.
|
public java.lang.String context
public java.lang.String resource
public java.lang.String file
public org.eclipse.jetty.server.handler.ContextHandler createContextHandler(java.util.function.Supplier<java.util.List<java.lang.String>> propathSupplier)
throws java.io.IOException
java.io.IOException - If an IO error occurs when trying to create new resource by the given pathjava.lang.IllegalArgumentException - If the context path isn't set and/or the resource isn't found