public class Server<T extends Server<T>> extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Server.ServerResources
Child mutators for Server
|
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Adds a property change listener
|
T |
ajpListener(AJPListener value)
Add the AJPListener object to the list of subresources
|
T |
ajpListener(AJPListenerSupplier supplier)
Install a supplied AJPListener object to the list of subresources
|
T |
ajpListener(String childKey)
Create and configure a AJPListener object to the list of subresources
|
T |
ajpListener(String childKey,
AJPListenerConsumer consumer)
Create and configure a AJPListener object to the list of subresources
|
T |
ajpListeners(List<AJPListener> value)
Add all AJPListener objects to this subresource
|
String |
defaultHost()
The servers default virtual host
|
T |
defaultHost(String value)
The servers default virtual host
|
String |
getKey() |
T |
host(Host value)
Add the Host object to the list of subresources
|
T |
host(HostSupplier supplier)
Install a supplied Host object to the list of subresources
|
T |
host(String childKey)
Create and configure a Host object to the list of subresources
|
T |
host(String childKey,
HostConsumer consumer)
Create and configure a Host object to the list of subresources
|
T |
hosts(List<Host> value)
Add all Host objects to this subresource
|
T |
httpListener(HTTPListener value)
Add the HTTPListener object to the list of subresources
|
T |
httpListener(HTTPListenerSupplier supplier)
Install a supplied HTTPListener object to the list of subresources
|
T |
httpListener(String childKey)
Create and configure a HTTPListener object to the list of subresources
|
T |
httpListener(String childKey,
HTTPListenerConsumer consumer)
Create and configure a HTTPListener object to the list of subresources
|
T |
httpListeners(List<HTTPListener> value)
Add all HTTPListener objects to this subresource
|
T |
httpsListener(HttpsListener value)
Add the HttpsListener object to the list of subresources
|
T |
httpsListener(HttpsListenerSupplier supplier)
Install a supplied HttpsListener object to the list of subresources
|
T |
httpsListener(String childKey)
Create and configure a HttpsListener object to the list of subresources
|
T |
httpsListener(String childKey,
HttpsListenerConsumer consumer)
Create and configure a HttpsListener object to the list of subresources
|
T |
httpsListeners(List<HttpsListener> value)
Add all HttpsListener objects to this subresource
|
void |
removePropertyChangeListener(PropertyChangeListener listener)
Removes a property change listener
|
String |
servletContainer()
The servers default servlet container
|
T |
servletContainer(String value)
The servers default servlet container
|
Server.ServerResources |
subresources() |
public Server(String key)
public String getKey()
public void addPropertyChangeListener(PropertyChangeListener listener)
public void removePropertyChangeListener(PropertyChangeListener listener)
public Server.ServerResources subresources()
public T hosts(List<Host> value)
value
- List of Host objects.public T host(Host value)
value
- The Host to addpublic T host(String childKey, HostConsumer consumer)
key
- The key for the Host resourceconfig
- The HostConsumer to usepublic T host(String childKey)
key
- The key for the Host resourcepublic T host(HostSupplier supplier)
public T httpListeners(List<HTTPListener> value)
value
- List of HTTPListener objects.public T httpListener(HTTPListener value)
value
- The HTTPListener to addpublic T httpListener(String childKey, HTTPListenerConsumer consumer)
key
- The key for the HTTPListener resourceconfig
- The HTTPListenerConsumer to usepublic T httpListener(String childKey)
key
- The key for the HTTPListener resourcepublic T httpListener(HTTPListenerSupplier supplier)
public T ajpListeners(List<AJPListener> value)
value
- List of AJPListener objects.public T ajpListener(AJPListener value)
value
- The AJPListener to addpublic T ajpListener(String childKey, AJPListenerConsumer consumer)
key
- The key for the AJPListener resourceconfig
- The AJPListenerConsumer to usepublic T ajpListener(String childKey)
key
- The key for the AJPListener resourcepublic T ajpListener(AJPListenerSupplier supplier)
public T httpsListeners(List<HttpsListener> value)
value
- List of HttpsListener objects.public T httpsListener(HttpsListener value)
value
- The HttpsListener to addpublic T httpsListener(String childKey, HttpsListenerConsumer consumer)
key
- The key for the HttpsListener resourceconfig
- The HttpsListenerConsumer to usepublic T httpsListener(String childKey)
key
- The key for the HttpsListener resourcepublic T httpsListener(HttpsListenerSupplier supplier)
public String defaultHost()
public String servletContainer()
Copyright © 2019 JBoss by Red Hat. All rights reserved.