com.arsdigita.kernel
Interface URLFinder

All Known Implementing Classes:
GenericURLFinder

public interface URLFinder

This interface is used by the URLService to delegate the job of finding a URL for a domain object to custom code.

If a developer adds a new data object type and wants the URLService to support it, the developer must register a URLFinder for the new type using URLService.registerFinder().

The GenericURLFinder may be used for many object types. If the behavior of GenericURLFinder is not applicable to some data object type, the developer should write a new URLFinder that uses application-specific logic.

Author:
Oumi Mehrotra

Field Summary
static String versionId
           
 
Method Summary
 String find(OID oid)
          Returns a URL path to a page that displays the object identified by the given OID.
 String find(OID oid, String context)
           
 

Field Detail

versionId

public static final String versionId
See Also:
Constant Field Values
Method Detail

find

public String find(OID oid)
            throws NoValidURLException
Returns a URL path to a page that displays the object identified by the given OID. The URL path is relative to the server root. Only called from URLService.locate(OID).

Throws:
NoValidURLException - when no valid URL could be obtained for the given OID.
See Also:
URLService.locate(OID)

find

public String find(OID oid,
                   String context)
            throws NoValidURLException
Throws:
NoValidURLException


Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 20 2004:2337 UTC