1 4 package gnu.kawa.xml; 5 import gnu.lists.*; 6 import gnu.mapping.*; 7 8 11 12 public class MakeResponseHeader extends MethodProc 13 { 14 public static MakeResponseHeader makeResponseHeader 15 = new MakeResponseHeader(); 16 17 public void apply (CallContext ctx) 18 { 19 String key = ctx.getNextArg().toString(); 20 Object val = ctx.getNextArg(); 21 ctx.lastArg(); 22 Consumer out = ctx.consumer; 23 out.beginAttribute(key); 24 out.write(val.toString()); 25 out.endAttribute(); 26 } 27 28 } 29 | Popular Tags |