Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Here's an example of it in use...

Image RemovedImage Added

Instead of routing requests through a servlet container, it simply creates the RestContext object for the resource and calls the RestContext.getCallHandler().service(request, response); method with mocked-up ServletRequest and ServletResponse objects.

Here's what it looks like in expanded form:

Image RemovedImage Added

In theory, everything should work identically to how it would behave in a servlet container, only faster and more efficient.

 

I'd like to also get something working for RestClient as well so that you can test out remoteable proxy interfaces without a servlet container.