cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrei Shakirin <ashaki...@talend.com>
Subject RE: How to use Neethi to build policy Dynamically
Date Wed, 27 Feb 2013 15:08:55 GMT
Hi,

> Could you give me more detail cade example?

Sure, but I would like to understand your use case a little bit more. 
Do you prepare your own policies in CXF interceptor and apply it dynamically?

Cheers,
Andrei.  


> -----Original Message-----
> From: lv [mailto:lv.123@live.cn]
> Sent: Mittwoch, 27. Februar 2013 11:15
> To: users@cxf.apache.org
> Subject: RE: How to use Neethi to build policy Dynamically
> 
> 
> Thank you!
> Could you give me more detail cade example?
> 
> > From: ashakirin@talend.com
> > To: users@cxf.apache.org
> > Subject: RE: How to use Neethi to build policy Dynamically
> > Date: Wed, 27 Feb 2013 10:01:09 +0000
> >
> > Hi,
> >
> > Basically org.apache.neethi.PolicyBuilder does this job:
> http://ws.apache.org/neethi/apidocs/org/apache/neethi/PolicyBuilder.html
> .
> >
> > Anyway, to create Neethi policy from XML in CXF, you can reuse CXF
> PolicyBuilder:
> > org.apache.cxf.ws.policy.PolicyBuilder builder =
> message.getExchange().getBus()
> >
> 	.getExtension(org.apache.cxf.ws.policy.PolicyBuilder.class);
> > Policy genericPolicy = builder.getPolicy(xmlPolicyElement);
> >
> > Cheers,
> > Andrei.
> >
> 
> 

Mime
View raw message