Package org.apache.cxf.validation

Examples of org.apache.cxf.validation.BeanValidationInInterceptor


    private BeanValidationProvider validationProvider;
   
    @Override
    protected void initializeProvider(InterceptorProvider interceptorProvider, Bus bus) {
        BeanValidationInInterceptor in = new JAXRSBeanValidationInInterceptor();
        BeanValidationOutInterceptor out = new JAXRSBeanValidationOutInterceptor();
        if (validationProvider != null) {
            in.setProvider(validationProvider);
            out.setProvider(validationProvider);
        }
        interceptorProvider.getInInterceptors().add(in);
        interceptorProvider.getOutInterceptors().add(out);
    }
View Full Code Here


            sf.setResourceProvider(BookStoreWithValidation.class,
                new SingletonResourceProvider(new BookStoreWithValidation()));
            sf.setProvider(new ValidationExceptionMapper());

            sf.setAddress("http://localhost:" + PORT + "/");
            BeanValidationInInterceptor in = new JAXRSBeanValidationInInterceptor();
            in.setProvider(new BeanValidationProvider(new JAXRSParameterNameProvider()));
            sf.setInInterceptors(Arrays.< Interceptor< ? extends Message > >asList(
                in));
            
            sf.setOutInterceptors(Arrays.< Interceptor< ? extends Message > >asList(
                new JAXRSBeanValidationOutInterceptor()));
View Full Code Here

TOP

Related Classes of org.apache.cxf.validation.BeanValidationInInterceptor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.