Class Endpoint$
- java.lang.Object
-
- com.lightbend.cinnamon.akka.http.scaladsl.server.Endpoint$
-
public class Endpoint$ extends java.lang.Object
Class that can be used to set the HTTP endpoint name of a response.
-
-
Constructor Summary
Constructors Constructor Description Endpoint$()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
currentName()
Return the current HTTP endpoint name.<T> T
withName(java.lang.String endpointName, scala.Function0<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
-
currentName
public java.lang.String currentName()
Return the current HTTP endpoint name.- Returns:
- the current HTTP enpoint name or "" if none is set
-
withName
public <T> T withName(java.lang.String endpointName, scala.Function0<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
-
-