|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.turbine.util.ServletUtils
This is where common Servlet manipulation routines should go.
Field Summary | |
static int |
FTP_PORT
Deprecated. use URIConstants.FTP_PORT |
static int |
HTTP_PORT
Deprecated. use URIConstants.HTTP_PORT |
static int |
HTTPS_PORT
Deprecated. use URIConstants.HTTPS_PORT |
static java.lang.String |
URI_SCHEME_SEPARATOR
Deprecated. use URIConstants.URI_SCHEME_SEPARATOR; |
Constructor Summary | |
ServletUtils()
|
Method Summary | |
static java.lang.String |
expandRelative(javax.servlet.ServletConfig config,
java.lang.String text)
Expands a string that points to a relative path or path list, leaving it as an absolute path based on the servlet context. |
static java.lang.StringBuffer |
hostURL(javax.servlet.http.HttpServletRequest req)
Deprecated. Use ServerData(req).getHostUrl() |
static java.lang.StringBuffer |
hostURL(javax.servlet.http.HttpServletRequest req,
java.lang.String scheme)
Deprecated. Use ServerData(req).getHostUrl() |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int HTTP_PORT
public static final int HTTPS_PORT
public static final int FTP_PORT
public static final java.lang.String URI_SCHEME_SEPARATOR
Constructor Detail |
public ServletUtils()
Method Detail |
public static java.lang.String expandRelative(javax.servlet.ServletConfig config, java.lang.String text)
config
- The ServletConfig.text
- The String containing a path or path list.
public static java.lang.StringBuffer hostURL(javax.servlet.http.HttpServletRequest req)
hostURL(HttpServletRequest req, String proto)
public static java.lang.StringBuffer hostURL(javax.servlet.http.HttpServletRequest req, java.lang.String scheme)
req
- The request to extract information from.scheme
- The protocol indicator to prefix the host name with, or
the protocol used to address the server with if null
.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |