Caleb Cushing created WFLY-3212:
-----------------------------------
Summary: Access Base URI without CDI
Key: WFLY-3212
URL:
https://issues.jboss.org/browse/WFLY-3212
Project: WildFly
Issue Type: Feature Request
Security Level: Public (Everyone can see)
Reporter: Caleb Cushing
Priority: Minor
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
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira