|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 |
Constructor Summary | |
---|---|
DefaultSkinFilter()
Constructs a new filter. |
|
DefaultSkinFilter(String key)
Constructs a new filter with a key. |
Method Summary | |
---|---|
void |
addDefaultBodyScripts(String[] urls)
Adds more URLs of the default body scripts. |
void |
addDefaultHeadScripts(String[] urls)
Adds more URLs of the default head scripts. |
void |
addDefaultStyleSheets(String[] urls)
Adds more URLs of the default style sheets. |
void |
addSkinBodyScripts(String name,
String[] urls)
Adds more URLs of the body scripts of the specified skin. |
void |
addSkinHeadScripts(String name,
String[] urls)
Adds more URLs of the head scripts of the specified skin. |
boolean |
addSkinName(String name)
Adds a named skin if absent. |
void |
addSkinNames(String[] names)
Adds named skins if absent. |
void |
addSkinStyleSheets(String name,
String[] urls)
Adds more URLs of the style sheets of the specified skin. |
void |
clearDefaultBodyScripts()
Clears all default body scripts. |
void |
clearDefaultHeadScripts()
Clears all default head scripts. |
void |
clearDefaultStyleSheets()
Clears all default style sheets. |
void |
clearSkinBodyScripts(String name)
Clears all body scripts of the specified skin. |
void |
clearSkinHeadScripts(String name)
Clears all head scripts of the specified skin. |
void |
clearSkins()
Clears all skins. |
void |
clearSkinStyleSheets(String name)
Clears all style sheets of the specified skin. |
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. |
Object |
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[] |
getDefaultBodyScripts()
Gets the URLs of the default body scripts. |
String |
getDefaultDocType()
Gets the default doctype. |
String |
getDefaultFormTheme()
Gets the name of the default form theme. |
String[] |
getDefaultHeadScripts()
Gets the URLs of the default head scripts. |
String |
getDefaultInlineBodyScript()
Gets the default inline body script. |
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. |
Skin.Orientation |
getDefaultOrientation()
Gets the default orientation. |
String |
getDefaultPluginAttribute(String attribute)
Gets the named default plugin attribute. |
String |
getDefaultShortcutIcon()
Gets the URL of the default shortcut icon. |
String |
getDefaultSkinName()
Gets the name of the default skin. |
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. |
Object |
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[] |
getSkinBodyScripts(String name)
Gets the URLs of the body scripts of the specified skin. |
String |
getSkinDefaultName(String name)
Gets the default skin name of the specified skin. |
String |
getSkinDocType(String name)
Gets the doctype of the specified skin. |
String |
getSkinFormTheme(String name)
Gets the name of the form theme of the specified skin. |
String[] |
getSkinHeadScripts(String name)
Gets the URLs of the head scripts of the specified skin. |
String |
getSkinInlineBodyScript(String name)
Gets the inline body script 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. |
Skin.Orientation |
getSkinOrientation(String name)
Gets the orientation of the specified skin. |
String |
getSkinPluginAttribute(String name,
String attribute)
Gets the named plugin attribute of the specified skin. |
String |
getSkinShortcutIcon(String name)
Gets the URL of the shortcut icon 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()
Checks whether skins are localized by default. |
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 |
resolveCurrentSkin(String name,
String... extension)
Resolves the current skin for the given name and extension. |
void |
setDefaultAttribute(String attribute,
Object value)
Sets the named default page attribute. |
void |
setDefaultAttributes(Object[] 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 |
setDefaultBodyScripts(String[] urls)
Sets the URLs of the default body scripts. |
void |
setDefaultDocType(String type)
Sets the default doctype. |
void |
setDefaultFormTheme(String theme)
Sets the name of the default form theme. |
void |
setDefaultHeadScripts(String[] urls)
Sets the URLs of the default head scripts. |
void |
setDefaultInlineBodyScript(String script)
Sets the default inline body script. |
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 |
setDefaultOrientation(Skin.Orientation o)
Sets the default orientation. |
void |
setDefaultPluginAttribute(String attribute,
String value)
Sets the named default plugin attribute. |
void |
setDefaultPluginAttributes(String[] attributes)
Sets the named default plugin attributes 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 |
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 whether skins are localized by default. |
void |
setSkinAttribute(String name,
String attribute,
Object value)
Sets the named attribute of the specified skin. |
void |
setSkinAttributes(String name,
Object[] 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 |
setSkinBodyScripts(String name,
String[] urls)
Sets the URLs of the body scripts of the specified skin. |
void |
setSkinDefaultName(String name,
String dname)
Sets the default skin name of the specified skin. |
void |
setSkinDocType(String name,
String type)
Sets the doctype of the specified skin. |
void |
setSkinFormTheme(String name,
String form)
Sets the name of the form theme of the specified skin. |
void |
setSkinHeadScripts(String name,
String[] urls)
Sets the URLs of the head scripts of the specified skin. |
void |
setSkinInlineBodyScript(String name,
String script)
Sets the inline body script 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 or replaces named skins. |
void |
setSkinOrientation(String name,
Skin.Orientation o)
Sets the orientation of the specified skin. |
void |
setSkinPluginAttribute(String name,
String attribute,
String value)
Sets the named plugin attribute of the specified skin. |
void |
setSkinPluginAttributes(String name,
String[] attributes)
Sets the named plugin attributes of the specified skin as consecutive pairs of names and values. |
void |
setSkinShortcutIcon(String name,
String url)
Sets the URL of the shortcut icon 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<String> |
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 SkinFilter
public void setDefaultSkinName(String name)
SkinFilter
setDefaultSkinName
in interface SkinFilter
name
- the name of the skin.public String getDefaultLabel()
SkinFilter
getDefaultLabel
in interface SkinFilter
public void setDefaultLabel(String label)
SkinFilter
setDefaultLabel
in interface SkinFilter
label
- the label.public String getDefaultFormTheme()
SkinFilter
getDefaultFormTheme
in interface SkinFilter
public void setDefaultFormTheme(String theme)
SkinFilter
setDefaultFormTheme
in interface SkinFilter
theme
- the name of the theme.public boolean isLocalizedSkins()
SkinFilter
isLocalizedSkins
in interface SkinFilter
public void setLocalizedSkins(boolean flag)
SkinFilter
setLocalizedSkins
in interface SkinFilter
flag
- true if localized, false otherwise.public String getDefaultBaseName()
SkinFilter
getDefaultBaseName
in interface SkinFilter
public void setDefaultBaseName(String baseName)
SkinFilter
setDefaultBaseName
in interface SkinFilter
baseName
- the base name of the default bundle.public String getDefaultDocType()
SkinFilter
getDefaultDocType
in interface SkinFilter
public void setDefaultDocType(String type)
SkinFilter
setDefaultDocType
in interface SkinFilter
type
- the doctype.public String getDefaultLink()
SkinFilter
getDefaultLink
in interface SkinFilter
public void setDefaultLink(String url)
SkinFilter
setDefaultLink
in interface SkinFilter
url
- the URL of the link.public String getDefaultLogo()
SkinFilter
getDefaultLogo
in interface SkinFilter
public void setDefaultLogo(String path)
SkinFilter
setDefaultLogo
in interface SkinFilter
path
- the path of the logo.public String getDefaultTitle()
SkinFilter
getDefaultTitle
in interface SkinFilter
public void setDefaultTitle(String title)
SkinFilter
setDefaultTitle
in interface SkinFilter
title
- the title.public String getDefaultSubtitle()
SkinFilter
getDefaultSubtitle
in interface SkinFilter
public void setDefaultSubtitle(String title)
SkinFilter
setDefaultSubtitle
in interface SkinFilter
title
- the subtitle.public Skin.Orientation getDefaultOrientation()
SkinFilter
getDefaultOrientation
in interface SkinFilter
public void setDefaultOrientation(Skin.Orientation o)
SkinFilter
setDefaultOrientation
in interface SkinFilter
o
- the orientation.public String[] getDefaultHeadScripts()
SkinFilter
getDefaultHeadScripts
in interface SkinFilter
public void setDefaultHeadScripts(String[] urls)
SkinFilter
setDefaultHeadScripts
in interface SkinFilter
urls
- the URLs of the head scripts.public void addDefaultHeadScripts(String[] urls)
SkinFilter
addDefaultHeadScripts
in interface SkinFilter
urls
- the URLs of the head scripts.public void clearDefaultHeadScripts()
SkinFilter
clearDefaultHeadScripts
in interface SkinFilter
public String[] getDefaultBodyScripts()
SkinFilter
getDefaultBodyScripts
in interface SkinFilter
public void setDefaultBodyScripts(String[] urls)
SkinFilter
setDefaultBodyScripts
in interface SkinFilter
urls
- the URLs of the body scripts.public void addDefaultBodyScripts(String[] urls)
SkinFilter
addDefaultBodyScripts
in interface SkinFilter
urls
- the URLs of the body scripts.public void clearDefaultBodyScripts()
SkinFilter
clearDefaultBodyScripts
in interface SkinFilter
public String getDefaultInlineBodyScript()
SkinFilter
getDefaultInlineBodyScript
in interface SkinFilter
public void setDefaultInlineBodyScript(String script)
SkinFilter
setDefaultInlineBodyScript
in interface SkinFilter
script
- the inline body script.public String[] getDefaultStyleSheets()
SkinFilter
getDefaultStyleSheets
in interface SkinFilter
public void setDefaultStyleSheets(String[] urls)
SkinFilter
setDefaultStyleSheets
in interface SkinFilter
urls
- the URLs of the style sheets.public void addDefaultStyleSheets(String[] urls)
SkinFilter
addDefaultStyleSheets
in interface SkinFilter
urls
- the URLs of the style sheets.public void clearDefaultStyleSheets()
SkinFilter
clearDefaultStyleSheets
in interface SkinFilter
public String getDefaultInlineStyleSheet()
SkinFilter
getDefaultInlineStyleSheet
in interface SkinFilter
public void setDefaultInlineStyleSheet(String sheet)
SkinFilter
setDefaultInlineStyleSheet
in interface SkinFilter
sheet
- the inline style sheet.public String getDefaultShortcutIcon()
SkinFilter
getDefaultShortcutIcon
in interface SkinFilter
public void setDefaultShortcutIcon(String url)
SkinFilter
setDefaultShortcutIcon
in interface SkinFilter
url
- the URL of the shortcut icon.public String getDefaultMetaElement(String attribute)
SkinFilter
getDefaultMetaElement
in interface SkinFilter
attribute
- the name of the attribute.
public void setDefaultMetaElement(String attribute, String value)
SkinFilter
setDefaultMetaElement
in interface SkinFilter
attribute
- the name of the attribute.value
- the value of the attribute.public void setDefaultMetaElements(String[] attributes)
SkinFilter
setDefaultMetaElements
in interface SkinFilter
attributes
- the names values of the attributes.public String getDefaultBodyAttribute(String attribute)
SkinFilter
getDefaultBodyAttribute
in interface SkinFilter
attribute
- the name of the attribute.
public void setDefaultBodyAttribute(String attribute, String value)
SkinFilter
setDefaultBodyAttribute
in interface SkinFilter
attribute
- the name of the attribute.value
- the value of the attribute.public void setDefaultBodyAttributes(String[] attributes)
SkinFilter
setDefaultBodyAttributes
in interface SkinFilter
attributes
- the names values of the attributes.public String getDefaultPluginAttribute(String attribute)
SkinFilter
getDefaultPluginAttribute
in interface SkinFilter
attribute
- the name of the attribute.
public void setDefaultPluginAttribute(String attribute, String value)
SkinFilter
setDefaultPluginAttribute
in interface SkinFilter
attribute
- the name of the attribute.value
- the value of the attribute.public void setDefaultPluginAttributes(String[] attributes)
SkinFilter
setDefaultPluginAttributes
in interface SkinFilter
attributes
- the names and values of the attributes.public Object getDefaultAttribute(String attribute)
SkinFilter
getDefaultAttribute
in interface SkinFilter
attribute
- the name of the attribute.
public void setDefaultAttribute(String attribute, Object value)
SkinFilter
setDefaultAttribute
in interface SkinFilter
attribute
- the name of the attribute.value
- the value of the attribute.public void setDefaultAttributes(Object[] attributes)
SkinFilter
setDefaultAttributes
in interface SkinFilter
attributes
- the names and values of the attributes.public String getDefaultXMLNs()
SkinFilter
getDefaultXMLNs
in interface SkinFilter
public void setDefaultXMLNs(String ns)
SkinFilter
setDefaultXMLNs
in interface SkinFilter
ns
- the namespace.public void setSkinName(String name)
SkinFilter
setSkinName
in interface SkinFilter
name
- the name of the skin.public boolean addSkinName(String name)
SkinFilter
addSkinName
in interface SkinFilter
name
- the name of the skin.
public void setSkinNames(String[] names)
SkinFilter
setSkinNames
in interface SkinFilter
names
- the names of the skins.public void addSkinNames(String[] names)
SkinFilter
addSkinNames
in interface SkinFilter
names
- the names of the skins.public Set<String> skinNameSet()
SkinFilter
skinNameSet
in interface SkinFilter
public void removeSkin(String name)
SkinFilter
removeSkin
in interface SkinFilter
name
- the name of the skin.public void clearSkins()
SkinFilter
clearSkins
in interface SkinFilter
public String getSkinLabel(String name)
SkinFilter
getSkinLabel
in interface SkinFilter
name
- the name of the skin.
public void setSkinLabel(String name, String label)
SkinFilter
setSkinLabel
in interface SkinFilter
name
- the name of the skin.label
- the label of the skin.public String getSkinDefaultName(String name)
SkinFilter
getSkinDefaultName
in interface SkinFilter
name
- the name of the skin.
public void setSkinDefaultName(String name, String dname)
SkinFilter
setSkinDefaultName
in interface SkinFilter
name
- the name of the skin.dname
- the default skin name.public String getSkinFormTheme(String name)
SkinFilter
getSkinFormTheme
in interface SkinFilter
name
- the name of the skin.
public void setSkinFormTheme(String name, String form)
SkinFilter
setSkinFormTheme
in interface SkinFilter
name
- the name of the skin.form
- the name of the theme.public boolean isSkinLocalized(String name)
SkinFilter
isSkinLocalized
in interface SkinFilter
name
- the name of the skin.
public void setSkinLocalized(String name, boolean flag)
SkinFilter
setSkinLocalized
in interface SkinFilter
name
- the name of the skin.flag
- the true if localized, false otherwise.public String getSkinBaseName(String name)
SkinFilter
getSkinBaseName
in interface SkinFilter
name
- the name of the skin.
public void setSkinBaseName(String name, String baseName)
SkinFilter
setSkinBaseName
in interface SkinFilter
name
- the name of the skin.baseName
- the base name.public String getSkinDocType(String name)
SkinFilter
getSkinDocType
in interface SkinFilter
name
- the name of the skin.
public void setSkinDocType(String name, String type)
SkinFilter
setSkinDocType
in interface SkinFilter
name
- the name of the skin.type
- the doctype.public String getSkinLink(String name)
SkinFilter
getSkinLink
in interface SkinFilter
name
- the name of the skin.
public void setSkinLink(String name, String url)
SkinFilter
setSkinLink
in interface SkinFilter
name
- the name of the skin.url
- the URL of the link.public String getSkinLogo(String name)
SkinFilter
getSkinLogo
in interface SkinFilter
name
- the name of the skin.
public void setSkinLogo(String name, String path)
SkinFilter
setSkinLogo
in interface SkinFilter
name
- the name of the skin.path
- the path of the logo.public String getSkinTitle(String name)
SkinFilter
getSkinTitle
in interface SkinFilter
name
- the name of the skin.
public void setSkinTitle(String name, String title)
SkinFilter
setSkinTitle
in interface SkinFilter
name
- the name of the skin.title
- the title.public String getSkinSubtitle(String name)
SkinFilter
getSkinSubtitle
in interface SkinFilter
name
- the name of the skin.
public void setSkinSubtitle(String name, String title)
SkinFilter
setSkinSubtitle
in interface SkinFilter
name
- the name of the skin.title
- the subtitle.public Skin.Orientation getSkinOrientation(String name)
SkinFilter
getSkinOrientation
in interface SkinFilter
name
- the name of the skin.
public void setSkinOrientation(String name, Skin.Orientation o)
SkinFilter
setSkinOrientation
in interface SkinFilter
name
- the name of the skin.o
- the orientation.public String[] getSkinHeadScripts(String name)
SkinFilter
getSkinHeadScripts
in interface SkinFilter
name
- the name of the skin.
public void setSkinHeadScripts(String name, String[] urls)
SkinFilter
setSkinHeadScripts
in interface SkinFilter
name
- the name of the skin.urls
- the URLs of the head scripts.public void addSkinHeadScripts(String name, String[] urls)
SkinFilter
addSkinHeadScripts
in interface SkinFilter
name
- the name of the skin.urls
- the URLs of the head scripts.public void clearSkinHeadScripts(String name)
SkinFilter
clearSkinHeadScripts
in interface SkinFilter
name
- the name of the skin.public String[] getSkinBodyScripts(String name)
SkinFilter
getSkinBodyScripts
in interface SkinFilter
name
- the name of the skin.
public void setSkinBodyScripts(String name, String[] urls)
SkinFilter
setSkinBodyScripts
in interface SkinFilter
name
- the name of the skin.urls
- the URLs of the body scripts.public void addSkinBodyScripts(String name, String[] urls)
SkinFilter
addSkinBodyScripts
in interface SkinFilter
name
- the name of the skin.urls
- the URLs of the body scripts.public void clearSkinBodyScripts(String name)
SkinFilter
clearSkinBodyScripts
in interface SkinFilter
name
- the name of the skin.public String getSkinInlineBodyScript(String name)
SkinFilter
getSkinInlineBodyScript
in interface SkinFilter
name
- the name of the skin.
public void setSkinInlineBodyScript(String name, String script)
SkinFilter
setSkinInlineBodyScript
in interface SkinFilter
name
- the name of the skin.script
- the inline body script.public String[] getSkinStyleSheets(String name)
SkinFilter
getSkinStyleSheets
in interface SkinFilter
name
- the name of the skin.
public void setSkinStyleSheets(String name, String[] urls)
SkinFilter
setSkinStyleSheets
in interface SkinFilter
name
- the name of the skin.urls
- the URLs of the style sheets.public void addSkinStyleSheets(String name, String[] urls)
SkinFilter
addSkinStyleSheets
in interface SkinFilter
name
- the name of the skin.urls
- the URLs of the style sheets.public void clearSkinStyleSheets(String name)
SkinFilter
clearSkinStyleSheets
in interface SkinFilter
name
- the name of the skin.public String getSkinInlineStyleSheet(String name)
SkinFilter
getSkinInlineStyleSheet
in interface SkinFilter
name
- the name of the skin.
public void setSkinInlineStyleSheet(String name, String sheet)
SkinFilter
setSkinInlineStyleSheet
in interface SkinFilter
name
- the name of the skin.sheet
- the inline style sheet.public String getSkinShortcutIcon(String name)
SkinFilter
getSkinShortcutIcon
in interface SkinFilter
name
- the name of the skin.
public void setSkinShortcutIcon(String name, String url)
SkinFilter
setSkinShortcutIcon
in interface SkinFilter
name
- the name of the skin.url
- the URL of the shortcut icon.public String getSkinMetaElement(String name, String attribute)
SkinFilter
getSkinMetaElement
in interface SkinFilter
name
- the name of the skin.attribute
- the name of the attribute.
public void setSkinMetaElement(String name, String attribute, String value)
SkinFilter
setSkinMetaElement
in interface SkinFilter
name
- the name of the skin.attribute
- the name of the attribute.value
- the value of the attribute.public void setSkinMetaElements(String name, String[] attributes)
SkinFilter
setSkinMetaElements
in interface SkinFilter
name
- the name of the skin.attributes
- the names values of the attributes.public String getSkinBodyAttribute(String name, String attribute)
SkinFilter
getSkinBodyAttribute
in interface SkinFilter
name
- the name of the skin.attribute
- the name of the attribute.
public void setSkinBodyAttribute(String name, String attribute, String value)
SkinFilter
setSkinBodyAttribute
in interface SkinFilter
name
- the name of the skin.attribute
- the name of the attribute.value
- the value of the attribute.public void setSkinBodyAttributes(String name, String[] attributes)
SkinFilter
setSkinBodyAttributes
in interface SkinFilter
name
- the name of the skin.attributes
- the names values of the attributes.public String getSkinPluginAttribute(String name, String attribute)
SkinFilter
getSkinPluginAttribute
in interface SkinFilter
name
- the name of the skin.attribute
- the name of the attribute.
public void setSkinPluginAttribute(String name, String attribute, String value)
SkinFilter
setSkinPluginAttribute
in interface SkinFilter
name
- the name of the skin.attribute
- the name of the attribute.value
- the value of the attribute.public void setSkinPluginAttributes(String name, String[] attributes)
SkinFilter
setSkinPluginAttributes
in interface SkinFilter
name
- the name of the skin.attributes
- the names values of the attributes.public Object getSkinAttribute(String name, String attribute)
SkinFilter
getSkinAttribute
in interface SkinFilter
name
- the name of the skin.attribute
- the name of the attribute.
public void setSkinAttribute(String name, String attribute, Object value)
SkinFilter
setSkinAttribute
in interface SkinFilter
name
- the name of the skin.attribute
- the name of the attribute.value
- the value of the attribute.public void setSkinAttributes(String name, Object[] attributes)
SkinFilter
setSkinAttributes
in interface SkinFilter
name
- the name of the skin.attributes
- the names values of the attributes.public String getSkinXMLNs(String name)
SkinFilter
getSkinXMLNs
in interface SkinFilter
name
- the name of the skin.
public void setSkinXMLNs(String name, String ns)
SkinFilter
setSkinXMLNs
in interface SkinFilter
name
- the name of the skin.ns
- the namespace.public Skin getSkin(String name)
SkinFilter
getSkin
in interface SkinFilter
name
- the name of the skin.
public boolean containsSkin(String name)
SkinFilter
containsSkin
in interface SkinFilter
name
- the name of the skin.
public Skin resolveCurrentSkin(String name, String... extension)
SkinFilter
resolveCurrentSkin
in interface SkinFilter
name
- the name of the skin.extension
- the extension of the skin.
public Skin getCurrentSkin(ServletRequest request, ServletResponse response, FilterChain chain)
SkinFilter
getCurrentSkin
in interface SkinFilter
request
- the servlet request.response
- the servlet response.chain
- the filter chain
public Skin resetCurrentSkin(ServletRequest request, ServletResponse response, FilterChain chain)
SkinFilter
resetCurrentSkin
in interface SkinFilter
request
- the servlet request.response
- the servlet response.chain
- the filter chain
public Skin resetCurrentSkin(String name, ServletRequest request, ServletResponse response, FilterChain chain)
SkinFilter
resetCurrentSkin
in interface SkinFilter
name
- the name of the skin.request
- the servlet request.response
- the servlet response.chain
- the filter chain
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws ServletException, IOException
doFilter
in interface Filter
doFilter
in class DefaultFilter
ServletException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |