Examples of afterPropertiesSet()


Examples of org.springframework.web.servlet.view.ContentNegotiatingViewResolver.afterPropertiesSet()

        new HeaderContentNegotiationStrategy(), new FixedContentNegotiationStrategy(MediaType.TEXT_HTML));

    ContentNegotiatingViewResolver cnViewResolver = new ContentNegotiatingViewResolver();
    cnViewResolver.setDefaultViews(viewList);
    cnViewResolver.setContentNegotiationManager(manager);
    cnViewResolver.afterPropertiesSet();

    MockMvc mockMvc =
      standaloneSetup(new PersonController())
        .setViewResolvers(cnViewResolver, new InternalResourceViewResolver())
        .build();
View Full Code Here

Examples of org.springframework.web.servlet.view.tiles2.TilesConfigurer.afterPropertiesSet()

    TilesConfigurer tc = new TilesConfigurer();
    tc.setDefinitions(new String[] { "tiles-definitions.xml" });
    tc.setValidateDefinitions(true);
    tc.setServletContext(servletContext);
    tc.setUseMutableTilesContainer(true);
    tc.afterPropertiesSet();

    ajaxTilesView = new AjaxTilesView();
  }

  private void setupStaticWebApplicationContext() {
View Full Code Here

Examples of org.springframework.web.servlet.view.tiles3.TilesConfigurer.afterPropertiesSet()

    TilesConfigurer tc = new TilesConfigurer();
    tc.setDefinitions(new String[] { "tiles-definitions.xml" });
    tc.setValidateDefinitions(true);
    tc.setServletContext(servletContext);
    tc.setUseMutableTilesContainer(false);
    tc.afterPropertiesSet();

    ajaxTilesView = new AjaxTilesView();
  }

  private void setupStaticWebApplicationContext() {
View Full Code Here

Examples of org.springframework.ws.server.endpoint.adapter.DefaultMethodEndpointAdapter.afterPropertiesSet()

        SOAPMessage request = messageFactory.createMessage();
        request.getSOAPBody().addBodyElement(QName.valueOf("{http://springframework.org/spring-ws}Request"));
        MessageContext messageContext =
                new DefaultMessageContext(new SaajSoapMessage(request), new SaajSoapMessageFactory(messageFactory));
        DefaultMethodEndpointAdapter adapter = new DefaultMethodEndpointAdapter();
        adapter.afterPropertiesSet();

        MessageDispatcher messageDispatcher = new SoapMessageDispatcher();
        messageDispatcher.setApplicationContext(applicationContext);
        messageDispatcher.setEndpointMappings(Collections.<EndpointMapping>singletonList(mapping));
        messageDispatcher.setEndpointAdapters(Collections.<EndpointAdapter>singletonList(adapter));
View Full Code Here

Examples of org.springframework.ws.soap.axiom.AxiomSoapMessageFactory.afterPropertiesSet()

        Transformer transformer = TransformerFactory.newInstance().newTransformer();
        SOAPFactory axiomFactory = OMAbstractFactory.getSOAP11Factory();
        AxiomSoapMessage request = new AxiomSoapMessage(axiomFactory);
        transformer.transform(new StringSource(REQUEST), request.getPayloadResult());
        AxiomSoapMessageFactory soapMessageFactory = new AxiomSoapMessageFactory();
        soapMessageFactory.afterPropertiesSet();
        MessageContext context = new DefaultMessageContext(request, soapMessageFactory);

        MessageEndpoint endpoint = createResponseEndpoint();
        endpoint.invoke(context);
        assertTrue("context has not response", context.hasResponse());
View Full Code Here

Examples of org.springframework.ws.soap.saaj.SaajSoapMessageFactory.afterPropertiesSet()

        Transformer transformer = TransformerFactory.newInstance().newTransformer();
        MessageFactory messageFactory = MessageFactory.newInstance();
        SaajSoapMessage request = new SaajSoapMessage(messageFactory.createMessage());
        transformer.transform(new StringSource(REQUEST), request.getPayloadResult());
        SaajSoapMessageFactory soapMessageFactory = new SaajSoapMessageFactory();
        soapMessageFactory.afterPropertiesSet();
        MessageContext context = new DefaultMessageContext(request, soapMessageFactory);

        MessageEndpoint endpoint = createResponseEndpoint();
        endpoint.invoke(context);
        assertTrue("context has not response", context.hasResponse());
View Full Code Here

Examples of org.springframework.ws.soap.security.support.KeyStoreFactoryBean.afterPropertiesSet()

        KeyStoreFactoryBean factory = new KeyStoreFactoryBean();
        factory.setLocation(new ClassPathResource("private.jks"));
        factory.setPassword("123456");
        factory.setType("JCEKS");
        factory.afterPropertiesSet();
        KeyStore keyStore = factory.getObject();
        callbackHandler.setKeyStore(keyStore);
        callbackHandler.setSymmetricKeyPassword("123456");
    }
View Full Code Here

Examples of org.springframework.ws.soap.security.wss4j.support.CryptoFactoryBean.afterPropertiesSet()

        cryptoFactoryBean.setCryptoProvider(Merlin.class);
        cryptoFactoryBean.setKeyStoreType("jceks");
        cryptoFactoryBean.setKeyStorePassword("123456");
        cryptoFactoryBean.setKeyStoreLocation(new ClassPathResource("private.jks"));

        cryptoFactoryBean.afterPropertiesSet();
        interceptor.setSecurementSignatureCrypto(cryptoFactoryBean
                .getObject());
        interceptor.setValidationSignatureCrypto(cryptoFactoryBean
                .getObject());
        interceptor.afterPropertiesSet();
View Full Code Here

Examples of org.springframework.xd.dirt.module.ModuleDeployer.afterPropertiesSet()

    beanDefinition.setConstructorArgumentValues(constructorArgumentValues);
    BeanDefinitionRegistry registry = (BeanDefinitionRegistry) pluginContext.getBeanFactory();
    registry.removeBeanDefinition(STREAM_PLUGIN_BEAN_ID);
    registry.registerBeanDefinition(STREAM_PLUGIN_BEAN_ID, beanDefinition);
    ModuleDeployer moduleDeployer = application.containerContext().getBean(ModuleDeployer.class);
    moduleDeployer.afterPropertiesSet();
  }

}
View Full Code Here

Examples of org.springframework.xml.xsd.commons.CommonsXsdSchemaCollection.afterPropertiesSet()

    @Test
    public void testInclude() throws Exception {
        ClassPathResource resource = new ClassPathResource("including.xsd", getClass());
        CommonsXsdSchemaCollection schemaCollection = new CommonsXsdSchemaCollection(new Resource[]{resource});
        schemaCollection.setInline(true);
        schemaCollection.afterPropertiesSet();
        definition.setSchemaCollection(schemaCollection);

        definition.setPortTypeName("Order");
        definition.setTargetNamespace("http://www.springframework.org/spring-ws/include/definitions");
        definition.setLocationUri("http://localhost:8080/");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.