Examples of source()


Examples of org.apache.any23.extractor.html.HTMLDocument.TextField.source()

                card, vCARD.org, org
        );
        addURIProperty(org, RDF.TYPE, vCARD.Organization);
        final TextField organizationTextField = name.getOrganization();
        conditionallyAddLiteralProperty(
                organizationTextField.source(),
                org, vCARD.organization_name, valueFactory.createLiteral( organizationTextField.value() )
        );
        final TextField organizationUnitTextField = name.getOrganizationUnit();
        if(organizationUnitTextField != null) {
            conditionallyAddStringProperty(
View Full Code Here

Examples of org.apache.any23.extractor.html.HTMLDocument.TextField.source()

                org, vCARD.organization_name, valueFactory.createLiteral( organizationTextField.value() )
        );
        final TextField organizationUnitTextField = name.getOrganizationUnit();
        if(organizationUnitTextField != null) {
            conditionallyAddStringProperty(
                    organizationUnitTextField.source(),
                    org, vCARD.organization_unit, organizationUnitTextField.value()
            );
        }
        return true;
    }
View Full Code Here

Examples of org.apache.any23.extractor.html.HTMLDocument.TextField.source()

    }

    private void addType(HTMLDocument doc, Resource rev) {
        TextField value = doc.getSingularTextField("type");
        conditionallyAddStringProperty(
                value.source(),
                rev, vREVIEW.type, value.value()
        );
    }

    private void addReviewer(HTMLDocument doc, Resource rev) {
View Full Code Here

Examples of org.apache.axis2.transport.nhttp.util.PipeImpl.source()

            }
            response.setEntity(entity);
            context.setAttribute(ExecutionContext.HTTP_RESPONSE, response);

            workerPool.execute(
                new ClientWorker(cfgCtx, Channels.newInputStream(responsePipe.source()), response,
                    (MessageContext) context.getAttribute(OUTGOING_MESSAGE_CONTEXT)));

        } catch (IOException e) {
            handleException("I/O Error : " + e.getMessage(), e, conn);
        }
View Full Code Here

Examples of org.apache.jmeter.util.BeanShellInterpreter.source()

        String bshinit = JMeterUtils.getProperty("beanshell.init.file");// $NON-NLS-1$
        if (bshinit != null){
            log.info("Run Beanshell on file: "+bshinit);
            try {
                BeanShellInterpreter bsi = new BeanShellInterpreter();//bshinit,log);
                bsi.source(bshinit);
            } catch (ClassNotFoundException e) {
                log.warn("Could not start Beanshell: "+e.getLocalizedMessage());
            } catch (JMeterException e) {
                log.warn("Could not process Beanshell file: "+e.getLocalizedMessage());
            }
View Full Code Here

Examples of org.apache.pig.penny.impl.comm.Message.source()

            if (m.type() == Type.DEREG) {
                channel.close();
            }
            if (t != null) {
                if (m.type() == Type.REG) {
                    PhysicalLocation pl = new PhysicalLocation(m.source().logId(), (Integer)t.get(0));
                    plMap.put(pl, channel);
                    ctx.setAttachment(pl);
                }
                Message rsp = new Message(m.type(), m.getAck(), m.destination(), m.source(), t);
                channel.write(rsp);
View Full Code Here

Examples of org.apache.synapse.transport.nhttp.util.PipeImpl.source()

        try {
            PipeImpl requestPipe  = new PipeImpl(); // the pipe used to process the request
            PipeImpl responsePipe = new PipeImpl(); // the pipe used to process the response
            context.setAttribute(REQUEST_SINK_CHANNEL, requestPipe.sink());
            context.setAttribute(RESPONSE_SOURCE_CHANNEL, responsePipe.source());

            // create the default response to this request
            ProtocolVersion httpVersion = request.getRequestLine().getProtocolVersion();
            HttpResponse response = responseFactory.newHttpResponse(
                httpVersion, HttpStatus.SC_OK, context);
View Full Code Here

Examples of org.apache.synapse.transport.nhttp.util.PipeImpl.source()

                httpVersion, HttpStatus.SC_OK, context);
            response.setParams(this.params);

            // create a basic HttpEntity using the source channel of the response pipe
            BasicHttpEntity entity = new BasicHttpEntity();
            entity.setContent(Channels.newInputStream(responsePipe.source()));
            if (httpVersion.greaterEquals(HttpVersion.HTTP_1_1)) {
                entity.setChunked(true);
            }
            response.setEntity(entity);
View Full Code Here

Examples of org.apache.synapse.transport.nhttp.util.PipeImpl.source()

            }
            response.setEntity(entity);
            context.setAttribute(ExecutionContext.HTTP_RESPONSE, response);

            workerPool.execute(
                new ClientWorker(cfgCtx, Channels.newInputStream(responsePipe.source()), response,
                    (MessageContext) context.getAttribute(OUTGOING_MESSAGE_CONTEXT)));

        } catch (IOException e) {
            handleException("I/O Error : " + e.getMessage(), e, conn);
        }
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.compiler.ast.Literal.source()

  protected void consumePseudoTokenLiteral() {
    Literal literal = (Literal) expressionStack[expressionPtr--];
    expressionLengthPtr--;
    //System.out.println("literal: " + new String(literal.source()));

    ASTNode tok = declarationFactory.createPseudoToken(this, new String(literal.source()), false);
    declarationFactory.setLiteralKind(tok,"string");
    tok.sourceStart = literal.sourceStart;
    tok.sourceEnd = literal.sourceEnd;
    pushOnAstStack(tok);
  }
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.