no.sesat.search.view
Class FindResource
java.lang.Object
no.sesat.search.view.FindResource
public final class FindResource
- extends Object
http://sesat.no/scarab/issues/id/SKER3452
Move 302 resource redirects to internal resource directives
- Version:
- $Id: FindResource.java 7225 2009-04-09 00:32:20Z ssmiweve $
|
Method Summary |
static String |
find(Site site,
String resource)
Find the real location, in URL format, of the resource for the given site. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
START_TIME
public static final long START_TIME
find
public static String find(Site site,
String resource)
throws IOException
- Find the real location, in URL format, of the resource for the given site.
Cannot be used in tests as is hardcoded to work with the UrlResourceLoader.
- Parameters:
site - the siteresource - the resource
- Returns:
- a string in URL format where the resource can be found, or null if not found.
- Throws:
IOException - exception when pinging to find real location
Copyright © 2005-2009 Schibsted ASA. All Rights Reserved.