jakartaee / rest

Jakarta RESTful Web Services
Other
366 stars 121 forks source link

Custom resource lookup #68

Open glassfishrobot opened 13 years ago

glassfishrobot commented 13 years ago

(Email from Guilherme Silveira, 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]

glassfishrobot commented 6 years ago
glassfishrobot commented 13 years ago

@glassfishrobot Commented Reported by robc

glassfishrobot commented 12 years ago

@glassfishrobot Commented @mpotociar said: Out of scope for 2.0. Assigning to the right category and deferring to a future release.

glassfishrobot commented 7 years ago

@glassfishrobot Commented This issue was imported from java.net JIRA JAX_RS_SPEC-63