org.jclouds.openstack.filters
Class AddTimestampQuery

java.lang.Object
  extended by org.jclouds.openstack.filters.AddTimestampQuery
All Implemented Interfaces:
org.jclouds.http.HttpRequestFilter

@Singleton
public class AddTimestampQuery
extends Object
implements org.jclouds.http.HttpRequestFilter

Adds a timestamp to the query line so that cache is invalidated.

Author:
Mike Mayo

Constructor Summary
AddTimestampQuery(com.google.common.base.Supplier<Date> dateProvider, javax.inject.Provider<javax.ws.rs.core.UriBuilder> builder)
           
 
Method Summary
 org.jclouds.http.HttpRequest filter(org.jclouds.http.HttpRequest request)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AddTimestampQuery

@Inject
public AddTimestampQuery(com.google.common.base.Supplier<Date> dateProvider,
                                javax.inject.Provider<javax.ws.rs.core.UriBuilder> builder)
Method Detail

filter

public org.jclouds.http.HttpRequest filter(org.jclouds.http.HttpRequest request)
                                    throws org.jclouds.http.HttpException
Specified by:
filter in interface org.jclouds.http.HttpRequestFilter
Throws:
org.jclouds.http.HttpException


Copyright © 2009-2012 jclouds. All Rights Reserved.