1 16 package org.apache.cocoon.components.flow; 17 18 import org.apache.cocoon.environment.Redirector; 19 20 import java.util.List ; 21 22 78 public interface Interpreter { 79 80 public static class Argument { 81 public String name; 82 public String value; 83 84 public Argument(String name, String value) { 85 this.name = name; 86 this.value = value; 87 } 88 89 public String toString() { 90 return name + ": " + value; 91 } 92 } 93 94 public static final String ROLE = Interpreter.class.getName(); 95 96 99 String getInterpreterID(); 100 101 104 void setInterpreterID(String interpreterID); 105 106 146 void callFunction(String funName, List params, Redirector redirector) 147 throws Exception ; 148 149 160 void forwardTo(String uri, Object bizData, WebContinuation continuation, 161 Redirector redirector) 162 throws Exception ; 163 164 180 void handleContinuation(String continuationId, List params, 181 Redirector redirector) 182 throws Exception ; 183 } 184 | Popular Tags |