info.magnolia.jcr.wrapper
Class HTMLEscapingNodeWrapper

java.lang.Object
  extended by info.magnolia.jcr.wrapper.DelegateNodeWrapper
      extended by info.magnolia.jcr.decoration.ContentDecoratorNodeWrapper<HTMLEscapingContentDecorator>
          extended by info.magnolia.jcr.wrapper.HTMLEscapingNodeWrapper
All Implemented Interfaces:
Cloneable, javax.jcr.Item, javax.jcr.Node

public class HTMLEscapingNodeWrapper
extends ContentDecoratorNodeWrapper<HTMLEscapingContentDecorator>

Node wrapper for escaping HTML in property values. This wrapper is essential to prevention of XSS vulnerabilities in templates.

See Also:
HTMLEscapingPropertyWrapper

Field Summary
 
Fields inherited from class info.magnolia.jcr.wrapper.DelegateNodeWrapper
wrapped
 
Fields inherited from interface javax.jcr.Node
JCR_CHILD_NODE_DEFINITION, JCR_CONTENT, JCR_FROZEN_NODE, JCR_PROPERTY_DEFINITION, JCR_ROOT_VERSION, JCR_VERSION_LABELS
 
Constructor Summary
HTMLEscapingNodeWrapper(javax.jcr.Node wrapped, boolean transformLineBreaks)
           
HTMLEscapingNodeWrapper(javax.jcr.Node wrapped, HTMLEscapingContentDecorator decorator)
           
 
Method Summary
 String getName()
           
 
Methods inherited from class info.magnolia.jcr.decoration.ContentDecoratorNodeWrapper
addNode, addNode, equals, getAncestor, getContentDecorator, getNode, getNodes, getNodes, getNodes, getParent, getProperties, getProperties, getProperties, getProperty, getReferences, getReferences, getSession, getWeakReferences, getWeakReferences, hashCode, hasNode, hasNodes, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setWrappedNode, wrapNode, wrapNodeIterator, wrapProperty, wrapPropertyIterator, wrapSession
 
Methods inherited from class info.magnolia.jcr.wrapper.DelegateNodeWrapper
accept, addMixin, canAddMixin, cancelMerge, checkin, checkout, clone, deepUnwrap, doneMerge, followLifecycleTransition, getAllowedLifecycleTransistions, getBaseVersion, getCorrespondingNodePath, getDefinition, getDepth, getIdentifier, getIndex, getLock, getMixinNodeTypes, getPath, getPrimaryItem, getPrimaryNodeType, getSharedSet, getUUID, getVersionHistory, getWrappedNode, hasProperties, hasProperty, holdsLock, initClone, isCheckedOut, isLocked, isModified, isNew, isNode, isNodeType, isSame, lock, merge, orderBefore, refresh, remove, removeMixin, removeShare, removeSharedSet, restore, restore, restore, restoreByLabel, save, setPrimaryType, toString, unlock, update
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HTMLEscapingNodeWrapper

public HTMLEscapingNodeWrapper(javax.jcr.Node wrapped,
                               boolean transformLineBreaks)

HTMLEscapingNodeWrapper

public HTMLEscapingNodeWrapper(javax.jcr.Node wrapped,
                               HTMLEscapingContentDecorator decorator)
Method Detail

getName

public String getName()
               throws javax.jcr.RepositoryException
Specified by:
getName in interface javax.jcr.Item
Overrides:
getName in class DelegateNodeWrapper
Throws:
javax.jcr.RepositoryException


Copyright © 2003-2013 Magnolia International Ltd.. All Rights Reserved.