|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gwtwidgets.server.spring.ServletUtils
public class ServletUtils
Utility class that allows access to the invoking servlet request and response, which are stored in a thread local variable of the invoking thread.
| Constructor Summary | |
|---|---|
ServletUtils()
|
|
| Method Summary | |
|---|---|
static void |
disableResponseCaching(javax.servlet.http.HttpServletResponse response)
Adjusts HTTP headers so that browsers won't cache response. |
static javax.servlet.http.HttpServletRequest |
getRequest()
Return the request which invokes the service. |
static javax.servlet.http.HttpServletResponse |
getResponse()
Return the response which accompanies the request. |
static void |
setRequest(javax.servlet.http.HttpServletRequest request)
Deprecated. Does not perform any operation |
static void |
setResponse(javax.servlet.http.HttpServletResponse response)
Assign the current servlet response to a thread local variable. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ServletUtils()
| Method Detail |
|---|
public static void disableResponseCaching(javax.servlet.http.HttpServletResponse response)
response - For more background see this.public static javax.servlet.http.HttpServletRequest getRequest()
public static javax.servlet.http.HttpServletResponse getResponse()
public static void setRequest(javax.servlet.http.HttpServletRequest request)
request - public static void setResponse(javax.servlet.http.HttpServletResponse response)
response -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||