|
|||||||||||
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
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 | |
java.lang.String |
expandRelative(java.lang.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. |
java.lang.String |
getContextPath()
Returns the context path for this Turbine application. |
java.lang.String |
getRealPath(java.lang.String uri)
Returns the complete filesystem path for a given URI |
java.net.URL |
getResource(java.lang.String uri)
Returns an URL object for a given URI string. |
java.io.InputStream |
getResourceAsStream(java.lang.String uri)
Same as getResource except that it returns an InputStream |
java.lang.String |
getServerName()
Returns the server name that this Turbine application is running on. |
java.lang.String |
getServerPort()
Returns the port that this Turbine application is running through on the server. |
java.lang.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. |
void |
init(javax.servlet.ServletConfig servletConfig)
Deprecated. use init() instead. |
Methods inherited from class org.apache.turbine.services.TurbineBaseService |
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 Initable
init
in class TurbineBaseService
public void init(javax.servlet.ServletConfig servletConfig)
init
in class TurbineBaseService
servletConfig
- A ServletConfig.public java.net.URL getResource(java.lang.String uri)
getResource
in interface ServletService
uri
- the URI to resolve as an URL
ServletContext.getResource(java.lang.String)
public java.io.InputStream getResourceAsStream(java.lang.String uri)
getResourceAsStream
in interface ServletService
uri
- the URI to resolve
ServletContext.getResourceAsStream(java.lang.String)
public java.lang.String getRealPath(java.lang.String uri)
getRealPath
in interface ServletService
uri
- the URI to resolve
ServletContext.getRealPath(java.lang.String)
public javax.servlet.ServletConfig getServletConfig()
getServletConfig
in interface ServletService
public javax.servlet.ServletContext getServletContext()
getServletContext
in interface ServletService
public java.lang.String getServerScheme()
getServerScheme
in interface ServletService
public java.lang.String getServerName()
getServerName
in interface ServletService
public java.lang.String getServerPort()
getServerPort
in interface ServletService
public java.lang.String getContextPath()
getContextPath
in interface ServletService
public java.lang.String expandRelative(java.lang.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 |