Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-3212

Access Base URI without CDI

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • None
    • REST
    • None

      I need to get at the baseUri, I'm familliar with this

      @Context
      UriInfo uriInfo;

      my problem is I need the baseUri in a piece of code I can't Inject into, (a sub object of an entity). I could pass `uriInfo` or the builder down but that doesn't seem ideal, as most of the objects have no business knowing about it. The end goal is HATEOAS URI's in my JSON responses, but I don't need it to be a JAX-RS specific solution, I figure if I can just get at the Base URI either in my jackson converters, or entities, I can create the `URIBuilder` from there. It seems to me that once the app is deployed the base uri could be a global singleton.

      This is requesting a feature that allows me to access the base uri in the application or a URIBuilder similar to UriInfo.getBaseUriBuilder() except without requiring that the object be injected, this object would obviously not have request specific information

            Unassigned Unassigned
            xenoterracide_jira Caleb Cushing (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: