public interface URLResolver
Modifier and Type | Method and Description |
---|---|
boolean |
isSamePage(java.lang.String url1,
java.lang.String url2)
Gets whether or not two URLs refer to the same page.
|
Page |
resolve(java.lang.String url)
Gets a page from a URL.
|
Page resolve(java.lang.String url) throws PageNotFoundException
url
- the URL of the page.PageNotFoundException
- if no page can be created for this URL.boolean isSamePage(java.lang.String url1, java.lang.String url2)
url1
- the first URL.url2
- the second URL.true
if the given URLs refer to the same page, false
otherwise.