/** * Determines whether the given output port supports being splitted * * @param input * @return */ public static boolean isSplittable(OutputPort output) { boolean result = false; if (output.getSyntacticType().equalsIgnoreCase("'text/xml'") || output.getSyntacticType().equalsIgnoreCase("l('text/xml')")) { if (output.getProcessor() instanceof WSDLBasedProcessor) { result = true; } else if (output.getProcessor() instanceof LocalServiceProcessor) { LocalServiceProcessor processor = (LocalServiceProcessor) output .getProcessor(); if (processor.getWorker() instanceof XMLOutputSplitter) { result = true; } } } return result; }
XScuflNS); outputElement.setText(outputs[i].getName()); if (outputs[i].getSyntacticType() != null) outputElement.setAttribute("syntactictype", outputs[i] .getSyntacticType(), XScuflNS); outputList.addContent(outputElement);
Element outputElement = new Element("bsfoutput", XScufl.XScuflNS); outputElement.setText(outputs[i].getName()); if (outputs[i].getSyntacticType() != null) outputElement.setAttribute("syntactictype", outputs[i].getSyntacticType(), XScufl.XScuflNS); outputList.addContent(outputElement);
outputElement.setText(outputPort.getName()); outputElement.setAttribute(SYNTACTIC_TYPE_ATTRIBUTE, outputPort .getSyntacticType(), XScufl.XScuflNS); outputList.addContent(outputElement);
String outputType = myOutput.getSyntacticType();
String outputType = myOutput.getSyntacticType();
String name = outputPorts[x].getName(); if (!name.equalsIgnoreCase("output")) { if (outputPorts[x].getSyntacticType().startsWith("l(")) {
bean.setName(outPort.getName()); bean.setDepth(determineDepthFromSyntacticType(outPort .getSyntacticType())); mimeTypes.add(outPort.getSyntacticType()); bean.setMimeTypes(mimeTypes); outputDefinitions.add(bean);
public void testDefaultValues() { assertEquals("", processor.getScript()); assertEquals("", processor.getHostname()); assertEquals("", processor.getPort(), 0); assertEquals("", processor.getPassword()); assertEquals("", processor.getUsername()); OutputPort[] outports = processor.getOutputPorts(); System.out.println(outports); assertEquals(1, outports.length); assertEquals("value", outports[0].getName()); assertEquals("l('text/plain')", outports[0].getSyntacticType()); }