| 1 |
package org.jboss.resteasy.spi.touri; |
| 2 |
|
| 3 |
import org.jboss.resteasy.specimpl.ResteasyUriBuilder; |
| 4 |
|
| 5 |
import java.lang.annotation.Annotation; |
| 6 |
|
| 7 |
public class URITemplateAnnotationResolver extends |
| 8 |
AbstractURITemplateAnnotationResolver |
| 9 |
{ |
| 10 |
|
| 11 |
protected Class<? extends Annotation> getAnnotationType() |
| 12 |
{ |
| 13 |
return URITemplate.class; |
| 14 |
} |
| 15 |
|
| 16 |
protected ResteasyUriBuilder getUriBuilder(Class<? extends Object> clazz) |
| 17 |
{ |
| 18 |
String uriTemplate = clazz.getAnnotation(URITemplate.class).value(); |
| 19 |
ResteasyUriBuilder uriBuilderImpl = new ResteasyUriBuilder(); |
| 20 |
uriBuilderImpl.replacePath(uriTemplate); |
| 21 |
return uriBuilderImpl; |
| 22 |
} |
| 23 |
} |