Package akka.javasdk.annotations.http
Annotation Interface HttpEndpoint
Mark a class to be made available as an HTTP endpoint. The annotated class should be public and have a public
constructor.
Annotated classes can accept the following types to the constructor:
ComponentClient
HttpClientProvider
TimerScheduler
Materializer
Config
Span
- Custom types provided by a
DependencyProvider
from the service setup
If the annotated class extends AbstractHttpEndpoint
the request context
is available without constructor injection.
-
Optional Element Summary
-
Element Details
-
value
String value- Default:
""
-