Class Endpoint$
- java.lang.Object
-
- com.lightbend.cinnamon.akka.http.javadsl.server.Endpoint$
-
public class Endpoint$ extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Endpoint$()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> T
withName(java.lang.String endpointName, java.util.function.Supplier<T> f)
Used to wrap response creation with an HTTP endpoint name.
-
-
-
Field Detail
-
MODULE$
public static final Endpoint$ MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Method Detail
-
withName
public <T> T withName(java.lang.String endpointName, java.util.function.Supplier<T> f)
Used to wrap response creation with an HTTP endpoint name.- Type Parameters:
T
- return type of the function- Parameters:
endpointName
- the HTTP endpoint namef
- the function to perform- Returns:
- the result of evaluating
f
-
-