eclipse-ee4j / jersey

Eclipse Jersey Project - Read our Wiki:
https://github.com/eclipse-ee4j/jersey/wiki
Other
692 stars 355 forks source link

Create AbstractServletAdapter class that allows modification of its WebApplication #285

Closed jerseyrobot closed 17 years ago

jerseyrobot 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

jerseyrobot commented 6 years ago
jerseyrobot commented 17 years ago

@glassfishrobot Commented Reported by aaronanderson@java.net

jerseyrobot commented 17 years ago

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

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

jerseyrobot commented 17 years ago

@glassfishrobot Commented 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.

jerseyrobot commented 17 years ago

@glassfishrobot Commented Was assigned to jersey-issues

jerseyrobot commented 7 years ago

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

jerseyrobot commented 17 years ago

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