1 48 49 50 package com.caucho.portal.generic.context; 51 52 import javax.portlet.ActionResponse; 53 import javax.portlet.PortletMode; 54 import javax.portlet.PortletModeException; 55 import javax.portlet.WindowState; 56 import javax.portlet.WindowStateException; 57 import java.io.IOException ; 58 import java.util.Map ; 59 60 61 class ActionResponseImpl 62 extends PortletResponseImpl 63 implements ActionResponse 64 { 65 public ActionResponseImpl(ConnectionContext context) 66 { 67 super(context); 68 } 69 70 public void setWindowState(WindowState windowState) 71 throws WindowStateException 72 { 73 _context.setWindowState(windowState); 74 } 75 76 public void setPortletMode(PortletMode portletMode) 77 throws PortletModeException 78 { 79 _context.setPortletMode(portletMode); 80 } 81 82 public Map getRenderParameterMap() 83 { 84 return _context.getRenderParameterMap(); 85 } 86 87 public void setRenderParameters(Map parameters) 88 { 89 _context.setRenderParameters(parameters); 90 } 91 92 public void setRenderParameter(String name, String value) 93 { 94 _context.setRenderParameter(name, value); 95 } 96 97 public void setRenderParameter(String name, String [] values) 98 { 99 _context.setRenderParameter(name, values); 100 } 101 102 public void sendRedirect(String location) 103 throws IOException 104 { 105 _context.sendRedirect(location); 106 } 107 108 } 109 110 | Popular Tags |