[jbosstools-issues] [JBoss JIRA] (JBIDE-10540) Content assist for @Produces annotation

Xavier Coulon (Commented) (JIRA) jira-events at lists.jboss.org
Fri Jan 6 02:22:09 EST 2012


    [ https://issues.jboss.org/browse/JBIDE-10540?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12654215#comment-12654215 ] 

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

       



More information about the jbosstools-issues mailing list