public class TurbineServlet extends Object
Constructor and Description |
---|
TurbineServlet() |
Modifier and Type | Method and Description |
---|---|
static String |
getContextPath()
Returns the context path for this
Turbine application.
|
static String |
getRealPath(String path)
Returns the complete filesystem path for a
given URI
|
static URL |
getResource(String uri)
Returns an URL object for a given URI string.
|
static InputStream |
getResourceAsStream(String uri)
Same as getResource except that it returns an InputStream
|
static String |
getServerName()
Returns the server name that this
Turbine application is running
on.
|
static String |
getServerPort()
Returns the port that this Turbine
application is running through
on the server.
|
static String |
getServerScheme()
Returns the server scheme for this
Turbine application.
|
protected static ServletService |
getService()
Utility method for accessing the service
implementation
|
static ServletConfig |
getServletConfig()
Returns the servlet config used by this
Turbine web application.
|
static ServletContext |
getServletContext()
Returns the servlet context used by this
Turbine web application.
|
public TurbineServlet()
protected static ServletService getService()
public static URL getResource(String uri)
uri
- the URI to resolve as an URLpublic static InputStream getResourceAsStream(String uri)
uri
- the URI to resolveServletContext.getResourceAsStream(java.lang.String)
public static String getRealPath(String path)
path
- the URI to resolveServletContext.getRealPath(java.lang.String)
public static ServletConfig getServletConfig()
public static ServletContext getServletContext()
public static String getServerScheme()
public static String getServerName()
public static String getServerPort()
public static String getContextPath()
Copyright © 2000-2015 The Apache Software Foundation. All Rights Reserved.