Skip navigation links

Oracle® Fusion Middleware Site Studio for External Applications Java API Reference
11g Release 1 (11.1.1)

E17273-02


oracle.stellent.wcm.common.io.resource.impl
Class UrlResource

java.lang.Object
  extended by oracle.stellent.wcm.common.io.resource.Resource
      extended by oracle.stellent.wcm.common.io.resource.impl.UrlResource


public class UrlResource
extends Resource

A resource represented by the URL class


Constructor Summary
UrlResource(java.lang.String path)
           
UrlResource(java.net.URL url)
           

 

Method Summary
 java.lang.String getExternalPath()
           
 java.io.InputStream getInputStream()
           
 long getLastModified()
           
 java.net.URL getUrl()
           
protected  void setUrl(java.net.URL url)
          For subclasses

 

Methods inherited from class oracle.stellent.wcm.common.io.resource.Resource
exists, getPath

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

UrlResource

public UrlResource(java.lang.String path)

UrlResource

public UrlResource(java.net.URL url)

Method Detail

getUrl

public java.net.URL getUrl()

setUrl

protected void setUrl(java.net.URL url)
For subclasses
Parameters:
url - the url to set

getInputStream

public java.io.InputStream getInputStream()
                                   throws java.io.IOException
Specified by:
getInputStream in class Resource
Returns:
the inputstream to this resource
Throws:
java.io.IOException

getExternalPath

public java.lang.String getExternalPath()
Overrides:
getExternalPath in class Resource
Returns:
an external form of the path

getLastModified

public long getLastModified()
Overrides:
getLastModified in class Resource
Returns:
the time when this resource was last modified, -1 if it cannot be determined

Skip navigation links

Oracle® Fusion Middleware Site Studio for External Applications Java API Reference
11g Release 1 (11.1.1)

E17273-02


Copyright © 2010, 2011, Oracle and/or its affiliates. All rights reserved.