From: Solomon D. <sd...@gm...> - 2011-07-11 16:47:23
|
1) 'mvn install' at the top level 2) 'mvn eclipse:eclipse' at the project you want to work on 3) in eclipse: File -> Import -> Existing Projects Into Workspace 4) browse to the project you want to work on, 'OK -Solomon On Mon, Jul 11, 2011 at 9:56 AM, Winterer Mario <Mar...@sc...>wrote: > Sure!**** > > Unfortunately, I did not have any time for this last week – I hope I can > work on it in the next days.**** > > As all RESTeasy code is based on Maven: Do you have any hints about how to > best start using eclipse?**** > > (The last times I checked out Maven based open source projects with eclipse > I had to struggle with dependencies and class paths...)**** > > ** ** > > Mario.**** > > ** ** > > *Von:* Solomon Duskis [mailto:sd...@gm...] > *Gesendet:* Montag, 04. Juli 2011 14:26 > > *An:* Winterer Mario > *Cc:* res...@li... > *Betreff:* Re: Re: [Resteasy-developers] Use dispatcher to invoke another > resource method**** > > ** ** > > Would you like to submit a patch? > > -Solomon**** > > On Mon, Jul 4, 2011 at 3:08 AM, Winterer Mario <Mar...@sc...> > wrote:**** > > Hi!**** > > **** > > Thanks a lot! InternalDispatcher is exactly for what I tried to do via > Dispatcher.invoke(...).**** > > (For some reason, the latter does not save/restore the context, while > InternalDispather does.)**** > > **** > > Unfortunately there’s still a problem concerning UriInfo: The UriInfo that > is used inside the MockHttpRequest used by InternalDispatcher does not have > the correct base URI set. That’s because MockHttpRequest.create(String > httpMethod, String uri) uses the given (relative) URI as absolute request > URI as well as base URI.**** > > **** > > Mario.**** > > **** > > **** > > *Von:* Solomon Duskis [mailto:sd...@gm...] > *Gesendet:* Sonntag, 03. Juli 2011 14:55 > *An:* Winterer Mario > *Cc:* res...@li... > *Betreff:* [?? Probable Spam] Re: [Resteasy-developers] Use dispatcher to > invoke another resource method**** > > **** > > How about this: > > > http://docs.jboss.org/resteasy/docs/2.2.0.GA/javadocs/org/jboss/resteasy/spi/InternalDispatcher.html > > -Solomon**** > > On Fri, Jul 1, 2011 at 11:18 AM, Winterer Mario <Mar...@sc...> > wrote:**** > > Hi! > > First of all: RESTeasy is a really nice piece of work that really > simplified our server REST interface. Good work! > > Maybe some of you could help us with the following problem: > > Sometimes our server needs to invoke a GET resource method from within > another resource method based on an URL we get from the client. Instead of > performing a real 'loopback' HTTP request from the server to itself we want > to use the RESTeasy dispatcher together with the mock request and response > objects to perform some kind of 'pseudo' request: > > The mechanism seems to work, but unfortunately after Dispatch.invoke(...) > returns, some context objects seem to be confused. For example: > Response.seeOther(...) does not convert relative URIs to absolute URIs any > more: > > Is it a good idea to directly use the RESTeasy internal dispatcher? If yes, > is this a bug? (I could provide a short JUnit test if required.) > If no, what's a good alternative for internal REST requests? > > Thanks, > Mario > > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2d-c2 > _______________________________________________ > Resteasy-developers mailing list > Res...@li... > https://lists.sourceforge.net/lists/listinfo/resteasy-developers**** > > **** > > ** ** > |