1 15 package org.apache.tapestry.link; 16 17 import org.apache.tapestry.IRequestCycle; 18 import org.apache.tapestry.engine.ExternalServiceParameter; 19 import org.apache.tapestry.engine.IEngineService; 20 import org.apache.tapestry.engine.ILink; 21 22 31 32 public abstract class ExternalLink extends AbstractLinkComponent 33 { 34 public abstract IEngineService getExternalService(); 35 36 public ILink getLink(IRequestCycle cycle) 37 { 38 Object [] serviceParameters = DirectLink.constructServiceParameters(getParameters()); 39 40 ExternalServiceParameter esp = new ExternalServiceParameter(getTargetPage(), 41 serviceParameters); 42 43 return getExternalService().getLink(cycle, esp); 44 } 45 46 public abstract Object getParameters(); 47 48 public abstract String getTargetPage(); 49 } | Popular Tags |