PageMixer API - 3.1

jp.ne.dti.lares.foozy.pagemixer.page
Class PageEntry

java.lang.Object
  |
  +--jp.ne.dti.lares.foozy.pagemixer.page.PageEntry

public class PageEntry
extends java.lang.Object

Container consisting of content type and Producer.

Since:
PageMixer 3.0(as one in this package)

Constructor Summary
PageEntry(java.lang.String contentType, Producer producer, long lastModified)
          Costruct.
 
Method Summary
 java.lang.String getContentType()
          Get content type of page.
 java.lang.String getEncoding()
          Get encoding of page.
 long getLastAccess()
          Get last access timestamp of this page entry.
 long getLastModified()
          Get last modified timestamp of page resource.
 Producer getProducer()
          Get "Producer" for page.
 void updateLastAccess()
          Update last access timestamp of this page entry.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PageEntry

public PageEntry(java.lang.String contentType,
                 Producer producer,
                 long lastModified)
Costruct.
Parameters:
type - of page content
producer - of tokens for target page
lastModified - timestamp
Method Detail

getContentType

public java.lang.String getContentType()
Get content type of page.

getProducer

public Producer getProducer()
Get "Producer" for page.

getLastModified

public long getLastModified()
Get last modified timestamp of page resource.

This returns last modified timestamp of page resource (specified at consturction time), not of this page entry.

See Also:
getLastAccess()

getEncoding

public java.lang.String getEncoding()
Get encoding of page.

This returns parsing result of "charset" attribute in "Content-Type". This may be null.


updateLastAccess

public void updateLastAccess()
Update last access timestamp of this page entry.

This updates last access timestamp of this page entry, not of page resource.

See Also:
getLastModified()

getLastAccess

public long getLastAccess()
Get last access timestamp of this page entry.

This returns last access timestamp of this page entry, not of page resource.

See Also:
getLastModified()

PageMixer API - 3.1