Examples of execute()


Examples of org.apache.cocoon.template.script.event.Event.execute()

            if (ev instanceof StartElement) {
                StartElement startElement = (StartElement) ev;
                Define def = (Define) executionContext
                        .getDefinitions().get(startElement.getQname());
                if (def == null) {
                    ev = ev.execute(consumer, objectModel,
                            executionContext, macroContext, namespaces, startEvent, endEvent);
                    continue;
                }

                Call call = new Call( def, startElement );
View Full Code Here

Examples of org.apache.cocoon.thread.RunnableManager.execute()

                this.element = element;

                RunnableManager runnable = null;
                try {
                    runnable = (RunnableManager) IncludeTransformer.this.manager.lookup(RunnableManager.ROLE);
                    runnable.execute(IncludeTransformer.this.threadPool, this);
                } catch (final ServiceException e) {
                    // In case we failed to spawn a thread
                    throw new CascadingRuntimeException(e.getMessage(), e);
                } finally {
                    IncludeTransformer.this.manager.release(runnable);
View Full Code Here

Examples of org.apache.cocoon.util.RequestForwardingHttpMethod.execute()

            state.setCredentials(null, destination.getHost(),
                new UsernamePasswordCredentials(destination.getUser(), destination.getPassword()));
            method.setPath(path);
           
            // Execute the method
            method.execute(state, conn);
           
            // Send the output to the client: set the status code...
            response.setStatus(method.getStatusCode());
 
            // ... retrieve the headers from the origin server and pass them on
View Full Code Here

Examples of org.apache.commons.attributes.compiler.AttributeCompiler.execute()

    fileset.setDir(new File(root.getPath() + File.separator + "test"));
    String attributeClasses = testWildcards;
    fileset.setIncludes(attributeClasses);
    commonsAttributesCompiler.addFileset(fileset);

    commonsAttributesCompiler.execute();

    System.out.println("Compiling Java sources generated by Commons Attributes using Javac: requires tools.jar on Eclipse project classpath");
    // We now have the generated Java source: compile it.
    // This requires Javac on the source path
    Javac javac = new Javac();
View Full Code Here

Examples of org.apache.commons.chain.Command.execute()

            if (LOG.isTraceEnabled()) {
                LOG.trace("Calling exceptionCommand '" + exceptionCommand + "'");
            }

            command.execute(context);
        } catch (Exception e) {
            LOG.warn("Exception from exceptionCommand '" + exceptionCommand
                + "'", e);
            throw new IllegalStateException("Exception chain threw exception");
        }
View Full Code Here

Examples of org.apache.commons.collections.Closure.execute()

  public boolean doNewProjectNoDialog(HashMap opts) {
    ProjectDialog.Form form=doNewProjectNoDialog1();
    if (form==null) return false;
    if (opts!=null){
      Closure updateViewClosure=(Closure)opts.get("updateViewClosure");
      if (updateViewClosure!=null) updateViewClosure.execute(form);
    }
    return doNewProjectDialog2(form);
  }
  public ProjectDialog.Form doNewProjectDialog1() {
    addHistory("doNewProjectDialog");
View Full Code Here

Examples of org.apache.commons.exec.DefaultExecutor.execute()

  public void executeWorkItem(WorkItem workItem, WorkItemManager manager) {
    String command = (String) workItem.getParameter("Command");
    CommandLine commandLine = CommandLine.parse(command);
    DefaultExecutor executor = new DefaultExecutor();
    try {
      executor.execute(commandLine);
      manager.completeWorkItem(workItem.getId(), null);
    } catch (Throwable t) {
      t.printStackTrace();
      manager.abortWorkItem(workItem.getId());
    }
View Full Code Here

Examples of org.apache.commons.exec.Executor.execute()

        ExecuteStreamHandler handler = new CustomPumpStreamHandler(System.out, System.err, System.in);
        exec.setStreamHandler(handler);
       
        int status;
        try {
            status = exec.execute(cl, env);
        } catch (ExecuteException e) {
            status = e.getExitValue();
        } catch(IOException e) {
            status = 1;
        }
View Full Code Here

Examples of org.apache.commons.httpclient.HttpMethod.execute()

        HttpMethod method = getMethod();
        if ( method == null ) {
            throw new JellyException( "No HTTP Method available for this tag to execute" );
        }
        int result = method.execute(getState(), connection);

        if ( var != null ) {
            context.setVariable(var, method);
        }
    }
View Full Code Here

Examples of org.apache.commons.httpclient.methods.DeleteMethod.execute()

        String url = domain+uri.toString();
        DeleteMethod deleteMethod = new DeleteMethod(url);
        deleteMethod.setDoAuthentication(true);
        HttpState httpState = new HttpState();
        httpState.setCredentials(null, host, credentials);
        deleteMethod.execute(httpState, new HttpConnection(host, port, protocol));
    }

    public ArrayValue getChildren(URI uri, Credentials credentials) throws IOException {
        String url = domain+uri.toString();
        if ( url.charAt(url.length()-1) == '/') {
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.