1 11 package org.jboss.portlet.command; 12 13 import org.jboss.portal.common.command.Command; 14 import org.jboss.portlet.JBossActionRequest; 15 import org.jboss.portlet.JBossActionResponse; 16 17 23 public abstract class ActionCommand implements Command 24 { 25 26 private final JBossActionRequest request; 27 private final JBossActionResponse response; 28 29 protected ActionCommand(JBossActionRequest request, JBossActionResponse response) 30 { 31 if (request == null) 32 { 33 throw new IllegalArgumentException ("Request cannot be null"); 34 } 35 if (response == null) 36 { 37 throw new IllegalArgumentException ("Response cannot be null"); 38 } 39 this.request = request; 40 this.response = response; 41 } 42 43 public JBossActionRequest getRequest() 44 { 45 return request; 46 } 47 48 public JBossActionResponse getResponse() 49 { 50 return response; 51 } 52 53 } 54 | Popular Tags |