Thanks for the responses. 
I have tried NameBinding, but the filter doesn't get activated.  What am I
missing?


@Target({ ElementType.TYPE, ElementType.METHOD })
@Retention(value = RetentionPolicy.RUNTIME)
@NameBinding
public @interface CsgHeaderValidation
{
}

@Component
@CsgHeaderValidation
public class CsgHeaderValidationFilter implements ContainerRequestFilter {
. . . 
}


   @POST
   @Path("/entitlement")
   @Consumes({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})
   @CsgHeaderValidation
   @Valid
   public Response postEntitlement(@Context final HttpServletRequest
request, @NotNull @Valid final CsgEntitlement csgEntitlement) throws
GenericRestException
   {
. . . 
}




--
View this message in context: 
http://cxf.547215.n5.nabble.com/Configuration-problem-specific-rest-services-need-specific-providers-tp5746867p5746951.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to