NetKernel APIs


org.ten60.netkernel.layer1.util
Class URIFactory

java.lang.Object
  extended byorg.ten60.netkernel.layer1.util.URIFactory

public class URIFactory
extends Object

A simple factory to wrap construction of URIs so that the exception can be logged at source and avoided in app code. This should only be used for literal URIs - eventually there should be none in the code.


Constructor Summary
URIFactory()
           
 
Method Summary
static String getXPointerPath(String aFragment)
          Extracts an xpointer from the given uri fragment
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

URIFactory

public URIFactory()
Method Detail

getXPointerPath

public static String getXPointerPath(String aFragment)
Extracts an xpointer from the given uri fragment

Parameters:
aFragment -
Returns:
The XPath expression or null if the given URI doesn't contain an xpointer fragment.

NetKernel APIs


Copyright © 2002-2004 1060 Research Ltd. All Rights Reserved.