ilog.cpl.service
Interface IlpURLAccessService

All Superinterfaces:
IlpService
All Known Implementing Classes:
IlpClassLoaderURLAccessService, IlpDefaultURLAccessService, IltDefaultURLAccessService

public interface IlpURLAccessService
extends IlpService

This service is used for deploying applications and applets without hardcoding pathnames or URLs. It turns relative URLs into absolute URLs or pathnames. Possible uses of this service are the access to icons and configuration files.

Since:
JTGO 3.0

Method Summary
 URL getFileLocation(String filename)
          Returns the URL of a file in the path, or null if it is not found.
 URL getFileLocation(String filename, boolean searchClassPathFirst, boolean searchClassPathLast)
          Returns the URL of a file in the path, or null if it is not found.
 

Method Detail

getFileLocation

URL getFileLocation(String filename)
Returns the URL of a file in the path, or null if it is not found.

Parameters:
filename - A relative URL or pathname.

getFileLocation

URL getFileLocation(String filename,
                    boolean searchClassPathFirst,
                    boolean searchClassPathLast)
Returns the URL of a file in the path, or null if it is not found. This variant has explicit control whether the file shall be searched in the CLASSPATH or not.

Parameters:
filename - A relative URL or pathname.
searchClassPathFirst - If true, the file shall be searched in the CLASSPATH (directories and jars) before the usual path.
searchClassPathLast - If true, the file shall be searched in the CLASSPATH (directories and jars) after the usual path.


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