ariba.ui.aribaweb.util
Class AWResource

java.lang.Object
  extended by ariba.ui.aribaweb.util.AWBaseObject
      extended by ariba.ui.aribaweb.util.AWResource
All Implemented Interfaces:
AWObject
Direct Known Subclasses:
AWClasspathResource, AWFileResource

public abstract class AWResource
extends AWBaseObject


Field Summary
 
Fields inherited from class ariba.ui.aribaweb.util.AWBaseObject
AribaHashtableClass, AribaVectorClass, ClassClass, EmptyHashtable, EmptyMap, EmptyVector, False, IntegerClass, JavaHashtableClass, JavaMapClass, JavaVectorClass, LogHandling, NullObject, ObjectClass, StringClass, True, UndefinedObject, UndefinedString, UninitializedRealNumber
 
Method Summary
 boolean canCacheUrl()
           
 boolean equals(java.lang.Object object)
           
abstract  java.lang.String fullUrl()
          Returns the full, absolute URL of this resource as a URL object.
 boolean hasChanged()
          checks whether the resource is modified since the last setObject() call.
 int hashCode()
           
abstract  java.io.InputStream inputStream()
          returns the input stream for this resource.
abstract  long lastModified()
           
 java.lang.String name()
           
 java.lang.Object object()
          returns the object this resource represents.
 java.lang.String relativePath()
           
 AWResource relativeResource(java.lang.String relativePath, AWResourceManager resourceManager)
          Try to find another resource at location relative to this one
 void setObject(java.lang.Object object)
          sets the object this resource represents.
 java.lang.String toString()
           
abstract  java.lang.String url()
          returns the url.
 
Methods inherited from class ariba.ui.aribaweb.util.AWBaseObject
debugString, ensureFieldValuesClear, getFieldValue, init, isKindOfClass, localizedJavaString, logString, logWarning, setFieldValue
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

name

public java.lang.String name()

relativePath

public java.lang.String relativePath()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

url

public abstract java.lang.String url()
returns the url. This might not be the absolute and complete url that can be used to instantiate an java.net.URL object. In the case of local resource, this returns something like "/w/logo.gif".


fullUrl

public abstract java.lang.String fullUrl()
Returns the full, absolute URL of this resource as a URL object.


object

public java.lang.Object object()
returns the object this resource represents.


setObject

public void setObject(java.lang.Object object)
sets the object this resource represents.


lastModified

public abstract long lastModified()

inputStream

public abstract java.io.InputStream inputStream()
returns the input stream for this resource.


hasChanged

public boolean hasChanged()
checks whether the resource is modified since the last setObject() call.


equals

public boolean equals(java.lang.Object object)
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

relativeResource

public AWResource relativeResource(java.lang.String relativePath,
                                   AWResourceManager resourceManager)
Try to find another resource at location relative to this one


canCacheUrl

public boolean canCacheUrl()


AribaWeb User Interface Development Framework
Copyright © 2000-2014 Ariba, Inc. All Rights Reserved.