info.magnolia.cms.util
Class SelectorUtil

java.lang.Object
  extended by info.magnolia.cms.util.SelectorUtil

public class SelectorUtil
extends Object

Util to handler selectors. A selector is the part between the first dot and the extension of an URI.

Version:
$Revision: $ ($Author: $)
Author:
gjoseph

Constructor Summary
SelectorUtil()
           
 
Method Summary
static String getSelector()
           get selector as requested from the URI.
static String getSelector(int index)
          Get the selector by index Warning - this might change in the future - see MAGNOLIA-2343 for details.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SelectorUtil

public SelectorUtil()
Method Detail

getSelector

public static String getSelector()

get selector as requested from the URI. The selector is the part between the handle and the extension. selector("http://server/a.x.1.f.4.html") = "x.1.f.4"

Warning - this might change in the future - see MAGNOLIA-2343 for details.

Returns:
selector String as requested from the URI

getSelector

public static String getSelector(int index)
Get the selector by index Warning - this might change in the future - see MAGNOLIA-2343 for details.

Returns:
the selector value


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