| |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.springframework.context.support.ApplicationObjectSupport
|
+--org.springframework.web.context.support.WebApplicationObjectSupport
|
+--org.springframework.web.servlet.support.WebContentGenerator
Convenient superclass for any kind of web content generator, like AbstractController and WebContentInterceptor.
Supports HTTP cache control options. The usage of corresponding HTTP headers can be determined via the "useExpiresHeader" and "userCacheControlHeader" properties.
| Field Summary | |
final static String | HEADER_CACHE_CONTROL |
final static String | HEADER_EXPIRES |
final static String | HEADER_PRAGMA |
final static String | METHOD_GET |
final static String | METHOD_POST |
| Constructor Summary | |
WebContentGenerator()Create a new Controller supporting GET and POST methods. | |
| Method Summary | |
final void | setCacheSeconds(int seconds)If 0 disable caching, default is no caching header generation. |
final void | setRequireSession(boolean requireSession)Set if a session should be required to handle requests. |
final void | setSupportedMethods(String[] supportedMethodsArray)Set the HTTP methods that this content generator should support. |
final void | setUseCacheControlHeader(boolean useCacheControlHeader)Set whether to use the HTTP 1.1 cache-control header. |
final void | setUseExpiresHeader(boolean useExpiresHeader)Set whether to use the HTTP 1.0 expires header. |
| Methods inherited from class org.springframework.context.support.ApplicationObjectSupport |
getApplicationContext, setApplicationContext |
| Field Detail |
public final static String HEADER_CACHE_CONTROL
public final static String HEADER_EXPIRES
public final static String HEADER_PRAGMA
public final static String METHOD_GET
public final static String METHOD_POST
| Constructor Detail |
public WebContentGenerator()
| Method Detail |
public final void setCacheSeconds(int seconds)
public final void setRequireSession(boolean requireSession)
public final void setSupportedMethods(String[] supportedMethodsArray)
public final void setUseCacheControlHeader(boolean useCacheControlHeader)
Note: Cache headers will only get applied if caching is enabled for the current request.
public final void setUseExpiresHeader(boolean useExpiresHeader)
Note: Cache headers will only get applied if caching is enabled for the current request.
| Association Links |
to Class java.lang.String
to Class java.lang.String
to Class java.lang.String
to Class java.lang.String
to Class java.util.Set
| |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||