org.rhq.bundle.ant.type
Class AbstractUrlFileType

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.types.DataType
          extended by org.rhq.bundle.ant.type.AbstractBundleType
              extended by org.rhq.bundle.ant.type.AbstractUrlFileType
All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
UrlArchiveType, UrlFileType

public abstract class AbstractUrlFileType
extends AbstractBundleType

A base class for the functionality shared by UrlFileType and UrlArchiveType.

Author:
Ian Springer, John Mazzitelli

Field Summary
 
Fields inherited from class org.apache.tools.ant.types.DataType
checked, ref
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project
 
Constructor Summary
AbstractUrlFileType()
           
 
Method Summary
 String getBaseName()
          Returns the base filename of the URL (no parent paths will be in the returned name).
 URL getSource()
           
 String getUrl()
           
 void setUrl(String urlString)
           
 
Methods inherited from class org.rhq.bundle.ant.type.AbstractBundleType
buildIncludePatternRegex, getPattern, getProject
 
Methods inherited from class org.apache.tools.ant.types.DataType
checkAttributesAllowed, checkChildrenAllowed, circularReference, clone, dieOnCircularReference, dieOnCircularReference, dieOnCircularReference, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getDataTypeName, getRefid, invokeCircularReferenceCheck, isChecked, isReference, noChildrenAllowed, pushAndInvokeCircularReferenceCheck, setChecked, setRefid, tooManyAttributes, toString
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
getDescription, getLocation, log, log, setDescription, setLocation, setProject
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractUrlFileType

public AbstractUrlFileType()
Method Detail

getBaseName

public String getBaseName()
Returns the base filename of the URL (no parent paths will be in the returned name). If there is no path, the hostname of the URL is used.

Returns:
base filename of the source file

getSource

public URL getSource()

getUrl

public String getUrl()

setUrl

public void setUrl(String urlString)


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.