01: package com.icesoft.faces.webapp.command;
02:
03: import java.io.IOException;
04: import java.io.Writer;
05:
06: public class NOOP implements Command {
07:
08: public Command coalesceWith(Command command) {
09: 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: }
|