ilog.views.appframe.util
Class IlvURLResolverManager

java.lang.Object
  extended by ilog.views.appframe.util.IlvURLResolverManager
All Implemented Interfaces:
IlvURLResolver

public class IlvURLResolverManager
extends Object
implements IlvURLResolver

Defines URL resolvers that manage a set of URL resolvers.


Constructor Summary
IlvURLResolverManager()
          Constructs a new IlvURLResolverManager.
 
Method Summary
 void addResolver(IlvURLResolver resolver)
          Adds the specified resolver to the manager.
 String getAbbreviateForm(URL url)
          Returns the abbreviated form of the specified url.
 IlvURLResolver getURLResolver(int index)
          Returns the URL resolver at the specified storage index.
 int getURLResolverCount()
          Returns the number of URL resolvers stored by this manager.
 boolean removeResolver(IlvURLResolver resolver)
          Removes the specified resolver from the list of stored URL resolvers.
 URL resolveURL(String filename)
          Resolves a URL from the specified filename.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IlvURLResolverManager

public IlvURLResolverManager()
Constructs a new IlvURLResolverManager.

Method Detail

resolveURL

public URL resolveURL(String filename)
Resolves a URL from the specified filename. All the URL resolvers added to this manager are asked to resolve a URL from the file name until one succeeds in resolving the URL.

Specified by:
resolveURL in interface IlvURLResolver
Parameters:
filename - The filename or relative pathname expression to retrieve a URL from.
Returns:
The URL that corresponds to the specified filename or null if no URL can be resolved.

getAbbreviateForm

public String getAbbreviateForm(URL url)
Returns the abbreviated form of the specified url. If the URL is returned by the resolveURL(java.lang.String) method, the abbreviated form should be the file name given as the parameter of the resolveURL(java.lang.String) method.

Specified by:
getAbbreviateForm in interface IlvURLResolver
Parameters:
url - The URL to retrieve the abbreviated form from.
Returns:
The abbreviated form of the specified url.

addResolver

public void addResolver(IlvURLResolver resolver)
Adds the specified resolver to the manager.

Parameters:
resolver - The URL resolver to add.

removeResolver

public boolean removeResolver(IlvURLResolver resolver)
Removes the specified resolver from the list of stored URL resolvers.

Parameters:
resolver - The resolver to remove.
Returns:
true if the resolver can be removed or false if the resolver has not been added to the manager.

getURLResolver

public IlvURLResolver getURLResolver(int index)
Returns the URL resolver at the specified storage index.

Parameters:
index - The index of the URL resolver to return.
Returns:
The URL resolver.
See Also:
getURLResolverCount()

getURLResolverCount

public int getURLResolverCount()
Returns the number of URL resolvers stored by this manager.

Returns:
The number of URL resolvers.
See Also:
getURLResolver(int)


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