org.xwiki.url
Interface XWikiURL

All Known Implementing Classes:
AbstractXWikiURL, XWikiEntityURL

public interface XWikiURL

Represents a XWiki URL.

Version:
$Id$

Method Summary
 void addParameter(java.lang.String name, java.lang.String value)
           
 java.util.Map<java.lang.String,java.util.List<java.lang.String>> getParameters()
          A XWiki URL parameter provides optional additional information about the URL.
 java.lang.String getParameterValue(java.lang.String name)
           
 java.util.List<java.lang.String> getParameterValues(java.lang.String name)
           
 XWikiURLType getType()
           
 

Method Detail

getType

XWikiURLType getType()
Returns:
the type of URL (Entity URL, Attachment URL, Template URL, etc)

addParameter

void addParameter(java.lang.String name,
                  java.lang.String value)
Parameters:
value - the value of the parameter to add. If null then no value is added.

getParameters

java.util.Map<java.lang.String,java.util.List<java.lang.String>> getParameters()
A XWiki URL parameter provides optional additional information about the URL. For example these will find their way into the Query String when the XWiki URL serialized to a standard URL. Note that there can be several values for the same name (since this is allowed in URLs and we want to map a URL to a XWiki URL). Also note that the order in the map is the same as the order in the URL.

Returns:
the XWiki URL parameters

getParameterValues

java.util.List<java.lang.String> getParameterValues(java.lang.String name)
Parameters:
name - the parameter name for which to return the values
Returns:
all the parameter values matching the passed parameter name

getParameterValue

java.lang.String getParameterValue(java.lang.String name)
Parameters:
name - the parameter name for which to return the value
Returns:
the first parameter value matching the passed parameter name


Copyright © 2004-2011 XWiki. All Rights Reserved.