javaee / jersey

This is no longer the active Jersey repository. Please see the README.md
http://jersey.github.io
Other
2.86k stars 2.36k forks source link

Create AbstractServletAdapter class that allows modification of its WebApplication #285

Closed glassfishrobot closed 16 years ago

glassfishrobot commented 17 years ago

Developers wishing to embed Jersey support into their application will likely utilize the popular Servlet standard to manage HTTP requests and pass them on to the Jersey runtime for processing. The existing ServletAdapter class would be ideal for developers to extend accomplish this except:

1. It is in the Jersey implementation package and not in the SPI implying it is not intended to be used directly by developers.

2. It's ResourceConfig and WebApplication instances are not exposed to subclasses and cannot be modified.

If the Servlet Adaptor class were moved to the SPI package and a new abstact method added to it with the following signature:

WebApplication setup(){

}

were added then developers could provide their own customized ResourceConfig implementation along with modifying the WebApplication instance as needed (i.e. adding injectables).

Environment

Operating System: All Platform: All

glassfishrobot commented 17 years ago

Reported by aaronanderson@java.net

glassfishrobot commented 17 years ago

sandoz@java.net said: See reference to following email on proposed solution:

https://jersey.dev.java.net/servlets/ReadMsg?list=users&msgNo=160

glassfishrobot commented 16 years ago

sandoz@java.net said: New class:

com.sun.ws.rest.spi.container.servlet.ServletContainer

which may be used directly or inherited from to override or add behaviour.

glassfishrobot commented 17 years ago

Was assigned to jersey-issues

glassfishrobot commented 7 years ago

This issue was imported from java.net JIRA JERSEY-13

glassfishrobot commented 16 years ago

Marked as fixed on Thursday, September 27th 2007, 10:58:48 pm