public static class Server.Builder
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.util.ArrayList<java.util.function.Consumer<Server.Builder>> |
builderConsumers |
protected java.util.ArrayList<java.util.function.Consumer<java.io.File>> |
homeConsumers |
protected Archive |
modifications |
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
Server.Builder |
add(java.lang.String name,
Archive contents) |
Server.Builder |
add(java.lang.String destinationPath,
byte[] bytes) |
Server.Builder |
add(java.lang.String destinationPath,
java.io.File content) |
Server.Builder |
add(java.lang.String destinationPath,
java.lang.String content) |
Server.Builder |
add(java.lang.String destinationPath,
java.util.function.Supplier<byte[]> content) |
Server.Builder |
ajpPort(int port) |
Server.Builder |
and(java.util.function.Consumer<Server.Builder> consumer) |
protected void |
applyBuilderConsumers() |
protected void |
applyHomeConsumers(java.io.File home) |
protected void |
applyModifications(java.io.File home) |
Server |
build() |
Server.Builder |
home(java.util.function.Consumer<java.io.File> customization) |
Server.Builder |
httpPort(int port) |
Server.Builder |
shutdownPort(int port) |
protected final java.util.ArrayList<java.util.function.Consumer<java.io.File>> homeConsumers
protected final java.util.ArrayList<java.util.function.Consumer<Server.Builder>> builderConsumers
protected final Archive modifications
public Server.Builder httpPort(int port)
public Server.Builder ajpPort(int port)
public Server.Builder shutdownPort(int port)
public Server.Builder add(java.lang.String destinationPath, byte[] bytes)
public Server.Builder add(java.lang.String destinationPath, java.util.function.Supplier<byte[]> content)
public Server.Builder add(java.lang.String destinationPath, java.lang.String content)
public Server.Builder add(java.lang.String destinationPath, java.io.File content)
public Server.Builder add(java.lang.String name, Archive contents)
public Server.Builder home(java.util.function.Consumer<java.io.File> customization)
public Server.Builder and(java.util.function.Consumer<Server.Builder> consumer)
protected void applyHomeConsumers(java.io.File home)
protected void applyModifications(java.io.File home)
protected void applyBuilderConsumers()
public Server build()