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