Examples of process()


Examples of org.apache.camel.processor.UnmarshalProcessor.process()

    {
        final UnmarshalProcessor unmarshalProcessor = new UnmarshalProcessor(dataFormatter);
        final DefaultExchange exchange = new DefaultExchange(camelContext);
        exchange.getIn().setBody(getCustomerInputStream(CUSTOMER_XML));
       
        unmarshalProcessor.process(exchange);
       
        assertEquals(Customer.class, exchange.getOut().getBody().getClass());
    }
   
    @Test
View Full Code Here

Examples of org.apache.camel.processor.aggregate.AggregateProcessor.process()

        Exchange e5 = new DefaultExchange(context);
        e5.getIn().setBody("END");
        e5.getIn().setHeader("id", 123);

        ap.process(e1);
        ap.process(e2);
        ap.process(e3);
        ap.process(e4);
        ap.process(e5);
View Full Code Here

Examples of org.apache.camel.processor.loadbalancer.LoadBalancer.process()

        }

        LOG.debug("Firing Quartz Job with context: {}", jobExecutionContext);
        Exchange exchange = createExchange(jobExecutionContext);
        try {
            balancer.process(exchange);

            if (exchange.getException() != null) {
                // propagate the exception back to Quartz
                throw new JobExecutionException(exchange.getException());
            }
View Full Code Here

Examples of org.apache.catalina.tribes.tcp.nio.NioSender.process()

                it.remove();
                try {
                    int readyOps = sk.readyOps();
                    sk.interestOps(sk.interestOps() & ~readyOps);
                    NioSender sender = (NioSender) sk.attachment();
                    if ( sender.process(sk) ) {
                        System.out.println("Message completed for handler:"+sender);
                        Thread.currentThread().sleep(2000);
                        sender.reset();
                        sender.setMessage(XByteBuffer.createDataPackage(getMessage(mbr)));
                    }
View Full Code Here

Examples of org.apache.catalina.tribes.transport.nio.NioSender.process()

                it.remove();
                try {
                    int readyOps = sk.readyOps();
                    sk.interestOps(sk.interestOps() & ~readyOps);
                    NioSender sender = (NioSender) sk.attachment();
                    if ( sender.process(sk, (testOptions&Channel.SEND_OPTIONS_USE_ACK)==Channel.SEND_OPTIONS_USE_ACK) ) {
                        System.out.println("Message completed for handler:"+sender);
                        Thread.sleep(2000);
                        sender.reset();
                        sender.setMessage(XByteBuffer.createDataPackage(getMessage(mbr)));
                    }
View Full Code Here

Examples of org.apache.catalina.util.ssi.SsiCommand.process()

                    ssiCommand = ssiMediator.getCommand(strCmd);
                    if (ssiCommand != null && strParamType.length==strParam.length&& strParamType.length>0) {
                        if (ssiCommand.isPrintable()) {
                            out.write((ssiCommand.getStream(strParamType, strParam)).getBytes());
                        } else
                            ssiCommand.process(strParamType, strParam);
                    } else if(ignoreUnsupportedDirective && ssiCommand==null) {
                        ;
                    } else {
                        out.write(ssiMediator.getError());
                    }
View Full Code Here

Examples of org.apache.cocoon.Cocoon.process()

                // Add the object model
                ctxMap.set("objectModel", env.getObjectModel());
                // Add a unique request id (threadName + currentTime
                ctxMap.set("request-id", threadName + System.currentTimeMillis());

                if (cocoon.process(env)) {
                } else {
                    // We reach this when there is nothing in the processing change that matches
                    // the request. For example, no matcher matches.
                    getLogger().fatalError("The Cocoon engine failed to process the request.");
                    manageException(request, res, env, uri,
View Full Code Here

Examples of org.apache.cocoon.Processor.process()

            // FIXME - What to do here?
            Object processKey = CocoonComponentManager.startProcessing(newEnv);
            try {
               
                if ( !this.internal ) {
                    processingResult = usedProcessor.process(newEnv);
                } else {
                    ProcessingPipeline pp = usedProcessor.processInternal(newEnv);
                    if (pp != null) pp.release();
                    processingResult = pp != null;
                }
View Full Code Here

Examples of org.apache.cocoon.bean.CocoonBean.process()

        System.out.println(getProlog());
       
        cocoon.initialize();
        cocoon.warmup();
        cocoon.process(targets, new FileDestination(destDir));
        cocoon.dispose();

        long duration = System.currentTimeMillis() - startTimeMillis;
        System.out.println("Total time: " + (duration / 60000) + " minutes " + (duration % 60000)/1000 + " seconds");
        System.exit(0);
View Full Code Here

Examples of org.apache.cocoon.components.pipeline.ProcessingPipeline.process()

            env.setStatus(this.statusCode);
        }

        if (! context.isInternalRequest()) {
            // Process pipeline
            return pipeline.process(env);

        } else {
            // Return true : pipeline is finished.
            return true;
        }
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.