ariba.ui.aribaweb.util
Class AWFileResource

java.lang.Object
  extended by ariba.ui.aribaweb.util.AWBaseObject
      extended by ariba.ui.aribaweb.util.AWResource
          extended by ariba.ui.aribaweb.util.AWFileResource
All Implemented Interfaces:
AWObject

public final class AWFileResource
extends AWResource


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
 java.lang.String _fullPath()
           
static long fileLastModified(java.io.File f)
          Lookup cached stat times We expect that this would only be called in RapidTurnaround mode (not in production).
 java.lang.String fullUrl()
          Returns the full, absolute URL of this resource as a URL object.
 java.io.InputStream inputStream()
          returns the input stream for this resource.
 long lastModified()
           
static void notifyNewRequest()
          Called when new request comes in.
 AWResource relativeResource(java.lang.String relativePath, AWResourceManager resourceManager)
          Try to find another resource at location relative to this one
 java.lang.String toString()
           
 java.lang.String url()
          returns the url.
 
Methods inherited from class ariba.ui.aribaweb.util.AWResource
canCacheUrl, equals, hasChanged, hashCode, name, object, relativePath, setObject
 
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

_fullPath

public java.lang.String _fullPath()

url

public java.lang.String url()
Description copied from class: AWResource
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".

Specified by:
url in class AWResource

fullUrl

public java.lang.String fullUrl()
Description copied from class: AWResource
Returns the full, absolute URL of this resource as a URL object.

Specified by:
fullUrl in class AWResource

lastModified

public long lastModified()
Specified by:
lastModified in class AWResource

inputStream

public java.io.InputStream inputStream()
Description copied from class: AWResource
returns the input stream for this resource.

Specified by:
inputStream in class AWResource

relativeResource

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

Overrides:
relativeResource in class AWResource

toString

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

notifyNewRequest

public static void notifyNewRequest()
Called when new request comes in. If we haven't invalidated our cache lately, then this is the trigger.


fileLastModified

public static long fileLastModified(java.io.File f)
Lookup cached stat times We expect that this would only be called in RapidTurnaround mode (not in production).

Parameters:
f - the file
Returns:
timestamp (possibly slightly out of date)


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