Class 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.
    • 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.
      • Methods inherited from class java.lang.Object

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

      • MODULE$

        public static final EndpointNameDirective$ MODULE$
        Static reference to the singleton instance of this Scala object.
    • Constructor Detail

      • EndpointNameDirective$

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