[
https://issues.jboss.org/browse/JBIDE-10540?page=com.atlassian.jira.plugi...
]
Xavier Coulon commented on JBIDE-10540:
---------------------------------------
hi Jaroslav,
For both @Produces and @Consumes annotations, you can use the constants defined in the
javax.ws.rs.core.MediaType class:
{code}
@Consumes(MediaType.APPLICATION_XML)
@Produces({ MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON })
{code}
The constants provided by this class are the most frequently used media-types, but you can
still input your own ones if you need.
Does this respond to your need or do you need more ?
/Xavier
Content assist for @Produces annotation
---------------------------------------
Key: JBIDE-10540
URL:
https://issues.jboss.org/browse/JBIDE-10540
Project: Tools (JBoss Tools)
Issue Type: Feature Request
Components: Webservices
Affects Versions: 3.3.0.M5
Reporter: Jaroslav Jankovič
Assignee: Xavier Coulon
Fix For: 3.3.0.Beta1
Now there is no content assist for parameter in @Produces annotation for JAX-RS Web
Services. User has to know all possible options in this annotation and also he has to type
it correctly. It would be good, if we could provide content assist for this annotation, so
user doesn't have to know all options.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira