|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.norther.tammi.core.base.Adaptee
org.norther.tammi.spray.filter.DefaultFilter
org.norther.tammi.spray.filter.DefaultKeyFilter
org.norther.tammi.spray.template.DefaultSkinFilter
public class DefaultSkinFilter
A default implementation of SkinFilter.
| Field Summary | |
|---|---|
static String |
SKIN_KEY
The default key for the skin. |
| Fields inherited from class org.norther.tammi.spray.filter.DefaultKeyFilter |
|---|
DEFAULT_KEY |
| Fields inherited from class org.norther.tammi.core.base.Adaptee |
|---|
ADAPTEE_NOTIF_DESCRIPTION, ADAPTEE_NOTIFICATIONS |
| Fields inherited from interface org.norther.tammi.core.base.MBeanDelegate |
|---|
ARRAY_TYPE, OBJECT_TYPE, PRIMITIVE_TYPE, STRING_TYPE |
| Constructor Summary | |
|---|---|
DefaultSkinFilter()
Constructs a new filter. |
|
DefaultSkinFilter(String key)
Constructs a new filter with a key. |
|
| Method Summary | |
|---|---|
boolean |
addSkinName(String name)
Adds a named skin if absent. |
void |
clearSkins()
Clears all skins. |
boolean |
containsSkin(String name)
Checks the named skin. |
void |
doFilter(ServletRequest request,
ServletResponse response,
FilterChain chain)
|
Skin |
getCurrentSkin(ServletRequest request,
ServletResponse response,
FilterChain chain)
Gets the current skin of the specified request. |
String |
getDefaultAttribute(String attribute)
Gets the named default page attribute. |
String |
getDefaultBaseName()
Gets the default base name. |
String |
getDefaultBodyAttribute(String attribute)
Gets the named default body attribute. |
String |
getDefaultDocType()
Gets the default doctype. |
String |
getDefaultFormName()
Gets the name of the default form. |
String |
getDefaultHeadScript()
Gets the URL of the default head script. |
String[] |
getDefaultHeadScripts()
Gets the URLs of the default head scripts. |
String |
getDefaultInlineStyleSheet()
Gets the default inline style sheet. |
String |
getDefaultLabel()
Gets the default label. |
String |
getDefaultLink()
Gets the default link. |
String |
getDefaultLogo()
Gets the default logo. |
String |
getDefaultMetaElement(String attribute)
Gets the named default meta element. |
String |
getDefaultShortcutIcon()
Gets the URL of the default shortcut icon. |
String |
getDefaultSkinName()
Gets the name of the default skin. |
String |
getDefaultStyleSheet()
Gets the URL of the default style sheet. |
String[] |
getDefaultStyleSheets()
Gets the URLs of the default style sheets. |
String |
getDefaultSubtitle()
Gets the default subtitle. |
String |
getDefaultTitle()
Gets the default title. |
String |
getDefaultXMLNs()
Gets the default XML namespace. |
Skin |
getSkin(String name)
Gets the named skin. |
String |
getSkinAttribute(String name,
String attribute)
Gets the named attribute of the specified skin. |
String |
getSkinBaseName(String name)
Gets the base name of the specified skin. |
String |
getSkinBodyAttribute(String name,
String attribute)
Gets the named body attribute of the specified skin. |
String |
getSkinDocType(String name)
Gets the doctype of the specified skin. |
String |
getSkinFormName(String name)
Gets the name of the form of the specified skin. |
String |
getSkinHeadScript(String name)
Gets the URL of the head script of the specified skin. |
String[] |
getSkinHeadScripts(String name)
Gets the URLs of the head scripts of the specified skin. |
String |
getSkinInlineStyleSheet(String name)
Gets the inline style sheet of the specified skin. |
String |
getSkinLabel(String name)
Gets the label of the specified skin. |
String |
getSkinLink(String name)
Gets the link of the specified skin. |
String |
getSkinLogo(String name)
Gets the logo of the specified skin. |
String |
getSkinMetaElement(String name,
String attribute)
Gets the named meta element of the specified skin. |
String[] |
getSkinNames()
Gets the names of all skins. |
String |
getSkinShortcutIcon(String name)
Gets the URL of the shortcut icon of the specified skin. |
String |
getSkinStyleSheet(String name)
Gets the URL of the style sheet of the specified skin. |
String[] |
getSkinStyleSheets(String name)
Gets the URLs of the style sheets of the specified skin. |
String |
getSkinSubtitle(String name)
Gets the subtitle of the specified skin. |
String |
getSkinTitle(String name)
Gets the title of the specified skin. |
String |
getSkinXMLNs(String name)
Gets the XML namespace of the specified skin. |
boolean |
isLocalizedSkins()
Gets the localized skins flag. |
boolean |
isSkinLocalized(String name)
Checks whether the specified skin is localized. |
void |
removeSkin(String name)
Removes the named skin. |
Skin |
resetCurrentSkin(ServletRequest request,
ServletResponse response,
FilterChain chain)
Resets the current skin of the session of the specified request to the default skin. |
Skin |
resetCurrentSkin(String name,
ServletRequest request,
ServletResponse response,
FilterChain chain)
Resets the current skin of the session of the specified request to the named skin. |
Skin |
resetCurrentSkin(String name,
ServletRequest request,
ServletResponse response,
FilterChain chain,
Principal principal)
Resets the current skin of the session of the principal of the specified request to the named skin. |
void |
setDefaultAttribute(String attribute,
String value)
Sets the named default page attribute. |
void |
setDefaultAttributes(String[] attributes)
Sets the named default page attributes as consecutive pairs of names and values. |
void |
setDefaultBaseName(String baseName)
Sets the default base name. |
void |
setDefaultBodyAttribute(String attribute,
String value)
Sets the named default body attribute. |
void |
setDefaultBodyAttributes(String[] attributes)
Sets the named deafult body attributes as consecutive pairs of names and values. |
void |
setDefaultDocType(String type)
Sets the default doctype. |
void |
setDefaultFormName(String form)
Sets the name of the default form. |
void |
setDefaultHeadScript(String url)
Sets the URL of the default head script. |
void |
setDefaultHeadScripts(String[] urls)
Sets the URLs of the default head scripts. |
void |
setDefaultInlineStyleSheet(String sheet)
Sets the default inline style sheet. |
void |
setDefaultLabel(String label)
Sets the default label. |
void |
setDefaultLink(String url)
Sets the default link. |
void |
setDefaultLogo(String path)
Sets the default logo. |
void |
setDefaultMetaElement(String attribute,
String value)
Sets the named default meta element. |
void |
setDefaultMetaElements(String[] attributes)
Sets the named default meta elements as consecutive pairs of names and values. |
void |
setDefaultShortcutIcon(String url)
Sets the URL of the default shortcut icon. |
void |
setDefaultSkinName(String name)
Sets the name of the default skin. |
void |
setDefaultStyleSheet(String url)
Sets the URL of the default style sheet. |
void |
setDefaultStyleSheets(String[] urls)
Sets the URLs of the default style sheets. |
void |
setDefaultSubtitle(String title)
Sets the defaultsubtitle. |
void |
setDefaultTitle(String title)
Sets the default title. |
void |
setDefaultXMLNs(String ns)
Sets the default XML namespace. |
void |
setLocalizedSkins(boolean flag)
Sets the localized skins flag. |
void |
setSkinAttribute(String name,
String attribute,
String value)
Sets the named attribute of the specified skin. |
void |
setSkinAttributes(String name,
String[] attributes)
Sets the named attributes of the specified skin as consecutive pairs of names and values. |
void |
setSkinBaseName(String name,
String baseName)
Sets the base name of the specified skin. |
void |
setSkinBodyAttribute(String name,
String attribute,
String value)
Sets the named body attribute of the specified skin. |
void |
setSkinBodyAttributes(String name,
String[] attributes)
Sets the named body attributes of the specified skin as consecutive pairs of names and values. |
void |
setSkinDocType(String name,
String type)
Sets the doctype of the specified skin. |
void |
setSkinFormName(String name,
String form)
Sets the name of the form of the specified skin. |
void |
setSkinHeadScript(String name,
String url)
Sets the URL of the head script of the specified skin. |
void |
setSkinHeadScripts(String name,
String[] urls)
Sets the URLs of the head scripts of the specified skin. |
void |
setSkinInlineStyleSheet(String name,
String sheet)
Sets the inline style sheet of the specified skin. |
void |
setSkinLabel(String name,
String label)
Sets the label of the specified skin. |
void |
setSkinLink(String name,
String url)
Sets the link of the specified skin. |
void |
setSkinLocalized(String name,
boolean flag)
Sets whether the specified skin is localized. |
void |
setSkinLogo(String name,
String path)
Sets the logo of the specified skin. |
void |
setSkinMetaElement(String name,
String attribute,
String value)
Sets the named meta element of the specified skin. |
void |
setSkinMetaElements(String name,
String[] attributes)
Sets the named meta elements of the specified skin as consecutive pairs of names and values. |
void |
setSkinName(String name)
Sets or replaces a named skin. |
void |
setSkinNames(String[] names)
Sets the names of absent skins. |
void |
setSkinShortcutIcon(String name,
String url)
Sets the URL of the shortcut icon of the specified skin. |
void |
setSkinStyleSheet(String name,
String url)
Sets the URL of the style sheet of the specified skin. |
void |
setSkinStyleSheets(String name,
String[] urls)
Sets the URLs of the style sheets of the specified skin. |
void |
setSkinSubtitle(String name,
String title)
Sets the subtitle of the specified skin. |
void |
setSkinTitle(String name,
String title)
Sets the title of the specified skin. |
void |
setSkinXMLNs(String name,
String ns)
Sets the XML namespace of the specified skin. |
Set |
skinNameSet()
Returns a read-only set of skin names. |
| Methods inherited from class org.norther.tammi.spray.filter.DefaultKeyFilter |
|---|
getKey, getKeyValue, getKeyValues, isLinkedKey, setKey, setLinkedKey |
| Methods inherited from class org.norther.tammi.spray.filter.DefaultFilter |
|---|
destroy, getFilterConfig, getRequestMap, getSessionMap, init |
| Methods inherited from class org.norther.tammi.core.base.Adaptee |
|---|
addAdaptee, addNotificationListener, getAttributeSupport, getBroker, getCanonicalName, getDomain, getFactory, getLoader, getLog, getLog, getMBean, getMBeanServer, getNotificationInfo, getObjectName, getRegistrationTime, getSequenceNumber, hasListeners, isRegistered, postmanaged, premanaged, removeNotificationListener, removeNotificationListener, sendNotification, sendNotification, sendNotification, sendNotification, unmanaged, unregister |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.norther.tammi.spray.filter.KeyFilter |
|---|
getKey, getKeyValue, getKeyValues, isLinkedKey, setKey, setLinkedKey |
| Methods inherited from interface javax.servlet.Filter |
|---|
destroy, init |
| Field Detail |
|---|
public static final String SKIN_KEY
| Constructor Detail |
|---|
public DefaultSkinFilter()
public DefaultSkinFilter(String key)
key - the filter key.| Method Detail |
|---|
public String getDefaultSkinName()
SkinFilter
getDefaultSkinName in interface SkinFilterpublic void setDefaultSkinName(String name)
SkinFilter
setDefaultSkinName in interface SkinFiltername - the name of the skin.public String getDefaultLabel()
SkinFilter
getDefaultLabel in interface SkinFilterpublic void setDefaultLabel(String label)
SkinFilter
setDefaultLabel in interface SkinFilterlabel - the label.public String getDefaultFormName()
SkinFilter
getDefaultFormName in interface SkinFilterpublic void setDefaultFormName(String form)
SkinFilter
setDefaultFormName in interface SkinFilterform - the name of the form.public boolean isLocalizedSkins()
SkinFilter
isLocalizedSkins in interface SkinFilterpublic void setLocalizedSkins(boolean flag)
SkinFilter
setLocalizedSkins in interface SkinFilterflag - the localized skins flag.public String getDefaultBaseName()
SkinFilter
getDefaultBaseName in interface SkinFilterpublic void setDefaultBaseName(String baseName)
SkinFilter
setDefaultBaseName in interface SkinFilterbaseName - the base name of the default bundle.public String getDefaultDocType()
SkinFilter
getDefaultDocType in interface SkinFilterpublic void setDefaultDocType(String type)
SkinFilter
setDefaultDocType in interface SkinFiltertype - the doctype.public String getDefaultLink()
SkinFilter
getDefaultLink in interface SkinFilterpublic void setDefaultLink(String url)
SkinFilter
setDefaultLink in interface SkinFilterurl - the URL of the link.public String getDefaultLogo()
SkinFilter
getDefaultLogo in interface SkinFilterpublic void setDefaultLogo(String path)
SkinFilter
setDefaultLogo in interface SkinFilterpath - the path of the logo.public String getDefaultTitle()
SkinFilter
getDefaultTitle in interface SkinFilterpublic void setDefaultTitle(String title)
SkinFilter
setDefaultTitle in interface SkinFiltertitle - the title.public String getDefaultSubtitle()
SkinFilter
getDefaultSubtitle in interface SkinFilterpublic void setDefaultSubtitle(String title)
SkinFilter
setDefaultSubtitle in interface SkinFiltertitle - the subtitle.public String getDefaultHeadScript()
SkinFilterNote that if several scripts are defined, the first one is returned.
getDefaultHeadScript in interface SkinFilterpublic void setDefaultHeadScript(String url)
SkinFilterNote that all previously defined scripts are replaced with the new one.
setDefaultHeadScript in interface SkinFilterurl - the URL of the head script.public String[] getDefaultHeadScripts()
SkinFilter
getDefaultHeadScripts in interface SkinFilterpublic void setDefaultHeadScripts(String[] urls)
SkinFilter
setDefaultHeadScripts in interface SkinFilterurls - the URLs of the head scripts.public String getDefaultStyleSheet()
SkinFilterNote that if several styles are defined, the first one is returned.
getDefaultStyleSheet in interface SkinFilterpublic void setDefaultStyleSheet(String url)
SkinFilterNote that all previously defined styles are replaced with the new one.
setDefaultStyleSheet in interface SkinFilterurl - the URL of the style sheet.public String[] getDefaultStyleSheets()
SkinFilter
getDefaultStyleSheets in interface SkinFilterpublic void setDefaultStyleSheets(String[] urls)
SkinFilter
setDefaultStyleSheets in interface SkinFilterurls - the URLs of the style sheets.public String getDefaultShortcutIcon()
SkinFilter
getDefaultShortcutIcon in interface SkinFilterpublic void setDefaultShortcutIcon(String url)
SkinFilter
setDefaultShortcutIcon in interface SkinFilterurl - the URL of the shortcut icon.public String getDefaultInlineStyleSheet()
SkinFilter
getDefaultInlineStyleSheet in interface SkinFilterpublic void setDefaultInlineStyleSheet(String sheet)
SkinFilter
setDefaultInlineStyleSheet in interface SkinFiltersheet - the inline style sheet.public String getDefaultMetaElement(String attribute)
SkinFilter
getDefaultMetaElement in interface SkinFilterattribute - the name of the attribute.
public void setDefaultMetaElement(String attribute,
String value)
SkinFilter
setDefaultMetaElement in interface SkinFilterattribute - the name of the attribute.value - the value of the attribute.public void setDefaultMetaElements(String[] attributes)
SkinFilter
setDefaultMetaElements in interface SkinFilterattributes - the names values of the attributes.public String getDefaultBodyAttribute(String attribute)
SkinFilter
getDefaultBodyAttribute in interface SkinFilterattribute - the name of the attribute.
public void setDefaultBodyAttribute(String attribute,
String value)
SkinFilter
setDefaultBodyAttribute in interface SkinFilterattribute - the name of the attribute.value - the value of the attribute.public void setDefaultBodyAttributes(String[] attributes)
SkinFilter
setDefaultBodyAttributes in interface SkinFilterattributes - the names values of the attributes.public String getDefaultAttribute(String attribute)
SkinFilter
getDefaultAttribute in interface SkinFilterattribute - the name of the attribute.
public void setDefaultAttribute(String attribute,
String value)
SkinFilter
setDefaultAttribute in interface SkinFilterattribute - the name of the attribute.value - the value of the attribute.public void setDefaultAttributes(String[] attributes)