org.outerj.daisy.navigation.impl
Class NavigationUtil

java.lang.Object
  extended by org.outerj.daisy.navigation.impl.NavigationUtil

public class NavigationUtil
extends java.lang.Object


Constructor Summary
NavigationUtil()
           
 
Method Summary
static java.lang.String makeNodeIdValid(java.lang.String nodeId)
          Filters out characters that might give problems in URL paths.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NavigationUtil

public NavigationUtil()
Method Detail

makeNodeIdValid

public static java.lang.String makeNodeIdValid(java.lang.String nodeId)
Filters out characters that might give problems in URL paths. Returns null if the node ID cannot be made valid (= when its empty after filtering, or when it starts with a digit which is preserved for document IDs).

See also http://www.w3.org/Addressing/URL/4_URI_Recommentations.html



Copyright © -2012 . All Rights Reserved.