org.hudsonci.plugins.snapshotmonitor.internal
Class SimpleMetadataChecker

java.lang.Object
  extended by org.hudsonci.plugins.snapshotmonitor.internal.SimpleMetadataChecker
All Implemented Interfaces:
MetadataChecker

public class SimpleMetadataChecker
extends Object
implements MetadataChecker

Checks Metadata instances for the last updated time.

Since:
2.1.0
Author:
Jason Dillon

Constructor Summary
SimpleMetadataChecker(String baseUrl, String user, String password)
           
 
Method Summary
 long check(WatchedDependency dependency)
          Returns the last-updated date for the given dependency, or 0 if unavailable.
 String getPath(MavenCoordinatesDTO artifact)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleMetadataChecker

public SimpleMetadataChecker(String baseUrl,
                             String user,
                             String password)
Method Detail

getPath

public String getPath(MavenCoordinatesDTO artifact)
Specified by:
getPath in interface MetadataChecker

check

public long check(WatchedDependency dependency)
           throws IOException
Returns the last-updated date for the given dependency, or 0 if unavailable.

Specified by:
check in interface MetadataChecker
Throws:
IOException


Copyright © 2004-2012 Hudson. All Rights Reserved.