Custom resource lookup
- Dominant language
- Java
- Stars
- 400
- Forks
- 143
- PR merge metrics
- No merged PRs in 30d
Description
(Email from Guilherme Silveira, [http://java.net/projects/jax-rs-spec/lists/jsr339-experts/archive/2011-03/message/90](http://java.net/projects/jax-rs-spec/lists/jsr339-experts/archive/2011-03/message/90) )
2\. Allows custom resource lookup:
Extract the process of resource lookup and expose it. This allows anyone to provide its own UrlToResourceTranslator. The default is JAX-RS1 compatible.
Other simple implementations are the ones where the verb GET is assumed by default, where getX means the get verb and so on. Every
convention (as with the annotation approach) is a different implementation. Implementations can be combined through composition allowing backward **and** forward compatibility:
public interface UrlToResourceTranslator
{ ResourceMethod translate(RequestInfo info) throws ResourceNotFoundException, MethodNotAllowedException; }
#### Affected Versions
[2.0]
Contributor guide
Assessment
This issue has not been assessed yet.