All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jboss.resteasy.client.cache.BrowserCache Maven / Gradle / Ivy

There is a newer version: 1.1.1
Show newest version
package org.jboss.resteasy.client.cache;

import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.MultivaluedMap;
import java.io.Serializable;

/**
 * @author Bill Burke
 * @version $Revision: 1 $
 * 
 * @deprecated Caching in the Resteasy client framework in resteasy-jaxrs is replaced by 
 * caching in the JAX-RS 2.0 compliant resteasy-client module.
 * 
 * @see resteasy-client
 * @see org.jboss.resteasy.client.jaxrs.cache.BrowserCache
 */
@Deprecated
public interface BrowserCache
{
   public static class Header implements Serializable
   {
      private static final long serialVersionUID = 4145981086454860081L;

      private String name;
      private String value;

      public Header(String name, String value)
      {
         this.name = name;
         this.value = value;
      }

      public String getName()
      {
         return name;
      }

      public String getValue()
      {
         return value;
      }
   }

   public static interface Entry
   {
      MultivaluedMap getHeaders();

      boolean expired();

      Header[] getValidationHeaders();

      byte[] getCached();

      MediaType getMediaType();
   }

   Entry getAny(String key);

   Entry get(String key, MediaType accept);

   Entry put(String key, MediaType mediaType, MultivaluedMap headers, byte[] cached, int expires, String etag, String lastModified);

   Entry remove(String key, MediaType type);

   void clear();

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy