protected class AbstractBrowsableResourceFactory.BrowsableResourceAdapter extends AbstractBrowsableResourceProxy
BrowsableResource
interface, that adapts another
BrowsableResource
and enhances the navigate(String)
-method to support switching
schemes via the BrowsableResourceFactory
that created this BrowsableResource
.Modifier and Type | Field and Description |
---|---|
private BrowsableResource |
delegate |
Constructor and Description |
---|
BrowsableResourceAdapter(BrowsableResource delegate)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
protected BrowsableResource |
getDelegate()
This method gets the
DataResource this proxy delegates to. |
DataResource |
navigate(String relativePath)
This method creates a new
DataResource pointing to the given resourcePath based on
this resource. |
getChildResources, getChildResources, isFolder, openOutputStream
getLastModificationDate, getName, getPath, getSize, getUri, getUrl, isAvailable, isData, isModifiedSince, openStream, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getLastModificationDate, getName, getPath, getSize, getUri, getUrl, isAvailable, isData, isModifiedSince, openStream
private final BrowsableResource delegate
getDelegate()
public BrowsableResourceAdapter(BrowsableResource delegate)
delegate
- is the BrowsableResource
to adapt.protected BrowsableResource getDelegate()
DataResource
this proxy delegates to.getDelegate
in class AbstractBrowsableResourceProxy
public DataResource navigate(String relativePath) throws ResourceUriUndefinedException
DataResource
pointing to the given resourcePath
based on
this resource. relativePath
would be
"../apt/sources.list" the resulting resource would point to "/etc/apt/sources.list".navigate
in interface DataResource
navigate
in class AbstractDataResourceProxy
relativePath
- is the absolute or relative path pointing to a new resource. If it is a relative
path, it is interpreted relative to the parent URI (directory) of this resource.ResourceUriUndefinedException
- if the given resourcePath
leads to an undefined or
illegal URI.Copyright © 2001–2014 mmm-Team. All rights reserved.