org.sonatype.gshell.branding
Class LicenseSupport

java.lang.Object
  extended by org.sonatype.gshell.branding.LicenseSupport
All Implemented Interfaces:
License

public class LicenseSupport
extends Object
implements License

Support for {@link License) implementations.

Since:
2.5
Author:
Jason Dillon

Constructor Summary
LicenseSupport(String name, String url)
           
LicenseSupport(String name, URL url)
           
 
Method Summary
 String getContent()
           
 String getName()
           
 URL getUrl()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LicenseSupport

public LicenseSupport(String name,
                      URL url)

LicenseSupport

public LicenseSupport(String name,
                      String url)
Method Detail

getName

public String getName()
Specified by:
getName in interface License

getUrl

public URL getUrl()
Specified by:
getUrl in interface License

getContent

public String getContent()
                  throws IOException
Specified by:
getContent in interface License
Throws:
IOException


Copyright © 2008-2011 Sonatype. All Rights Reserved.