|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.melati.util.HttpUtil
public final class HttpUtil
An assortment of useful things to do with Http
.
Method Summary | |
---|---|
static void |
appendRelativeZoneURL(StringBuffer url,
javax.servlet.http.HttpServletRequest request)
Append relative servlet zone url. |
static void |
appendZoneURL(StringBuffer url,
javax.servlet.http.HttpServletRequest request)
Add a Zone URL to buffer. |
static String |
concatenateUrls(String url,
String relativeUrl)
|
static String |
getRelativeRequestURL(javax.servlet.http.HttpServletRequest request)
Retrieve a relative url from a request. |
static String |
getServerURL(javax.servlet.http.HttpServletRequest request)
Return the server URL. |
static String |
servletURL(javax.servlet.http.HttpServletRequest request)
Retrieve a Servlet url from a request. |
static String |
zoneURL(javax.servlet.http.HttpServletRequest request)
Retrieve a Zone url. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void appendZoneURL(StringBuffer url, javax.servlet.http.HttpServletRequest request)
url
- an empty StringBuffer to append torequest
- the request to interrogatepublic static String getServerURL(javax.servlet.http.HttpServletRequest request)
request
- the request to interrogatepublic static void appendRelativeZoneURL(StringBuffer url, javax.servlet.http.HttpServletRequest request)
url
- StringBuffer to append torequest
- the request to interrogatepublic static String zoneURL(javax.servlet.http.HttpServletRequest request)
request
- the request to interrogate
public static String servletURL(javax.servlet.http.HttpServletRequest request)
request
- the request to interrogate
public static String getRelativeRequestURL(javax.servlet.http.HttpServletRequest request)
request
- the request to interrogate
public static String concatenateUrls(String url, String relativeUrl)
url
- An url or relative url which may end in a slashrelativeUrl
- A relative url which may start with a slash
|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |