Class EndpointNameDirective


  • public class EndpointNameDirective
    extends java.lang.Object
    Directive to set the name of an HTTP endpoint.
    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • EndpointNameDirective

        public EndpointNameDirective()
    • 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 set
        inner - the route to set the name on
        Returns:
        the resulting route