|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.turbine.services.BaseInitable
org.apache.turbine.services.BaseService
org.apache.turbine.services.TurbineBaseService
org.apache.turbine.services.servlet.TurbineServletService
public class TurbineServletService
This class provides a context service when the application is run in a ServletContainer. It is mainly a wrapper around the ServletContext API.
This class requires Servlet API 2.1 or better.
| Field Summary |
|---|
| Fields inherited from class org.apache.turbine.services.BaseService |
|---|
configuration, name, serviceBroker |
| Fields inherited from class org.apache.turbine.services.BaseInitable |
|---|
initableBroker, isInitialized |
| Fields inherited from interface org.apache.turbine.services.servlet.ServletService |
|---|
SERVICE_NAME |
| Constructor Summary | |
|---|---|
TurbineServletService()
|
|
| Method Summary | |
|---|---|
String |
expandRelative(String path)
Expands a string that points to a relative path or path list, leaving it as an absolute path based on the servlet context. |
String |
getContextPath()
Returns the context path for this Turbine application. |
String |
getRealPath(String uri)
Returns the complete filesystem path for a given URI |
URL |
getResource(String uri)
Returns an URL object for a given URI string. |
InputStream |
getResourceAsStream(String uri)
Same as getResource except that it returns an InputStream |
String |
getServerName()
Returns the server name that this Turbine application is running on. |
String |
getServerPort()
Returns the port that this Turbine application is running through on the server. |
String |
getServerScheme()
Returns the server scheme for this Turbine application. |
javax.servlet.ServletConfig |
getServletConfig()
Returns the servlet config used by this Turbine web application. |
javax.servlet.ServletContext |
getServletContext()
Returns the servlet context used by this Turbine web application. |
void |
init()
Load all configured components and initialize them. |
| Methods inherited from class org.apache.turbine.services.TurbineBaseService |
|---|
init, init, init, shutdown |
| Methods inherited from class org.apache.turbine.services.BaseService |
|---|
getConfiguration, getName, getProperties, getServiceBroker, setName, setServiceBroker |
| Methods inherited from class org.apache.turbine.services.BaseInitable |
|---|
getInit, getInitableBroker, setInit, setInitableBroker |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.turbine.services.Service |
|---|
getConfiguration, getName, getProperties, setName, setServiceBroker |
| Methods inherited from interface org.apache.turbine.services.Initable |
|---|
getInit, init, setInitableBroker, shutdown |
| Constructor Detail |
|---|
public TurbineServletService()
| Method Detail |
|---|
public void init()
init in interface Initableinit in class TurbineBaseServicepublic URL getResource(String uri)
getResource in interface ServletServiceuri - the URI to resolve as an URL
ServletContext.getResource(java.lang.String)public InputStream getResourceAsStream(String uri)
getResourceAsStream in interface ServletServiceuri - the URI to resolve
ServletContext.getResourceAsStream(java.lang.String)public String getRealPath(String uri)
getRealPath in interface ServletServiceuri - the URI to resolve
ServletContext.getRealPath(java.lang.String)public javax.servlet.ServletConfig getServletConfig()
getServletConfig in interface ServletServicepublic javax.servlet.ServletContext getServletContext()
getServletContext in interface ServletServicepublic String getServerScheme()
getServerScheme in interface ServletServicepublic String getServerName()
getServerName in interface ServletServicepublic String getServerPort()
getServerPort in interface ServletServicepublic String getContextPath()
getContextPath in interface ServletServicepublic String expandRelative(String path)
path - The String containing a path or path list.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||