Class PageResourceReference

java.lang.Object
org.xwiki.rendering.listener.reference.ResourceReference
org.xwiki.rendering.listener.reference.PageResourceReference
All Implemented Interfaces:
Cloneable

public class PageResourceReference extends ResourceReference
Represents a reference to a Page.
Since:
10.6RC1
Version:
$Id: 94599b5cb09eaf18d02ff492dea817688ca1163a $
  • Field Details

    • QUERY_STRING

      public static final String QUERY_STRING
      The name of the parameter representing the Query String.
      See Also:
    • ANCHOR

      public static final String ANCHOR
      The name of the parameter representing the Anchor.
      See Also:
  • Constructor Details

  • Method Details

    • getQueryString

      public String getQueryString()
      Returns:
      the query string for specifying parameters that will be used in the rendered URL or null if no query string has been specified. Example: mydata1=5&mydata2=Hello
    • setQueryString

      public void setQueryString(String queryString)
      Parameters:
      queryString - see getQueryString()
    • getAnchor

      public String getAnchor()
      Returns:
      the anchor name pointing to an anchor defined in the referenced page or null if no anchor has been specified (in which case the reference points to the top of the page). Note that in XWiki anchors are automatically created for titles. Example: "TableOfContentAnchor"
    • setAnchor

      public void setAnchor(String anchor)
      Parameters:
      anchor - see getAnchor()