Hi Sergey,

I appreciate quick response. I have been doing most of what you suggested.
This is a coding solution requiring knowledge of expacted URIs.

Is there a way to configure this?



Jiggy.


Sergey Beryozkin-2 wrote:
> 
> Hi
> 
> If you use a CXF interceptor then you can get a Message.QUERY_STRING value
> from a current Message and check if it contains a _wadl 
> part and if yes then let the request continue...
> 
> Likewise given that you use JAXRS, you can get OperationResourceInfo and
> the actual method name from a current exchange :
> 
> exchange.get(OperationResourceInfo.class).getMethodToInvoke().getName()
> and you also can get the name of the resource class about to be invoked
> upon :
> 
> exchange.get(ClassResourceInfo.class).getServiceClass().getName()
> 
> and if it's AuthService and it's login/logout then let the request to
> continue
> 
> Hope it helps, Sergey
> 
> I am a newbee. I have an interceptor that extends from
> AbstractPhaseInterceptor. This has been configured in spring cxf bus as
> follows:
> 
> <cxf:bus name="cxf-bus">
>   <cxf:inInterceptors>'
>     <ref bean="myAuthIntercept"/>
>   </cxf:inInterceptors>
> </cxf:bus>
> 
> The interceptors main job is to only allow authenticated user to access
> service.
> There are couple of exceptions.
> 1. A WADL request for the published services.
>    Currently I have a hard coded list of URIs. Not a good solution. I
> would
> like to know if there is a way either to avoid interceptor invocation on
> WADL requests or access REST URIs dynamically?
> 2. A request made to login/logout operation call made to AuthService.
>     Is there a way to make exception for this one service? I have many
> services configured and would prefer not to configure each service with
> in/out/fault interceptions.
> 
> 
> 
> Jiggy.
> -- 
> View this message in context:
> http://old.nabble.com/How-to-make-WADL-requests-to-pass-through-Interceptor-tp27595561p27595561.html
> Sent from the cxf-user mailing list archive at Nabble.com.
> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/How-to-make-WADL-requests-to-pass-through-Interceptor-tp27595561p27599555.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to