| 1 package com.icesoft.faces.webapp.command; 2 3 import java.io.IOException ; 4 import java.io.Writer ; 5 6 public class NOOP implements Command { 7 8 public Command coalesceWith(Command command) { 9 return command.coalesceWith(this); 10 } 11 12 public Command coalesceWith(Macro macro) { 13 return macro; 14 } 15 16 public Command coalesceWith(UpdateElements updateElements) { 17 return updateElements; 18 } 19 20 public Command coalesceWith(Redirect redirect) { 21 return redirect; 22 } 23 24 public Command coalesceWith(SessionExpired sessionExpired) { 25 return sessionExpired; 26 } 27 28 public Command coalesceWith(SetCookie setCookie) { 29 return setCookie; 30 } 31 32 public Command coalesceWith(Pong pong) { 33 return pong; 34 } 35 36 public Command coalesceWith(NOOP noop) { 37 return noop; 38 } 39 40 public void serializeTo(Writer writer) throws IOException { 41 writer.write("<noop/>"); 42 } 43 } 44 | Popular Tags |