Examples of Processor


Examples of org.apache.sling.rewriter.Processor

    /**
     * Search the first matching processor
     */
    private Processor getProcessor() {
        final ProcessingContext processorContext = new ServletProcessingContext(this.request, this, this.getSlingResponse(), this.contentType);
        Processor found = null;
        final List<ProcessorConfiguration> processorConfigs = this.processorManager.getProcessorConfigurations();
        final Iterator<ProcessorConfiguration> i = processorConfigs.iterator();
        while ( found == null && i.hasNext() ) {
            final ProcessorConfiguration config = i.next();
            if ( config.match(processorContext) ) {
View Full Code Here

Examples of org.apache.stanbol.cmsadapter.servicesapi.processor.Processor

        Iterator<Processor> processorIterator;
        synchronized (processors) {
            processorIterator = processors.iterator();

            while (processorIterator.hasNext()) {
                Processor processor = processorIterator.next();
                long t1 = System.currentTimeMillis();
                try {
                    if (mode.contentEquals("create")) {
                        processor.createObjects(cmsObjects, this);
                    } else if (mode.contentEquals("delete")) {
                        processor.deleteObjects(cmsObjects, this);
                    }
                } finally {
                    logger.debug("{} processor completed execution in {} miliseconds", processor.toString(),
                        System.currentTimeMillis() - t1);
                }
            }
        }
    }
View Full Code Here

Examples of org.apache.synapse.Processor

public class AddressingProcessorTest extends TestCase {

    public void testAddressingProcessor() throws Exception {
        SynapseMessage sm = new Axis2SynapseMessage(
                Axis2EnvSetup.axis2Deployment("target/synapse-repository"));
        Processor addressingProcessor = new AddressingInProcessor();
        SynapseEnvironment env = new Axis2SynapseEnvironment(null,null);
        boolean result = addressingProcessor.process(env,sm);
        assertTrue(((Boolean) sm.getProperty(
                Constants.MEDIATOR_RESPONSE_PROPERTY)).booleanValue());
        assertTrue(result);
    }
View Full Code Here

Examples of org.apache.tez.runtime.api.Processor

    return (LogicalOutput) output;
  }

  private LogicalIOProcessor createProcessor(
      ProcessorDescriptor processorDescriptor) {
    Processor processor = RuntimeUtils.createClazzInstance(processorDescriptor
        .getClassName());
    if (!(processor instanceof LogicalIOProcessor)) {
      throw new TezUncheckedException(processor.getClass().getName()
          + " is not a sub-type of LogicalIOProcessor."
          + " Only LogicalIOProcessor sub-types supported by LogicalIOProcessorRuntimeTask.");
    }
    return (LogicalIOProcessor) processor;
  }
View Full Code Here

Examples of org.apache.trax.Processor

  public static void main(String[] args) throws Exception {
    PropertyConfigurator.disableAll();
    PropertyConfigurator.configure("x.lcf");

    // I. Instantiate  a stylesheet processor.
    Processor processor = Processor.newInstance("xslt");

    // II. Process the stylesheet. producing a Templates object.

    // Get the XMLReader.
    XMLReader reader = XMLReaderFactory.createXMLReader();

    // Set the ContentHandler.
    TemplatesBuilder templatesBuilder = processor.getTemplatesBuilder();
    reader.setContentHandler(templatesBuilder);

    // Set the ContentHandler to also function as a LexicalHandler, which
    // includes "lexical" (e.g., comments and CDATA) events. The Xalan
    // TemplatesBuilder -- org.apache.xalan.processor.StylesheetHandler -- is
View Full Code Here

Examples of org.apache.ws.security.processor.Processor

        requestData.setCallbackHandler(callbackHandler);
        Crypto crypto = CryptoFactory.getInstance("serviceKeystore.properties");
        requestData.setDecCrypto(crypto);
        requestData.setSigCrypto(crypto);
       
        Processor processor = new SAMLTokenProcessor();
        return processor.handleToken(
            token.getToken(), requestData, new WSDocInfo(token.getToken().getOwnerDocument())
        );
    }
View Full Code Here

Examples of org.apache.wss4j.dom.processor.Processor

        requestData.setCallbackHandler(callbackHandler);
        Crypto crypto = CryptoFactory.getInstance("serviceKeystore.properties");
        requestData.setDecCrypto(crypto);
        requestData.setSigVerCrypto(crypto);
       
        Processor processor = new SAMLTokenProcessor();
        return processor.handleToken(
            token.getToken(), requestData, new WSDocInfo(token.getToken().getOwnerDocument())
        );
    }
View Full Code Here

Examples of org.ar.domainspecific.definitions.Processor

   * @param args
   */
  public static void main(String[] args)
  {
   
    Processor processor = new OntologyProcessor();
    processor.run(URI.create("file:datasets/Economy-TBox.owl"), "output-rank-csv/Economy.csv");
    //processor.run(URI.create("file:datasets/GeneRegulation-GRO-100-Tbox.owl"), "output-rank-csv/GeneRegulation-GRO-100.csv");
    //processor.run(URI.create("file:datasets/LKIF-100-Tbox.owl"), "output-rank-csv/LKIF-100.csv");
    processor.run(URI.create("file:datasets/People-Tbox.owl"), "output-rank-csv/People.csv");
    processor.run(URI.create("file:datasets/Process-Tbox.owl"), "output-rank-csv/Process.csv");
    processor.run(URI.create("file:datasets/Pizza-Tbox.owl"), "output-rank-csv/Pizza.csv");
    processor.run(URI.create("file:datasets/Units-Tbox.owl"), "output-rank-csv/Units.csv");
    processor.run(URI.create("file:datasets/BVA-500-Tbox.owl"), "output-rank-csv/BVA-500.csv");
    processor.run(URI.create("file:datasets/myGrid-Merged-100-Tbox.owl"), "output-rank-csv/myGrid-Merged-100.csv");
    processor.run(URI.create("file:datasets/Phenomena-Tbox.owl"), "output-rank-csv/Phenomena.csv");
    processor.run(URI.create("file:datasets/Property2-Tbox.owl"), "output-rank-csv/Property2.csv");
    processor.run(URI.create("file:datasets/Space-Tbox.owl"), "output-rank-csv/Space.csv");
    processor.run(URI.create("file:datasets/Transportation-Tbox.owl"), "output-rank-csv/Transportation.csv");
    processor.run(URI.create("file:datasets/GALEN-100-Tbox.owl"), "output-rank-csv/GALEN-100.csv");
    processor.run(URI.create("file:datasets/GALEN-250-Tbox.owl"), "output-rank-csv/GALEN-250.csv");
    //processor.run(URI.create("file:datasets/Dolce-100-Tbox.owl"), "output-rank-csv/Dolce-100.csv");
   
    processor.run(URI.create("file:datasets/University-Tbox.owl"), "output-rank-csv/University.csv");
  }
View Full Code Here

Examples of org.asynchttpclient.providers.netty.handler.Processor

    }

    public void configureBootstraps(NettyRequestSender requestSender, AtomicBoolean closed) {

        HttpProtocol httpProtocol = new HttpProtocol(this, config, nettyConfig, requestSender);
        final Processor httpProcessor = new Processor(config, this, requestSender, httpProtocol);

        WebSocketProtocol wsProtocol = new WebSocketProtocol(this, config, nettyConfig, requestSender);
        wsProcessor = new Processor(config, this, requestSender, wsProtocol);

        plainBootstrap.handler(new ChannelInitializer<Channel>() {
            @Override
            protected void initChannel(Channel ch) throws Exception {
                ch.pipeline()//
View Full Code Here

Examples of org.atmosphere.annotation.Processor

        logger.info("Found Annotation in {} being scanned: {}", discoveredClass, annotation);
        framework.annotationScanned(true);
        Class<? extends Processor> a = annotations.get(annotation);

        if (a != null) {
            Processor p = processors.get(a);
            if (p == null) {
                try {
                    p = framework.newClassInstance(Processor.class, a);
                } catch (Exception e) {
                    logger.warn("Unable to create Processor {}", p);
                }
                processors.put(a, p);
            }
            p.handle(framework, discoveredClass);
            logger.trace("Annotation {} handled by {}", annotation, p.getClass().getName());
        } else {
            logger.trace("Annotation {} unhandled", annotation);
        }
        return this;
    }
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.