Class EndpointNameDirective

  • Direct Known Subclasses:
    EndpointNameDirective$

    public abstract class EndpointNameDirective
    extends java.lang.Object
    Directive to set the name of an HTTP endpoint.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      akka.http.scaladsl.server.Directive<scala.runtime.BoxedUnit> endpointName​(java.lang.String name)
      Set the name of this endpoint unless the response coming back already has a name.
      akka.http.scaladsl.model.HttpResponse responseWithNameIfEmpty​(akka.http.javadsl.model.HttpResponse response, java.lang.String 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

      • responseWithNameIfEmpty

        public akka.http.scaladsl.model.HttpResponse responseWithNameIfEmpty​(akka.http.javadsl.model.HttpResponse response,
                                                                             java.lang.String name)
      • endpointName

        public akka.http.scaladsl.server.Directive<scala.runtime.BoxedUnit> endpointName​(java.lang.String name)
        Set the name of this endpoint unless the response coming back already has a name.
        Parameters:
        name - (undocumented)
        Returns:
        (undocumented)