Class InfoMixin
java.lang.Object
org.apache.juneau.rest.server.servlet.RestMixin
org.apache.juneau.microservice.management.InfoMixin
Mixin flavor of the
/info endpoint: renders the running application's manifest
(build/version/git metadata) resolved from the host bean store.
Composes into a host resource via @Rest(mixins=InfoMixin.class) and delegates to a
shared InfoManager worker so the mixin and resource flavors cannot drift.
When no ManifestFile bean is present the endpoint
degrades cleanly to an empty map.
See Also:
- Since:
- 10.0.0
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.juneau.rest.server.servlet.RestMixin
RestMixin.Builder<R extends RestMixin,SELF extends RestMixin.Builder<R, SELF>>, RestMixin.DefaultBuilder<R extends RestMixin> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetInfo(RestRequest req) [GET /info] - Application build/version/git metadata from the manifest.Methods inherited from class org.apache.juneau.rest.server.servlet.RestMixin
builder, getHostContext, getRestBuilder, setContext
-
Constructor Details
-
InfoMixin
public InfoMixin()
-
-
Method Details
-
getInfo
[GET /info] - Application build/version/git metadata from the manifest.- Parameters:
req- The HTTP request.- Returns:
- The manifest main attributes as a sorted map (empty when no manifest is registered).
-