|
||||||||||
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 | |
---|---|
java.lang.String |
getCharacterEncoding()
|
Content |
getCurrentContent()
|
java.lang.String |
getCurrentURI()
Returns the URI of the current request, decoded and without the context path. |
java.lang.String |
getExtension()
|
File |
getFile()
|
java.lang.String |
getHandle()
|
java.util.Locale |
getLocale()
If the aggregation state local is not set explicitly the contexts locale is returned. |
Content |
getMainContent()
|
java.lang.String |
getOriginalBrowserURI()
|
java.lang.String |
getOriginalBrowserURL()
|
java.lang.String |
getOriginalURI()
Returns the original request URI, decoded and without the context path. |
java.lang.String |
getOriginalURL()
|
java.lang.String |
getRepository()
|
java.lang.String |
getSelector()
Warning - this might change in the future - see MAGNOLIA-2343 for details. |
java.lang.String |
getTemplateName()
|
boolean |
isPreviewMode()
|
void |
resetURIs()
The original URI/URL can only be set once. |
void |
setCharacterEncoding(java.lang.String characterEncoding)
|
void |
setCurrentContent(Content currentContent)
|
void |
setCurrentURI(java.lang.String currentURI)
|
void |
setExtension(java.lang.String extension)
|
void |
setFile(File file)
|
void |
setHandle(java.lang.String handle)
|
void |
setLocale(java.util.Locale locale)
|
void |
setMainContent(Content mainContent)
|
void |
setOriginalBrowserURI(java.lang.String originalBrowserURI)
|
void |
setOriginalBrowserURL(java.lang.String originalBrowserURL)
|
void |
setOriginalURI(java.lang.String originalURI)
|
void |
setOriginalURL(java.lang.String originalURL)
|
void |
setPreviewMode(boolean previewMode)
|
void |
setRepository(java.lang.String repository)
|
void |
setSelector(java.lang.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(java.lang.String templateName)
|
protected java.lang.String |
stripContextPathIfExists(java.lang.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(java.lang.String originalURI)
public void setOriginalBrowserURI(java.lang.String originalBrowserURI)
public void setCurrentURI(java.lang.String currentURI)
public java.lang.String getCurrentURI()
public java.lang.String getCharacterEncoding()
public java.lang.String getOriginalURI()
public java.lang.String getOriginalURL()
public void setOriginalURL(java.lang.String originalURL)
public java.lang.String getOriginalBrowserURI()
public java.lang.String getOriginalBrowserURL()
public void setOriginalBrowserURL(java.lang.String originalBrowserURL)
public void setCharacterEncoding(java.lang.String characterEncoding)
public java.lang.String getExtension()
public void setExtension(java.lang.String extension)
public File getFile()
public void setFile(File file)
public java.lang.String getHandle()
public void setHandle(java.lang.String handle)
public Content getMainContent()
public void setMainContent(Content mainContent)
public Content getCurrentContent()
public void setCurrentContent(Content currentContent)
public java.lang.String getRepository()
public void setRepository(java.lang.String repository)
public java.lang.String getSelector()
public void setSelector(java.lang.String selector)
URLDecoder.decode(java.lang.String, java.lang.String)
public java.lang.String getTemplateName()
public void setTemplateName(java.lang.String templateName)
public java.util.Locale getLocale()
public void setLocale(java.util.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 java.lang.String stripContextPathIfExists(java.lang.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 |