[jbosstools-issues] [JBoss JIRA] (JBIDE-15881) Annotated field with QueryParam missing in URL Endpoint template
Xavier Coulon (JIRA)
issues at jboss.org
Thu Aug 28 11:28:00 EDT 2014
[ https://issues.jboss.org/browse/JBIDE-15881?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Xavier Coulon resolved JBIDE-15881.
-----------------------------------
Fix Version/s: 4.2.0.CR1
(was: 4.2.x)
Resolution: Done
Cannot reproduce it now. Was resolved in previous fixes/enhancements.
> Annotated field with QueryParam missing in URL Endpoint template
> ----------------------------------------------------------------
>
> Key: JBIDE-15881
> URL: https://issues.jboss.org/browse/JBIDE-15881
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: webservices
> Affects Versions: 4.1.0.Final
> Reporter: Xavier Coulon
> Assignee: Xavier Coulon
> Fix For: 4.2.0.CR1
>
>
> Take the following classes:
> {code}
> @Path("/products")
> public class ProductResourceLocator {
> @QueryParam("foo1")
> private String foo2;
> @Path("/{productType}")
> public Object getProductResourceLocator() {
> return new BookResource();
> }
> }
> {code}
> and
> {code}
> @Produces({ MediaType.APPLICATION_XML, "application/json" })
> public class BookResource {
> @GET
> @Path("/{id}")
> @Produces({ "application/xml", "application/json" })
> public Book getProduct(@PathParam("id") Integer id) {
> return null;
> }
> }
> {code}
> ASSERT: the URL Template for the Endpoint should be something like
> {code}
> /products/{productType}/{id}?foo1={String}
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
More information about the jbosstools-issues
mailing list