cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Beryozkin (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CXF-3005) Add support for jsonp in CXF JAX-RS
Date Sat, 09 Apr 2011 23:08:05 GMT

     [ https://issues.apache.org/jira/browse/CXF-3005?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Sergey Beryozkin resolved CXF-3005.
-----------------------------------

       Resolution: Fixed
    Fix Version/s: 2.3.4
                   2.4
         Assignee: Sergey Beryozkin

> Add support for jsonp in CXF JAX-RS
> -----------------------------------
>
>                 Key: CXF-3005
>                 URL: https://issues.apache.org/jira/browse/CXF-3005
>             Project: CXF
>          Issue Type: New Feature
>          Components: JAX-RS
>            Reporter: Josh Holtzman
>            Assignee: Sergey Beryozkin
>             Fix For: 2.4, 2.3.4
>
>         Attachments: cxf_jsonp.diff
>
>
> JAX-RS endpoints that produce JSON can be wrapped by a callback to enable JSONP, or JSON
with padding.  The attached patch adds JSONP interceptors that may be added to a JAXRSServerFactoryBean
to support JSONP.
>     JAXRSServerFactoryBean factory = new JAXRSServerFactoryBean();
>     factory.getInInterceptors().add(new JsonpInvokeInterceptor());
>     factory.getOutInterceptors().add(new JsonpPreStreamInterceptor());
>     factory.getOutInterceptors().add(new JsonpPostStreamInterceptor());
>     ...

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message