| Modifier and Type | Field and Description |
|---|---|
protected ArrayList<Consumer<Server.Builder>> |
builderConsumers |
protected ArrayList<Consumer<File>> |
homeConsumers |
protected Archive |
modifications |
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
Server.Builder |
add(String name,
Archive contents) |
Server.Builder |
add(String destinationPath,
byte[] bytes) |
Server.Builder |
add(String destinationPath,
File content) |
Server.Builder |
add(String destinationPath,
String content) |
Server.Builder |
add(String destinationPath,
Supplier<byte[]> content) |
Server.Builder |
ajpPort(int port) |
Server.Builder |
and(Consumer<Server.Builder> consumer) |
protected void |
applyBuilderConsumers() |
protected void |
applyHomeConsumers(File home) |
protected void |
applyModifications(File home) |
Server |
build() |
Server.Builder |
home(Consumer<File> customization) |
Server.Builder |
httpPort(int port) |
Server.Builder |
shutdownPort(int port) |
protected final ArrayList<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(String destinationPath, byte[] bytes)
public Server.Builder add(String destinationPath, Supplier<byte[]> content)
public Server.Builder add(String destinationPath, String content)
public Server.Builder add(String destinationPath, File content)
public Server.Builder add(String name, Archive contents)
public Server.Builder home(Consumer<File> customization)
public Server.Builder and(Consumer<Server.Builder> consumer)
protected void applyHomeConsumers(File home)
protected void applyModifications(File home)
protected void applyBuilderConsumers()
public Server build()
Copyright © 1999–2022 The Apache Software Foundation. All rights reserved.