pulse - the web application framework Get pulse at SourceForge.net. Fast, secure and Free Open Source software downloads Ohloh project report for pulse-java

org.torweg.pulse.component.statistics.model.aggregation
Class RefererTreeElement

java.lang.Object
  extended by org.torweg.pulse.util.entity.AbstractBasicEntity
      extended by org.torweg.pulse.util.entity.Node
          extended by org.torweg.pulse.component.statistics.model.aggregation.AbstractTreeElement<RefererTreeElement>
              extended by org.torweg.pulse.component.statistics.model.aggregation.RefererTreeElement
All Implemented Interfaces:
java.io.Serializable

@Entity
public class RefererTreeElement
extends AbstractTreeElement<RefererTreeElement>

Represents a referer within the pulse website statistics.

Version:
$Revision: 1555 $
Author:
Daniel Dietz
See Also:
Serialized Form

Field Summary
static java.lang.String UNKNOWN_REFERER
          "?"
static java.lang.String UNRESOLVABLE_IP
          "IPv4/IPv6": represents an IPv4/IPv6-address as "un-resolvable" referer for the RefererTreeAggregation.
 
Fields inherited from class org.torweg.pulse.component.statistics.model.aggregation.AbstractTreeElement
LOGGER
 
Constructor Summary
protected RefererTreeElement()
          Deprecated. 
  RefererTreeElement(StatisticsServer s)
          Creates a new root RefererTreeElement node for the given server.
  RefererTreeElement(java.lang.String pathElement, StatisticsServer s)
          Creates a new RefererTreeElement for the given pathString element.
 
Method Summary
 java.lang.String getFullPathString(boolean withRoot)
          Returns the "full" name of the "referer" collecting the information from the parent nodes.
 
Methods inherited from class org.torweg.pulse.component.statistics.model.aggregation.AbstractTreeElement
getChildByPathString, getPathString, getStatisticsServer, isRootNode, setPathString, setPathString, setRooNode, setServer, toString
 
Methods inherited from class org.torweg.pulse.util.entity.Node
addChild, addChild, getChild, getChildIndex, getChildren, getParent, hasChildren, removeChild, setChildren, toJSON
 
Methods inherited from class org.torweg.pulse.util.entity.AbstractBasicEntity
compareTo, equals, getFullQualifiedClassNameJAXB, getId, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

UNKNOWN_REFERER

public static final java.lang.String UNKNOWN_REFERER
"?": represents an unknown referer for the RefererTreeAggregation.

See Also:
Constant Field Values

UNRESOLVABLE_IP

public static final java.lang.String UNRESOLVABLE_IP
"IPv4/IPv6": represents an IPv4/IPv6-address as "un-resolvable" referer for the RefererTreeAggregation.

See Also:
Constant Field Values
Constructor Detail

RefererTreeElement

@Deprecated
protected RefererTreeElement()
Deprecated. 

Default constructor.


RefererTreeElement

public RefererTreeElement(StatisticsServer s)
Creates a new root RefererTreeElement node for the given server.

Parameters:
s - the statistics server

RefererTreeElement

public RefererTreeElement(java.lang.String pathElement, StatisticsServer s)
                   throws java.lang.NullPointerException,
                          java.lang.IllegalArgumentException
Creates a new RefererTreeElement for the given pathString element.

Parameters:
pathElement - the name of the pathString element as represented by this RefererTreeElement.
s - the server the path element belongs to
Throws:
java.lang.NullPointerException - if the given pathElement is null
java.lang.IllegalArgumentException - if the given pathElement is empty string
Method Detail

getFullPathString

public final java.lang.String getFullPathString(boolean withRoot)
Returns the "full" name of the "referer" collecting the information from the parent nodes.

Parameters:
withRoot - indicates whether to add the "name" of the root-node as well
Returns:
the "full" name of the "referer"