All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jboss.resteasy.spi.touri.URITemplateAnnotationResolver Maven / Gradle / Ivy

There is a newer version: 4.0.0.Beta5
Show newest version
package org.jboss.resteasy.spi.touri;

import org.jboss.resteasy.specimpl.ResteasyUriBuilder;

import java.lang.annotation.Annotation;

public class URITemplateAnnotationResolver extends
      AbstractURITemplateAnnotationResolver
{

   protected Class getAnnotationType()
   {
      return URITemplate.class;
   }

   protected ResteasyUriBuilder getUriBuilder(Class clazz)
   {
      String uriTemplate = clazz.getAnnotation(URITemplate.class).value();
      ResteasyUriBuilder uriBuilderImpl = new ResteasyUriBuilder();
      uriBuilderImpl.replacePath(uriTemplate);
      return uriBuilderImpl;
   }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy