T - the underlying server instance type.public interface ServerInstance<T> extends PropertiesReader
| Modifier and Type | Method and Description |
|---|---|
default void |
command(BiConsumer<T,URI> consumer)
Execute the given consumer function with the
getServer() value and
getBaseURI() as its parameters. |
Application |
getApplication()
Get the application annotation associated with the server instance.
|
URI |
getBaseURI()
The server base URI.
|
String |
getFqn()
Get a unique fully qualified name associated with the server instance.
|
Instance<T> |
getServer()
Get the underlying server instance.
|
default <R> R |
query(BiFunction<T,URI,R> function)
Execute the given function with the
getServer() value and getBaseURI()
as its parameters. |
findCollection, findMap, findProperty, getPropertiesReader, getPropertygetProperties, isEmptyString getFqn()
Application getApplication()
URI getBaseURI()
Instance<T> getServer()
default <R> R query(BiFunction<T,URI,R> function)
getServer() value and getBaseURI()
as its parameters.R - function return typefunction - the functiondefault void command(BiConsumer<T,URI> consumer)
getServer() value and
getBaseURI() as its parameters.consumer - the consumer functionCopyright © 2016–2018 Testify Project. All rights reserved.