org.w3c.mwi.mobileok.basic
Class CachingTest

java.lang.Object
  extended by org.w3c.mwi.mobileok.basic.AbstractTestImplementation
      extended by org.w3c.mwi.mobileok.basic.AbstractXSLTTestImplementation
          extended by org.w3c.mwi.mobileok.basic.CachingTest
All Implemented Interfaces:
TestImplementation

public final class CachingTest
extends AbstractXSLTTestImplementation

Implements the CACHING mobileOK test.

Test name: TestType.CACHING.

The test is linked to the CachingTest.xsl stylesheet and extends AbstractXSLTTestImplementation.

Version:
$Revision: 1.1 $
Author:
The W3C mobileOK Checker Task Force

Field Summary
private static java.util.Collection<java.lang.String> CANONICAL_CACHE_CONTROL_VALUES
           
private static java.text.DateFormat[] RFC_2616_DATE_FORMATS
           
 
Constructor Summary
CachingTest()
           
 
Method Summary
static boolean checkConsistentNewRequest(java.lang.String uriString, java.lang.String newRequestHeader, java.lang.String originalHeader, java.lang.String testValue)
           
 java.lang.String getTestType()
           
static boolean isCanonicalCacheControlValue(java.lang.String value)
           
static boolean isCanonicalDateValue(java.lang.String value)
           
static boolean isCanonicalEtagValue(java.lang.String value)
           
 
Methods inherited from class org.w3c.mwi.mobileok.basic.AbstractXSLTTestImplementation
runTest
 
Methods inherited from class org.w3c.mwi.mobileok.basic.AbstractTestImplementation
convertToTestResult, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CANONICAL_CACHE_CONTROL_VALUES

private static final java.util.Collection<java.lang.String> CANONICAL_CACHE_CONTROL_VALUES

RFC_2616_DATE_FORMATS

private static final java.text.DateFormat[] RFC_2616_DATE_FORMATS
Constructor Detail

CachingTest

public CachingTest()
Method Detail

getTestType

public java.lang.String getTestType()

isCanonicalCacheControlValue

public static boolean isCanonicalCacheControlValue(java.lang.String value)

isCanonicalEtagValue

public static boolean isCanonicalEtagValue(java.lang.String value)

isCanonicalDateValue

public static boolean isCanonicalDateValue(java.lang.String value)

checkConsistentNewRequest

public static boolean checkConsistentNewRequest(java.lang.String uriString,
                                                java.lang.String newRequestHeader,
                                                java.lang.String originalHeader,
                                                java.lang.String testValue)
                                         throws TestException
Throws:
TestException