m.c.m.proxyma.plugins.caches
Class NullCacheProvider

java.lang.Object
  extended by m.c.m.proxyma.plugins.caches.NullCacheProvider
All Implemented Interfaces:
CacheProvider

public class NullCacheProvider
extends java.lang.Object
implements CacheProvider

This is a null implementation of the interface CacheProvider. It doesn't stores anything and never returns anything.
IMPORTANT: The cache plugn is used 2 times into the engine:

NOTE: this software is released under GPL License. See the LICENSE of this distribution for more informations.

Version:
$Id: NullCacheProvider.java 177 2010-07-03 09:08:10Z marcolinuz $
Author:
Marco Casavecchia Morganti (marcolinuz) [marcolinuz-at-gmail.com]

Constructor Summary
NullCacheProvider(ProxymaContext context)
          The default constructor for all the plugins.
 
Method Summary
 java.util.Collection<java.lang.String> getCachedURIs()
          This method does nothing.
 java.lang.String getHtmlDescription()
          Returns a short description of the cache provider formatted for html output.
 java.lang.String getName()
          Returns the name of the cache provider (only a name that characterize the plugin, not the class name..) that could be used into the interfaces as cache name.
 boolean getResponseData(ProxymaResource aResource)
          This method does nothing.
 java.lang.String getStatistics()
          This method does nothing.
 void storeResponseDataIfCacheable(ProxymaResource aResource)
          This method does nothing.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullCacheProvider

public NullCacheProvider(ProxymaContext context)
The default constructor for all the plugins.

Parameters:
context - the context where the plugin is instantiated
Method Detail

storeResponseDataIfCacheable

public void storeResponseDataIfCacheable(ProxymaResource aResource)
This method does nothing.

Specified by:
storeResponseDataIfCacheable in interface CacheProvider
Parameters:
aResource -

getResponseData

public boolean getResponseData(ProxymaResource aResource)
This method does nothing.

Specified by:
getResponseData in interface CacheProvider
Parameters:
aResource - a ProxymaResource
Returns:
always false

getCachedURIs

public java.util.Collection<java.lang.String> getCachedURIs()
This method does nothing.

Specified by:
getCachedURIs in interface CacheProvider
Returns:
always an empty Collection.

getStatistics

public java.lang.String getStatistics()
This method does nothing.

Specified by:
getStatistics in interface CacheProvider
Returns:
always the same message

getName

public java.lang.String getName()
Description copied from interface: CacheProvider
Returns the name of the cache provider (only a name that characterize the plugin, not the class name..) that could be used into the interfaces as cache name.

Specified by:
getName in interface CacheProvider
Returns:
the cache name.

getHtmlDescription

public java.lang.String getHtmlDescription()
Returns a short description of the cache provider formatted for html output.

Specified by:
getHtmlDescription in interface CacheProvider
Returns:
the description of the cache provider


Copyright © 2010. All Rights Reserved.