com.hp.hpl.deli
Class CachedProfile

java.lang.Object
  extended bycom.hp.hpl.deli.CachedProfile

class CachedProfile
extends java.lang.Object

This class wraps the profile class so it can be cached. It does this by including information about the time and date the profile was retrieved from the repository, along with the URL of the profile.

Author:
Mark H. Butler (mark-h.butler@hp.com)

Field Summary
private  java.util.Date dateAccquired
           
private  java.lang.String profileResource
           
private  Profile theProfile
           
 
Constructor Summary
(package private) CachedProfile()
           
 
Method Summary
protected  Profile get()
          Retrieve the cached profile object.
protected  boolean set(java.lang.String _profileResource)
          Retrieve a profile from a resource such as a URL or a file, convert it from RDF to the profile data structure and cache it making a note of the time and date.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

theProfile

private Profile theProfile

dateAccquired

private java.util.Date dateAccquired

profileResource

private java.lang.String profileResource
Constructor Detail

CachedProfile

CachedProfile()
Method Detail

set

protected boolean set(java.lang.String _profileResource)
               throws java.lang.Exception
Retrieve a profile from a resource such as a URL or a file, convert it from RDF to the profile data structure and cache it making a note of the time and date.

Parameters:
_profileResource - The resource of the profile.
Returns:
Whether the retrieval was successful or not.
Throws:
java.lang.Exception

get

protected Profile get()
               throws java.lang.Exception
Retrieve the cached profile object. return The cached profile.

Throws:
java.lang.Exception