ilog.views.maps.format
Class IlvDefaultDataPathResolver

java.lang.Object
  extended by ilog.views.maps.format.IlvDefaultDataPathResolver
All Implemented Interfaces:
IlvMapDataPathResolver

public class IlvDefaultDataPathResolver
extends Object
implements IlvMapDataPathResolver

Resolves a relative path name using a specified path. This default implementation of IlvMapDataPathResolver searches for a file in a directory.

Since:
JViews 5.0
See Also:
IlvMapDataPathResolver, IlvMapDataPathManager

Constructor Summary
IlvDefaultDataPathResolver(String basename)
          Creates a new data path resolver to find files or URLs in the specified base name.
 
Method Summary
 String resolvePath(String filename)
          Resolves the specified relative path name.
 URL resolveURL(String urlname)
          Resolves the specified relative URL name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IlvDefaultDataPathResolver

public IlvDefaultDataPathResolver(String basename)
Creates a new data path resolver to find files or URLs in the specified base name. The given base name can be either a directory name (for file name resolution), or a URL base name (for URL resolution).

Parameters:
basename - The absolute path of the directory, or the URL base name in which to search for files or URLs.
Method Detail

resolvePath

public String resolvePath(String filename)
Resolves the specified relative path name.

Specified by:
resolvePath in interface IlvMapDataPathResolver
Parameters:
filename - The relative file name to resolve.
Returns:
The absolute path name, or null if this resolver cannot resolve the path.

resolveURL

public URL resolveURL(String urlname)
Resolves the specified relative URL name.
This method attempts to resolve URLs using the basename of this IlvDefaultDataPathResolver as a prefix. For example, given an IlvDefaultDataPathResolver whose basename is http://www.foo.com, the urlname "bar" will be resolved as http://www.foo.com/bar.

Specified by:
resolveURL in interface IlvMapDataPathResolver
Parameters:
urlname - The relative URL name to resolve.
Returns:
The URL or null if this resolver cannot resolve the path.
Since:
JViews 5.0


Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.