|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ecyrd.jspwiki.util.HttpUtil
public class HttpUtil
Contains useful utilities for some common HTTP tasks.
Constructor Summary | |
---|---|
HttpUtil()
|
Method Summary | |
---|---|
static boolean |
checkFor304(javax.servlet.http.HttpServletRequest req,
WikiPage page)
If returns true, then should return a 304 (HTTP_NOT_MODIFIED) |
static String |
createETag(WikiPage p)
|
static String |
guessValidURI(String uri)
Attempts to form a valid URI based on the string given. |
static String |
retrieveCookieValue(javax.servlet.http.HttpServletRequest request,
String cookieName)
Attempts to retrieve the given cookie value from the request. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HttpUtil()
Method Detail |
---|
public static String retrieveCookieValue(javax.servlet.http.HttpServletRequest request, String cookieName)
request
- The current requestcookieName
- The name of the cookie to fetch.
public static String createETag(WikiPage p)
public static boolean checkFor304(javax.servlet.http.HttpServletRequest req, WikiPage page)
public static String guessValidURI(String uri)
uri
- URI to take a poke at
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |