com.kpro.dataobjects
Class Context

java.lang.Object
  extended by com.kpro.dataobjects.Context

public class Context
extends java.lang.Object

Holds domain (from p3p), time, and other contextual information that applies to an entire p3p policy.

Author:
ngerstle, iernie

Field Summary
private  java.util.Date accessTime
           
private  java.util.Date creationTime
           
private  java.lang.String domain
           
private  java.util.Date expiryDate
           
 
Constructor Summary
Context(java.util.Date accessTime, java.util.Date creationTime, java.lang.String domain)
           
 
Method Summary
 java.util.Date getAccessTime()
          Gets the date of when the object was last accessed
 java.util.Date getCreationTime()
          Gets the date of when the object was created
private  java.util.Date getDefaultExpiryDate()
          Gets the default expiration date for a policy, which is 24 hours
 java.lang.String getDomain()
          Gets the specific domain for this context
 java.util.Date getExpiryDate()
          Gets the date of when the object is to expire
 void setAccessTime(java.util.Date accessTime)
          Sets the date of when the object was last accessed
 void setCreationTime(java.util.Date creationTime)
          Sets the date of when the object was created
 void setDomain(java.lang.String domain)
          Sets the specific domain for this contact
 void setExpiryDate(java.util.Date expiryDate)
          Sets the date of when the object is to expire
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

accessTime

private java.util.Date accessTime

creationTime

private java.util.Date creationTime

domain

private java.lang.String domain

expiryDate

private java.util.Date expiryDate
Constructor Detail

Context

public Context(java.util.Date accessTime,
               java.util.Date creationTime,
               java.lang.String domain)
Method Detail

getAccessTime

public java.util.Date getAccessTime()
Gets the date of when the object was last accessed

Returns:
Date

setAccessTime

public void setAccessTime(java.util.Date accessTime)
Sets the date of when the object was last accessed

Parameters:
Date - accessTime

getCreationTime

public java.util.Date getCreationTime()
Gets the date of when the object was created

Returns:
Date

setCreationTime

public void setCreationTime(java.util.Date creationTime)
Sets the date of when the object was created

Parameters:
Date - creationTime

getExpiryDate

public java.util.Date getExpiryDate()
Gets the date of when the object is to expire

Returns:
Date

setExpiryDate

public void setExpiryDate(java.util.Date expiryDate)
Sets the date of when the object is to expire

Parameters:
Date - expiryDate

getDomain

public java.lang.String getDomain()
Gets the specific domain for this context

Returns:
String

setDomain

public void setDomain(java.lang.String domain)
Sets the specific domain for this contact

Parameters:
String - domain

getDefaultExpiryDate

private java.util.Date getDefaultExpiryDate()
Gets the default expiration date for a policy, which is 24 hours

Returns:
Date