Your browser does not support JavaScript and this site utilizes JavaScript to build content and provide links to additional information. You should either enable JavaScript in your browser settings or use a browser that supports JavaScript in order to take full advantage of this site.
1 package org.apache.turbine.services.servlet; 2 3 18 19 import java.io.InputStream ; 20 import java.net.URL ; 21 import javax.servlet.ServletConfig ; 22 import javax.servlet.ServletContext ; 23 24 import org.apache.turbine.services.TurbineServices; 25 26 35 public class TurbineServlet 36 { 37 43 protected static ServletService getService() 44 { 45 return (ServletService) TurbineServices 46 .getInstance().getService(ServletService.SERVICE_NAME); 47 } 48 49 56 public static URL getResource(String uri) 57 { 58 return getService().getResource(uri); 59 } 60 61 68 public static InputStream getResourceAsStream(String uri) 69 { 70 return getService().getResourceAsStream(uri); 71 } 72 73 81 public static String getRealPath(String path) 82 { 83 return getService().getRealPath(path); 84 } 85 86 92 public static ServletConfig getServletConfig() 93 { 94 return getService().getServletConfig(); 95 } 96 97 103 public static ServletContext getServletContext() 104 { 105 return getService().getServletContext(); 106 } 107 108 115 public static String getServerScheme() 116 { 117 return getService().getServerScheme(); 118 } 119 120 127 public static String getServerName() 128 { 129 return getService().getServerName(); 130 } 131 132 139 public static String getServerPort() 140 { 141 return getService().getServerPort(); 142 } 143 144 150 public static String getContextPath() 151 { 152 return getService().getContextPath(); 153 } 154 } 155
| Popular Tags
|