cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Josh Holtzman (JIRA)" <j...@apache.org>
Subject [jira] Updated: (CXF-3005) Add support for jsonp in CXF JAX-RS
Date Wed, 22 Sep 2010 12:04:33 GMT

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

Josh Holtzman updated CXF-3005:
-------------------------------

    Attachment: cxf_jsonp.diff

> 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
>         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.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message