|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ecyrd.jspwiki.util.HttpUtil
public final class HttpUtil
Contains useful utilities for some common HTTP tasks.
Method Summary | |
---|---|
static boolean |
checkFor304(HttpServletRequest req,
WikiPage page)
If returns true, then should return a 304 (HTTP_NOT_MODIFIED) |
static String |
createETag(WikiPage p)
Creates an ETag based on page information. |
static String |
guessValidURI(String uri)
Attempts to form a valid URI based on the string given. |
static String |
retrieveCookieValue(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 |
Method Detail |
---|
public static String retrieveCookieValue(HttpServletRequest request, String cookieName)
request
- The current requestcookieName
- The name of the cookie to fetch.
public static String createETag(WikiPage p)
p
- The page for which the ETag should be created.
public static boolean checkFor304(HttpServletRequest req, WikiPage page)
req
- the HTTP requestpage
- the wiki page to check for
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 |