public interface ServletService extends Service
This interface exposes methods of the runner context in order resolve or get access to external resources
Modifier and Type | Field and Description |
---|---|
static String |
SERVICE_NAME
The service identifier
|
Modifier and Type | Method and Description |
---|---|
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.
|
getConfiguration, getName, getProperties, setName, setServiceBroker
static final String SERVICE_NAME
URL getResource(String uri)
uri
- the URI to resolve as an URLInputStream getResourceAsStream(String uri)
uri
- the URI to resolveString getRealPath(String uri)
uri
- the URI to resolvejavax.servlet.ServletConfig getServletConfig()
javax.servlet.ServletContext getServletContext()
String getServerScheme()
String getServerName()
String getServerPort()
String getContextPath()
Copyright © 2000–2018 The Apache Software Foundation. All rights reserved.