org.sonatype.gossip.source
Class URLSource
java.lang.Object
org.sonatype.gossip.source.SourceSupport
org.sonatype.gossip.source.URLSource
- All Implemented Interfaces:
- Source
public class URLSource
- extends SourceSupport
URL configuration source.
- Since:
- 1.0
- Author:
- Jason Dillon
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
URLSource
public URLSource()
setUrl
public void setUrl(java.net.URL url)
setUrl
public void setUrl(java.lang.String location)
throws java.net.MalformedURLException
- Throws:
java.net.MalformedURLException
getUrl
public java.net.URL getUrl()
load
public Model load()
throws java.lang.Exception
- Description copied from interface:
Source
- Load a configuration model.
- Returns:
- The loaded model.
- Throws:
java.lang.Exception
- Failed to load the model.
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2008-2011 Sonatype. All Rights Reserved.