Class EndpointNameDirective$
- java.lang.Object
-
- com.lightbend.cinnamon.akka.http.javadsl.server.EndpointNameDirective$
-
public class EndpointNameDirective$ extends java.lang.Object
Directive to set the name of an HTTP endpoint.
-
-
Field Summary
Fields Modifier and Type Field Description static EndpointNameDirective$
MODULE$
Static reference to the singleton instance of this Scala object.
-
Constructor Summary
Constructors Constructor Description EndpointNameDirective$()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description akka.http.javadsl.server.Route
endpointName(java.lang.String name, java.util.function.Supplier<akka.http.javadsl.server.Route> inner)
Set the name of this endpoint unless the response coming back already has a name.
-
-
-
Field Detail
-
MODULE$
public static final EndpointNameDirective$ MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Method Detail
-
endpointName
public akka.http.javadsl.server.Route endpointName(java.lang.String name, java.util.function.Supplier<akka.http.javadsl.server.Route> inner)
Set the name of this endpoint unless the response coming back already has a name.- Parameters:
name
- the name to setinner
- the route to set the name on- Returns:
- the resulting route
-
-