|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.extensions.surf.site.ThemeUtil
public class ThemeUtil
A helper class for working with themes. This basically assists in synchronizing the current theme between the request and the session. It is useful for determining the current theme id during the execution of a JSP component, for example, or within a custom Java bean.
Constructor Summary | |
---|---|
ThemeUtil()
|
Method Summary | |
---|---|
static void |
applyTheme(RequestContext context,
javax.servlet.http.HttpServletRequest request)
This method is called by the dispatcher servlet to "push" the current theme from the session into the request-scoped RequestContext |
static Theme |
getCurrentTheme(RequestContext context)
Gets the current theme. |
static String |
getCurrentThemeId(RequestContext context)
Gets the current theme id. |
static void |
setCurrentThemeId(RequestContext context,
String themeId)
Sets the current theme. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ThemeUtil()
Method Detail |
---|
public static String getCurrentThemeId(RequestContext context)
context
- the context
public static Theme getCurrentTheme(RequestContext context)
context
- the context
public static void setCurrentThemeId(RequestContext context, String themeId)
context
- the contextthemeId
- the theme idpublic static void applyTheme(RequestContext context, javax.servlet.http.HttpServletRequest request)
context
- the contextrequest
- the request
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |