Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jersey-dev] Internal request with new UriInfo

Hi,

say I have a resource class with a UriInfo constructor and a @POST method.

How do I call post() on a new Resource with a new UriInfo with a
different requestUri?

public class Resource
{

    @Inject
    public Resource(UriInfo uriInfo)
    {
        ...
    }

    @POST
    public post(Model model)
    {
        // use getUriInfo() here
        ...
        // forward POST -- how to construct UriInfo with an arbitrary
requestUri?
        new Resource(???).post(newModel);
        ...
    }

}


Martynas


Back to the top