Package com.xmlcalabash.runtime

Examples of com.xmlcalabash.runtime.XPipeline.reset()


        XPipeline xpipeline = pipeconfig.pipeline;
        XProcRuntime runtime = pipeconfig.runtime;

        if (pipeconfig.ran) {
            pipeconfig.reset();
            xpipeline.reset();
        }

        try {
            if (MediaType.MULTIPART_FORM_DATA.equals(entity.getMediaType(), true)) {
                processMultipartForm(pipeconfig, entity, variant);
View Full Code Here


                    }
                }
            }
        } catch (Exception e) {
            pipeconfig.reset();
            xpipeline.reset();
            return badRequest(Status.CLIENT_ERROR_BAD_REQUEST, e.getMessage(), variant.getMediaType());
        }

        return runPipeline(id);
    }
View Full Code Here

        PipelineConfiguration pipeconfig = getPipelines().get(id);
        XPipeline xpipeline = pipeconfig.pipeline;

        pipeconfig.reset();
        xpipeline.reset();

        return okResponse("Pipeline reset", variant.getMediaType());
    }

}
View Full Code Here

        XPipeline xpipeline = pipeconfig.pipeline;
        XProcRuntime runtime = pipeconfig.runtime;

        if (pipeconfig.ran) {
            pipeconfig.reset();
            xpipeline.reset();
        }

        if (pipeconfig.documentCount(port) == 0) {
            xpipeline.clearInputs(port);
        }
View Full Code Here

                            pppipe.writeTo("source", tdoc);
                            pppipe.run();
                            ReadablePipe rpipe = pppipe.readFrom("result");
                            tdoc = rpipe.read();

                            pppipe.reset();
                            pppipe.writeTo("source", pdoc);
                            pppipe.run();
                            rpipe = pppipe.readFrom("result");
                            pdoc = rpipe.read();
                        }
View Full Code Here

        XPipeline xpipeline = pipeconfig.pipeline;
        XProcRuntime runtime = pipeconfig.runtime;

        if (pipeconfig.ran) {
            pipeconfig.reset();
            xpipeline.reset();
        }

        String message = "";

        HashMap<String,String> nameValuePairs = new HashMap<String,String> ();
View Full Code Here

            }

            return okResponse(message, variant.getMediaType(), Status.SUCCESS_OK);
        } catch (XProcException e) {
            pipeconfig.reset();
            xpipeline.reset();
            throw e;
        } catch (Exception e) {
            pipeconfig.reset();
            xpipeline.reset();
            throw new XProcException(e);
View Full Code Here

            pipeconfig.reset();
            xpipeline.reset();
            throw e;
        } catch (Exception e) {
            pipeconfig.reset();
            xpipeline.reset();
            throw new XProcException(e);
        }
    }
}
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.