public class Endpoint$
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static Endpoint$ |
MODULE$
Static reference to the singleton instance of this Scala object.
|
Constructor and Description |
---|
Endpoint$() |
Modifier and Type | Method and Description |
---|---|
<T> T |
withName(java.lang.String endpointName,
java.util.function.Supplier<T> f)
Used to wrap response creation with an HTTP endpoint name.
|
public static final Endpoint$ MODULE$
public <T> T withName(java.lang.String endpointName, java.util.function.Supplier<T> f)
T
- return type of the functionendpointName
- the HTTP endpoint namef
- the function to performf
Cinnamon API. Copyright (c) 2015–2021 Lightbend.