Forge - Resource Addon Impl 2.0.0.Alpha3

org.jboss.forge.resource
Class URLResourceImpl

java.lang.Object
  extended by org.jboss.forge.facets.AbstractFaceted<ResourceFacet>
      extended by org.jboss.forge.resource.AbstractResource<T>
          extended by org.jboss.forge.resource.VirtualResource<URL>
              extended by org.jboss.forge.resource.URLResourceImpl
All Implemented Interfaces:
org.jboss.forge.facets.Faceted<ResourceFacet>, Resource<URL>, URLResource

public class URLResourceImpl
extends VirtualResource<URL>
implements URLResource

Represents a URL resource

Author:
Lincoln Baxter, III, George Gastaldi

Field Summary
 
Fields inherited from class org.jboss.forge.resource.AbstractResource
parent, resourceFactory
 
Constructor Summary
protected URLResourceImpl(ResourceFactory factory, Resource<?> parent, URL resource)
           
  URLResourceImpl(ResourceFactory factory, URL resource)
           
 
Method Summary
 boolean delete()
           
 boolean delete(boolean recursive)
           
protected  List<Resource<?>> doListResources()
           
 boolean exists()
           
 String getName()
           
 InputStream getResourceInputStream()
           
 URL getUnderlyingResourceObject()
           
 boolean supports(ResourceFacet type)
           
 
Methods inherited from class org.jboss.forge.resource.VirtualResource
createFrom, getChild
 
Methods inherited from class org.jboss.forge.resource.AbstractResource
equals, getFullyQualifiedName, getParent, getResourceFactory, hashCode, listResources, listResources, reify
 
Methods inherited from class org.jboss.forge.facets.AbstractFaceted
getFacet, getFacets, getFacets, hasAllFacets, hasAllFacets, hasFacet, install, uninstall
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.forge.resource.Resource
createFrom, getChild, getFullyQualifiedName, getParent, getResourceFactory, listResources, listResources, reify
 
Methods inherited from interface org.jboss.forge.facets.Faceted
getFacet, getFacets, getFacets, hasAllFacets, hasAllFacets, hasFacet, install, uninstall
 

Constructor Detail

URLResourceImpl

public URLResourceImpl(ResourceFactory factory,
                       URL resource)

URLResourceImpl

protected URLResourceImpl(ResourceFactory factory,
                          Resource<?> parent,
                          URL resource)
Method Detail

delete

public boolean delete()
               throws UnsupportedOperationException
Specified by:
delete in interface Resource<URL>
Throws:
UnsupportedOperationException

delete

public boolean delete(boolean recursive)
               throws UnsupportedOperationException
Specified by:
delete in interface Resource<URL>
Throws:
UnsupportedOperationException

getName

public String getName()
Specified by:
getName in interface Resource<URL>

getUnderlyingResourceObject

public URL getUnderlyingResourceObject()
Specified by:
getUnderlyingResourceObject in interface Resource<URL>

getResourceInputStream

public InputStream getResourceInputStream()
Specified by:
getResourceInputStream in interface Resource<URL>
Overrides:
getResourceInputStream in class VirtualResource<URL>

exists

public boolean exists()
Specified by:
exists in interface Resource<URL>
Overrides:
exists in class VirtualResource<URL>

doListResources

protected List<Resource<?>> doListResources()
Specified by:
doListResources in class AbstractResource<URL>

supports

public boolean supports(ResourceFacet type)
Specified by:
supports in interface org.jboss.forge.facets.Faceted<ResourceFacet>
Overrides:
supports in class AbstractResource<URL>

Forge - Resource Addon Impl 2.0.0.Alpha3

Copyright © 2013 JBoss by Red Hat. All Rights Reserved.