当前页面:
在线文档首页 >
JBOSS Portal 2.2 API 英文版文档
FileURLNavigationProvider - JBOSS Portal 2.2 API 英文版文档
org.jboss.portal.common.net.file
Class FileURLNavigationProvider
java.lang.Object
org.jboss.portal.common.net.file.FileURLNavigationProvider
- All Implemented Interfaces:
- URLNavigationProvider
- public class FileURLNavigationProvider
- extends java.lang.Object
- implements URLNavigationProvider
Method Summary |
java.util.Iterator |
getChildren(java.net.URL url)
Returns an iterator over the children of the URL. |
boolean |
isDir(java.net.URL url)
Return true if the url represents a directory. |
void |
visit(java.net.URL url,
URLVisitor visitor)
Visit all the children recursively. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileURLNavigationProvider
public FileURLNavigationProvider()
isDir
public boolean isDir(java.net.URL url)
throws java.lang.IllegalArgumentException
- Description copied from interface:
URLNavigationProvider
- Return true if the url represents a directory.
- Specified by:
isDir
in interface URLNavigationProvider
- Parameters:
url
- the target url
- Returns:
- true if this URL reprensents a directory
- Throws:
java.lang.IllegalArgumentException
- if the url is null or is not accepted
getChildren
public java.util.Iterator getChildren(java.net.URL url)
- Description copied from interface:
URLNavigationProvider
- Returns an iterator over the children of the URL.
- Specified by:
getChildren
in interface URLNavigationProvider
- Parameters:
url
- the target url
- Returns:
- an iterator over the children of the url
visit
public void visit(java.net.URL url,
URLVisitor visitor)
throws java.lang.IllegalArgumentException,
java.io.IOException
- Description copied from interface:
URLNavigationProvider
- Visit all the children recursively.
- Specified by:
visit
in interface URLNavigationProvider
- Parameters:
url
- the target urlvisitor
- the visitor
- Throws:
java.lang.IllegalArgumentException
- if an argument is null or if the url is not accepted
java.io.IOException
- s