![JAR search and dependency download from the Maven repository](/logo.png)
com.expanset.jersey.caching.ClientCacheMaxAge Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jersey-contrib Show documentation
Show all versions of jersey-contrib Show documentation
Features for static handling, securing etc
The newest version!
package com.expanset.jersey.caching;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.util.concurrent.TimeUnit;
/**
* The annotation for resource methods adding the HTTP header Cache-Control to the response.
* Value constructed basing on annotation properties.
*/
@Target({ElementType.TYPE, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
public @interface ClientCacheMaxAge {
/**
* @return Duration of storage in the browser cache.
*/
long time();
/**
* @return Type of temporary period.
*/
TimeUnit unit();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy