org.sonatype.gossip.source
Class URLSource

java.lang.Object
  extended by org.sonatype.gossip.source.SourceSupport
      extended by org.sonatype.gossip.source.URLSource
All Implemented Interfaces:
Source

public class URLSource
extends SourceSupport

URL configuration source.

Since:
1.0
Author:
Jason Dillon

Field Summary
 
Fields inherited from class org.sonatype.gossip.source.SourceSupport
log
 
Constructor Summary
URLSource()
           
 
Method Summary
 URL getUrl()
           
 Model load()
          Load a configuration model.
 void setUrl(String location)
           
 void setUrl(URL url)
           
 String toString()
           
 
Methods inherited from class org.sonatype.gossip.source.SourceSupport
load, load
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

URLSource

public URLSource()
Method Detail

setUrl

public void setUrl(URL url)

setUrl

public void setUrl(String location)
            throws MalformedURLException
Throws:
MalformedURLException

getUrl

public URL getUrl()

load

public Model load()
           throws Exception
Description copied from interface: Source
Load a configuration model.

Returns:
The loaded model.
Throws:
Exception - Failed to load the model.

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2008-2012 Sonatype. All Rights Reserved.