info.magnolia.cms.util
Class SelectorUtil

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

public class SelectorUtil
extends java.lang.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 java.lang.String getSelector()
           get selector as requested from the URI.
static java.lang.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 java.lang.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 java.lang.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.