001: /*
002: * Copyright 2002 Sun Microsystems, Inc. All
003: * rights reserved. Use of this product is subject
004: * to license terms. Federal Acquisitions:
005: * Commercial Software -- Government Users
006: * Subject to Standard License Terms and
007: * Conditions.
008: *
009: * Sun, Sun Microsystems, the Sun logo, and Sun ONE
010: * are trademarks or registered trademarks of Sun Microsystems,
011: * Inc. in the United States and other countries.
012: */
013:
014: package com.sun.portal.container.impl;
015:
016: import com.sun.portal.container.ExecuteActionResponse;
017:
018: import com.sun.portal.container.ChannelMode;
019: import com.sun.portal.container.WindowState;
020:
021: import java.util.Map;
022: import java.util.HashMap;
023: import java.net.URL;
024:
025: public class ExecuteActionResponseImpl extends ContainerResponseImpl
026: implements ExecuteActionResponse {
027:
028: private WindowState _newWindowState = null;
029: private ChannelMode _newChannelMode = null;
030: private URL _redirectURL = null;
031: private Map _renderParameters = new HashMap();
032:
033: /**
034: * Returns the new window state of the channel.
035: *
036: * @return new window state
037: **/
038: public WindowState getNewWindowState() {
039: return _newWindowState;
040: }
041:
042: /**
043: * Sets the new window state of the channel.
044: *
045: * @param newWindowState the new window state to be set to
046: */
047: public void setNewWindowState(WindowState newWindowState) {
048: _newWindowState = newWindowState;
049: }
050:
051: /**
052: * Returns the new mode of the channel.
053: *
054: * @return the new channel mode
055: **/
056: public ChannelMode getNewChannelMode() {
057: return _newChannelMode;
058: }
059:
060: /**
061: * Sets the new mode of the channel.
062: *
063: * @param newChannelMode the new channel mode to be set to
064: */
065: public void setNewChannelMode(ChannelMode newChannelMode) {
066: _newChannelMode = newChannelMode;
067: }
068:
069: /**
070: * Returns the URL the portal server should redirect to.
071: *
072: * @return redirect URL
073: **/
074: public URL getRedirectURL() {
075: return _redirectURL;
076: }
077:
078: /**
079: * Sets the URL the portal server should redirect to.
080: *
081: * @return redirect URL
082: **/
083: public void setRedirectURL(URL redirectURL) {
084: _redirectURL = redirectURL;
085: }
086:
087: /**
088: * Returns a <code>Map</code> of render parameters. These are parameters
089: * that are used for content generation.
090: *
091: * @return the render parameter map
092: **/
093: public Map getRenderParameters() {
094: return _renderParameters;
095: }
096:
097: /**
098: * Sets the render parameters map.
099: *
100: * @param renderParameters the map that holds the render parameters
101: **/
102: public void setRenderParameters(Map renderParameters) {
103: _renderParameters = renderParameters;
104: }
105:
106: }
|