|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object info.magnolia.cms.core.AggregationState
public class AggregationState
Aggregates the necessary information to render content. Filled-in progressively by various filters.
Constructor Summary | |
---|---|
AggregationState()
|
Method Summary | |
---|---|
String |
getCharacterEncoding()
|
Content |
getCurrentContent()
|
String |
getCurrentURI()
Returns the URI of the current request, decoded and without the context path. |
String |
getExtension()
|
File |
getFile()
|
String |
getHandle()
|
Locale |
getLocale()
If the aggregation state local is not set explicitly the contexts locale is returned. |
Content |
getMainContent()
|
String |
getOriginalBrowserURI()
|
String |
getOriginalBrowserURL()
|
String |
getOriginalURI()
Returns the original request URI, decoded and without the context path. |
String |
getOriginalURL()
|
String |
getQueryString()
Returns the original request query string. |
String |
getRepository()
|
String |
getSelector()
Warning - this might change in the future - see MAGNOLIA-2343 for details. |
String |
getTemplateName()
|
boolean |
isPreviewMode()
|
void |
resetURIs()
The original URI/URL can only be set once. |
void |
setCharacterEncoding(String characterEncoding)
|
void |
setCurrentContent(Content currentContent)
|
void |
setCurrentURI(String currentURI)
|
void |
setExtension(String extension)
|
void |
setFile(File file)
|
void |
setHandle(String handle)
|
void |
setLocale(Locale locale)
|
void |
setMainContent(Content mainContent)
|
void |
setOriginalBrowserURI(String originalBrowserURI)
|
void |
setOriginalBrowserURL(String originalBrowserURL)
|
void |
setOriginalURI(String originalURI)
|
void |
setOriginalURL(String originalURL)
|
void |
setPreviewMode(boolean previewMode)
|
void |
setQueryString(String queryString)
|
void |
setRepository(String repository)
|
void |
setSelector(String selector)
Warning - this might change in the future - see MAGNOLIA-2343 for details. The provided selector value is decoded upon settings according to rules described in URLDecoder.decode(java.lang.String, java.lang.String) |
void |
setTemplateName(String templateName)
|
protected String |
stripContextPathIfExists(String uri)
WARNING: If passing URI without context path but it starts with same text as the context path it will be stripped off as well!!! |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AggregationState()
Method Detail |
---|
public void setOriginalURI(String originalURI)
public void setOriginalBrowserURI(String originalBrowserURI)
public void setCurrentURI(String currentURI)
public void setQueryString(String queryString)
public String getQueryString()
public String getCurrentURI()
public String getCharacterEncoding()
public String getOriginalURI()
public String getOriginalURL()
public void setOriginalURL(String originalURL)
public String getOriginalBrowserURI()
public String getOriginalBrowserURL()
public void setOriginalBrowserURL(String originalBrowserURL)
public void setCharacterEncoding(String characterEncoding)
public String getExtension()
public void setExtension(String extension)
public File getFile()
public void setFile(File file)
public String getHandle()
public void setHandle(String handle)
public Content getMainContent()
public void setMainContent(Content mainContent)
public Content getCurrentContent()
public void setCurrentContent(Content currentContent)
public String getRepository()
public void setRepository(String repository)
public String getSelector()
public void setSelector(String selector)
URLDecoder.decode(java.lang.String, java.lang.String)
public String getTemplateName()
public void setTemplateName(String templateName)
public Locale getLocale()
public void setLocale(Locale locale)
locale
- The aggregation state level locale, i.e. the locale that should be used for contentspublic boolean isPreviewMode()
public void setPreviewMode(boolean previewMode)
protected String stripContextPathIfExists(String uri)
uri
- with contextPath (maybe)
public void resetURIs()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |