1 package org.apache.turbine.services.rundata; 2 3 18 19 import javax.servlet.ServletConfig ; 20 21 import javax.servlet.http.HttpServletRequest ; 22 import javax.servlet.http.HttpServletResponse ; 23 24 import org.apache.turbine.services.TurbineServices; 25 26 import org.apache.turbine.util.RunData; 27 import org.apache.turbine.util.TurbineException; 28 29 37 38 public abstract class TurbineRunDataFacade 39 { 40 46 public static RunDataService getService() 47 { 48 return (RunDataService) TurbineServices 49 .getInstance().getService(RunDataService.SERVICE_NAME); 50 } 51 52 61 public static RunData getRunData(HttpServletRequest req, 62 HttpServletResponse res, 63 ServletConfig config) 64 throws TurbineException 65 { 66 return getService().getRunData(req, res, config); 67 } 68 69 79 public static RunData getRunData(String key, 80 HttpServletRequest req, 81 HttpServletResponse res, 82 ServletConfig config) 83 throws TurbineException 84 { 85 return getService().getRunData(key, req, res, config); 86 } 87 88 94 public static boolean putRunData(RunData data) 95 { 96 return getService().putRunData(data); 97 } 98 } 99 | Popular Tags |