Class VersionResource

java.lang.Object
org.apache.juneau.rest.server.servlet.RestResource
org.apache.juneau.rest.server.convention.VersionResource

public class VersionResource extends RestResource
Child-resource flavor of the VersionMixin version/build-metadata capability.

Mounts as a routed child via @Rest(children=VersionResource.class) under a parent at the subtree /version and serves the same deployment-introspection JSON map as the mixin by delegating to a shared flavor-neutral VersionProvider worker bean — so the forms cannot drift.

Whereas the VersionMixin mixin pins its op at /version for composition into a host at /, this child declares the subtree at the class level (@Rest(path="/version")) and pins the op at /*.

See Also:
Since:
10.0.0
  • Constructor Details

  • Method Details

    • getInfo

      public void getInfo(RestResponse res) throws IOException
      [GET /*] — emit the assembled metadata as a JSON map.
      Parameters:
      res - The current REST response.
      Throws:
      IOException - If an I/O error occurs while writing the response.