1 5 6 package org.infohazard.maverick.flow; 7 8 import java.io.IOException ; 9 import javax.servlet.ServletException ; 10 11 13 class ViewShunted implements View 14 { 15 17 protected Shunt shunt; 18 19 21 public ViewShunted(Shunt shunt) 22 { 23 this.shunt = shunt; 24 } 25 26 28 public void defineMode(String mode, View v) throws ConfigException 29 { 30 this.shunt.defineMode(mode, v); 31 } 32 33 35 public void go(ViewContext vctx) throws IOException , ServletException  36 { 37 View v = this.shunt.getView(vctx.getRequest()); 38 v.go(vctx); 39 } 40 } | Popular Tags |