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.
-
-
Constructor Summary
Constructors Constructor Description EndpointNameDirective()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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.
-
-
-
Method Detail
-
endpointName
public static 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
-
-