Package com.volantis.xml.pipeline.sax.config

Examples of com.volantis.xml.pipeline.sax.config.XMLPipelineConfiguration


        // get hold of the pipeline context
        XMLPipelineContext context = getPipelineContext();

        // get hold of the pipeline configuration
        XMLPipelineConfiguration pipelineConfiguration =
                context.getPipelineConfiguration();

        // retrieve the configuration
        Configuration config =
                pipelineConfiguration.retrieveConfiguration(
                        AbsoluteToRelativeURLConfiguration.class);

        if (config == null ||
                !(config instanceof AbsoluteToRelativeURLConfiguration)) {
            // cannot get hold of the configuration. As this is fatal
View Full Code Here


     */
    protected XMLPipelineContext createContext() {
        // create a factory
        XMLPipelineFactory pipelineFactory = createTestable();
        // create a config
        XMLPipelineConfiguration config =
                pipelineFactory.createPipelineConfiguration();
        // get hold of an ExpressionFactory
        ExpressionFactory expressionFactory =
                pipelineFactory.getExpressionFactory();
       
View Full Code Here

     * Tests the {@link XMLPipelineFactory#createPipelineContext} method.
     * @throws Exception if an error occurs.
     */
    public void testCreatePipelineContext() throws Exception {
        // create a config
        XMLPipelineConfiguration config =
                factory.createPipelineConfiguration();
       
        // create an environment interaction
        EnvironmentInteraction interaction =
                ServletEnvironmentFactory.getDefaultInstance()
View Full Code Here

     * Tests the {@link XMLPipelineFactory#createDynamicPipeline} method.
     * @throws Exception if an error occurs.
     */
    public void testSecondCreatePipelineContext() throws Exception {
        // create a config
        XMLPipelineConfiguration config =
                factory.createPipelineConfiguration();
       
        ExpressionContext expressionContext =
                factory.getExpressionFactory().createExpressionContext(
                        null, null);       
View Full Code Here

     * @throws Exception if an error occurs.
     */
    public void testCreateDynamicProcess() throws Exception {
       
        // create an empty pipeline configuration
        XMLPipelineConfiguration configuration =
                factory.createPipelineConfiguration();
       
        // store a DynamicProcessConfiguration in the pipeline configuratin
        configuration.storeConfiguration(
                DynamicProcessConfiguration.class,
                factory.createDynamicProcessConfiguration());
       
        // factor a DynamicProcess
        DynamicProcess process = factory.createDynamicProcess(configuration);
View Full Code Here

     */
    public void testCreateDynamicPipeline() throws Exception {
        // create a context
        XMLPipelineContext context = createContext();
        // retrieve the pipeline configuratin       
        XMLPipelineConfiguration config = context.getPipelineConfiguration();
        // store a Dynamic Process configuration in the pipeline config
        config.storeConfiguration(DynamicProcessConfiguration.class,
                                  factory.createDynamicProcessConfiguration());
        // factor a dynamic pipeline               
        XMLPipeline pipeline = factory.createDynamicPipeline(context);
        // ensure the correct object was factored
        assertEquals("createDynamicPipeline should factor a " +
View Full Code Here

        cpc = new CacheProcessConfiguration();
    }

    // javadoc inherited
    protected XMLPipelineConfiguration createPipelineConfiguration() {
        final XMLPipelineConfiguration config =
                super.createPipelineConfiguration();
        config.storeConfiguration(CacheProcessConfiguration.class, cpc);
        return config;
    }
View Full Code Here

     */
    public void testConvertAbsoluteURLToRelativeURL() throws Exception {
        XMLPipelineFactory pipelineFactory =
                new IntegrationTestHelper().getPipelineFactory();

        XMLPipelineConfiguration pipelineConfiguration =
                createPipelineConfiguration();

        // Create a XMLPipelineContext
        XMLPipelineContext pipelineContext =
                pipelineFactory.createPipelineContext(
View Full Code Here

     * {@link IntegrationTestHelper#getPipelineConfiguration} returns
     *
     * @return An XMLPipelineConfiguration instance
     */
    protected XMLPipelineConfiguration createPipelineConfiguration() {
        XMLPipelineConfiguration configuration = null;
        try {
            configuration =
                    new IntegrationTestHelper().getPipelineConfiguration();
        } catch (Exception e) {
            fail("Unable to create XMLPipelineConfiguration for test");
View Full Code Here

     */
    public void testGetBaseURL() throws Exception {
        XMLPipelineFactory pipelineFactory =
                new IntegrationTestHelper().getPipelineFactory();

        XMLPipelineConfiguration pipelineConfiguration =
                createPipelineConfiguration();
        AbsoluteToRelativeURLConfiguration config =
                (AbsoluteToRelativeURLConfiguration) pipelineConfiguration.
                retrieveConfiguration(AbsoluteToRelativeURLConfiguration.class);

        // Create a XMLPipelineContext
        XMLPipelineContext pipelineContext =
                pipelineFactory.createPipelineContext(
View Full Code Here

TOP

Related Classes of com.volantis.xml.pipeline.sax.config.XMLPipelineConfiguration

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.