org.openprivacy.reptile.extensions
Class ProxyFunctions

java.lang.Object
  |
  +--org.openprivacy.reptile.extensions.ProxyFunctions

public class ProxyFunctions
extends java.lang.Object

Misc util functions for obtaining information from the panther proxy.

Version:
$Id: ProxyFunctions.java,v 1.11 2002/02/19 01:33:46 burton Exp $
Author:
Kevin A. Burton

Constructor Summary
ProxyFunctions()
           
 
Method Summary
 boolean contains(java.lang.String location)
           
 java.lang.String file(org.apache.xalan.extensions.XSLProcessorContext context, org.apache.xalan.templates.ElemExtensionCall elem)
          Get the location of a file via it's location.
static java.lang.String getDateFormated(long difference)
          Get a formated string representing the difference in time.
 java.lang.String getFileLocation(java.lang.String location)
          Return the fileLocation in the cache that the given URL is found or "" if it isn't in the cache.
 java.lang.String getResourceLocation(java.lang.String resource)
          Get the URL of a specified resource.
 java.lang.String lastModified(org.apache.xalan.extensions.XSLProcessorContext context, org.apache.xalan.templates.ElemExtensionCall elem)
           
 java.lang.String nextUpdate(org.apache.xalan.extensions.XSLProcessorContext context, org.apache.xalan.templates.ElemExtensionCall elem)
          Return a string describing when the next update will happen.
 boolean supports(java.lang.String location)
           
 void update(java.lang.String location)
           
 java.lang.String updateInterval(org.apache.xalan.extensions.XSLProcessorContext context, org.apache.xalan.templates.ElemExtensionCall elem)
          Return a string describing when the next update will happen.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProxyFunctions

public ProxyFunctions()
Method Detail

contains

public boolean contains(java.lang.String location)
See Also:
Proxy.contains(talon.util.net.URI)

supports

public boolean supports(java.lang.String location)
See Also:
Proxy.supports(talon.util.net.URI)

update

public void update(java.lang.String location)
See Also:
Proxy.update(java.lang.String)

getFileLocation

public java.lang.String getFileLocation(java.lang.String location)
Return the fileLocation in the cache that the given URL is found or "" if it isn't in the cache.

See Also:
ProxyEntry.getFileLocation()

getResourceLocation

public java.lang.String getResourceLocation(java.lang.String resource)
Get the URL of a specified resource.


file

public java.lang.String file(org.apache.xalan.extensions.XSLProcessorContext context,
                             org.apache.xalan.templates.ElemExtensionCall elem)
Get the location of a file via it's location.


lastModified

public java.lang.String lastModified(org.apache.xalan.extensions.XSLProcessorContext context,
                                     org.apache.xalan.templates.ElemExtensionCall elem)

nextUpdate

public java.lang.String nextUpdate(org.apache.xalan.extensions.XSLProcessorContext context,
                                   org.apache.xalan.templates.ElemExtensionCall elem)
Return a string describing when the next update will happen.


updateInterval

public java.lang.String updateInterval(org.apache.xalan.extensions.XSLProcessorContext context,
                                       org.apache.xalan.templates.ElemExtensionCall elem)
Return a string describing when the next update will happen.


getDateFormated

public static java.lang.String getDateFormated(long difference)
Get a formated string representing the difference in time. Difference should be in seconds.