com.aoindustries.website.skintags
Class PageAttributes

java.lang.Object
  extended by com.aoindustries.website.skintags.PageAttributes

public class PageAttributes
extends java.lang.Object

During the processing of the skin, page attributes are built and stored here, one instance per request.

Author:
AO Industries, Inc.

Nested Class Summary
static class PageAttributes.Link
           
 
Field Summary
static java.lang.String ATTRIBUTE_KEY
          The following key is used to store the objects in the page attributes.
static int ATTRIBUTE_SCOPE
          The following scope is used to store the objects in the page attributes.
static java.lang.String LAYOUT_MINIMAL
          The possible values for layout.
static java.lang.String LAYOUT_NORMAL
          The possible values for layout.
 
Constructor Summary
PageAttributes(javax.servlet.http.HttpServletRequest request)
           
 
Method Summary
 void addChild(Child child)
           
 void addLink(java.lang.String rel, java.lang.String href, java.lang.String type, java.lang.String conditionalCommentExpression)
           
 void addMeta(Meta meta)
           
 void addParent(Parent parent)
           
 java.lang.String getAuthor()
           
 java.util.List<Child> getChildren()
          Gets the direct children of this page.
 java.lang.String getCopyright()
           
 java.lang.String getDescription()
           
 java.lang.String getKeywords()
           
 java.lang.String getLayout()
           
 java.util.List<PageAttributes.Link> getLinks()
           
 java.util.List<Meta> getMetas()
           
 java.lang.String getNavImageAlt()
           
 java.lang.String getOnload()
           
 java.util.List<Parent> getParents()
           
 java.lang.String getPath()
           
 java.lang.String getTitle()
           
 void setAuthor(java.lang.String author)
           
 void setCopyright(java.lang.String copyright)
           
 void setDescription(java.lang.String description)
           
 void setEncrypt(boolean encrypt)
          Sets the encrypt flag.
 void setKeywords(java.lang.String keywords)
           
 void setLayout(java.lang.String layout)
           
 void setNavImageAlt(java.lang.String navImageAlt)
           
 void setOnload(java.lang.String onload)
           
 void setPath(java.lang.String path)
           
 void setTitle(java.lang.String title)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LAYOUT_NORMAL

public static final java.lang.String LAYOUT_NORMAL
The possible values for layout.

See Also:
Constant Field Values

LAYOUT_MINIMAL

public static final java.lang.String LAYOUT_MINIMAL
The possible values for layout.

See Also:
Constant Field Values

ATTRIBUTE_KEY

public static final java.lang.String ATTRIBUTE_KEY
The following key is used to store the objects in the page attributes.

See Also:
Constant Field Values

ATTRIBUTE_SCOPE

public static final int ATTRIBUTE_SCOPE
The following scope is used to store the objects in the page attributes.

See Also:
Constant Field Values
Constructor Detail

PageAttributes

public PageAttributes(javax.servlet.http.HttpServletRequest request)
Method Detail

getPath

public java.lang.String getPath()

setPath

public void setPath(java.lang.String path)

getKeywords

public java.lang.String getKeywords()

setKeywords

public void setKeywords(java.lang.String keywords)

getDescription

public java.lang.String getDescription()

setDescription

public void setDescription(java.lang.String description)

getAuthor

public java.lang.String getAuthor()

setAuthor

public void setAuthor(java.lang.String author)

getCopyright

public java.lang.String getCopyright()

setCopyright

public void setCopyright(java.lang.String copyright)

getMetas

public java.util.List<Meta> getMetas()

addMeta

public void addMeta(Meta meta)

getLinks

public java.util.List<PageAttributes.Link> getLinks()

addLink

public void addLink(java.lang.String rel,
                    java.lang.String href,
                    java.lang.String type,
                    java.lang.String conditionalCommentExpression)

getTitle

public java.lang.String getTitle()

setTitle

public void setTitle(java.lang.String title)

getNavImageAlt

public java.lang.String getNavImageAlt()

setNavImageAlt

public void setNavImageAlt(java.lang.String navImageAlt)

getParents

public java.util.List<Parent> getParents()

addParent

public void addParent(Parent parent)

getChildren

public java.util.List<Child> getChildren()
Gets the direct children of this page.


addChild

public void addChild(Child child)

getLayout

public java.lang.String getLayout()

setLayout

public void setLayout(java.lang.String layout)

getOnload

public java.lang.String getOnload()

setOnload

public void setOnload(java.lang.String onload)

setEncrypt

public void setEncrypt(boolean encrypt)
                throws javax.servlet.jsp.JspException
Sets the encrypt flag. Makes sure the current request secure flag matches the encryption flag.

Throws:
javax.servlet.jsp.JspException - if the secure flag and encrypt flag mismatch.