You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Kevin Cai <ca...@yahoo.com> on 2014/03/31 22:13:16 UTC
回复: 回复: How to configure CXF Jas-RS to use RequestHandler without spring
you mean use interceptors not request handler or filter?
Sergey Beryozkin <sb...@gmail.com> 于 2014年4月1日, 星期二, 1:02 上午 写道:
Hi
You can register them with CXFNonSpringJaxrsServlet, listing their class
names or instantiating them directly inside a custom Application class,
please check this example:
https://cxf.apache.org/docs/jaxrs-services-configuration.html#JAXRSServicesConfiguration-ConfiguringJAX-RSservicesincontainerwithoutSpring
If you work with CXF 2.7.x or 3.x - use JAX-RS 2.0
ContainerRequestFilter instead
HTH, Sergey
On 31/03/14 14:29, Kevin Cai wrote:
> Sorry, I mean how to config CXF Jax-rs to use RequestHandler (Filter) to implement Basic Authentication without Spring. Thanks
>
>
> Kevin Cai <ca...@yahoo.com> 于 2014年3月31日, 星期一, 9:26 下午 写道:
>
> Dear all,
>
> Seems that all config docs of CXF are all about config cxf with Spring. I would like to know how to config CXF Jax-rs to use RequestHandler (Filter) to implement Basic Authentication. Thanks.
>
>
> Yours,
> Kevin Choi
>