Class EndpointNameDirective
- java.lang.Object
-
- com.lightbend.cinnamon.akka.http.scaladsl.server.EndpointNameDirective
-
- Direct Known Subclasses:
EndpointNameDirective$
public abstract 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 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)
-
-
-
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)
-
-