站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBOSS Portal 2.6 API 英文版文档

URLNavigator - JBOSS Portal 2.6 API 英文版文档


org.jboss.portal.common.net
Class URLNavigator

java.lang.Object
  extended byorg.jboss.portal.common.net.URLNavigator

public class URLNavigator
extends java.lang.Object

The URLNavigator class is a registry for various URLNavigationProvider.

Version:
$Revision: 5451 $
Author:
Julien Viet

Field Summary
private static URLNavigationProvider fileNav
           
private static URLNavigationProvider jarNav
           
 
Constructor Summary
URLNavigator()
           
 
Method Summary
private static URLNavigationProvider getProvider(java.net.URL url)
          Return an URLNavigationProvider for the specified URL.
static void visit(java.net.URL url, URLVisitor visitor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fileNav

private static final URLNavigationProvider fileNav

jarNav

private static final URLNavigationProvider jarNav
Constructor Detail

URLNavigator

public URLNavigator()
Method Detail

visit

public static void visit(java.net.URL url,
                         URLVisitor visitor)
                  throws java.lang.IllegalArgumentException,
                         java.io.IOException
Throws:
java.lang.IllegalArgumentException
java.io.IOException

getProvider

private static URLNavigationProvider getProvider(java.net.URL url)
                                          throws java.lang.IllegalArgumentException
Return an URLNavigationProvider for the specified URL.

Parameters:
url - the target url
Returns:
the corresponding URL navigator
Throws:
java.lang.IllegalArgumentException - if the url is null or no provider is found