1 16 19 20 package org.apache.pluto.services.property; 21 22 import java.util.Map ; 23 24 import javax.servlet.http.HttpServletRequest ; 25 import javax.servlet.http.HttpServletResponse ; 26 27 import org.apache.pluto.PortletContainerServices; 28 import org.apache.pluto.om.window.PortletWindow; 29 30 31 36 public class PropertyManager 37 { 38 39 40 public static void setResponseProperties(PortletWindow window, 41 HttpServletRequest request, 42 HttpServletResponse response, 43 Map properties) 44 { 45 if (getService() != null) 46 { 47 getService().setResponseProperties( window, request, response, properties); 48 } 49 } 50 51 public static Map getRequestProperties(PortletWindow window, 52 HttpServletRequest request) 53 { 54 if (getService() == null) 55 { 56 return null; 57 } 58 59 return getService().getRequestProperties( window, request); 60 } 61 62 private static PropertyManagerService getService() 63 { 64 return(PropertyManagerService)PortletContainerServices.get(PropertyManagerService.class); 65 } 66 } 67 | Popular Tags |