org.cruxframework.crux.core.shared.rest.annotation
Annotation Type GET


@Target(value=METHOD)
@Retention(value=RUNTIME)
@HttpMethod(value="GET")
public @interface GET

Indicates that the annotated method responds to HTTP GET requests

See Also:
HttpMethod

Optional Element Summary
 GET.CacheControl cacheControl
          The type of cache that can be used to store the response.
 int cacheTime
          The number of seconds, starting from current time, that the response can be maintained in client caches
 boolean mustRevalidate
          When the must-revalidate directive is present in a response received by a cache, that cache MUST NOT use the entry after it becomes stale to respond to a subsequent request without first revalidating it with the origin server.
 boolean noTransform
          This implies that the cache or proxy MUST NOT change any aspect of the entity-body that is specified by these headers, including the value of the entity-body itself.
 boolean proxyRevalidate
          The proxy-revalidate directive has the same meaning as the must-revalidate directive, except that it does not apply to non-shared user agent caches.
 

cacheTime

public abstract int cacheTime
The number of seconds, starting from current time, that the response can be maintained in client caches

Returns:
Default:
-1

noTransform

public abstract boolean noTransform
This implies that the cache or proxy MUST NOT change any aspect of the entity-body that is specified by these headers, including the value of the entity-body itself.

Returns:
Default:
false

mustRevalidate

public abstract boolean mustRevalidate
When the must-revalidate directive is present in a response received by a cache, that cache MUST NOT use the entry after it becomes stale to respond to a subsequent request without first revalidating it with the origin server.

Default:
false

proxyRevalidate

public abstract boolean proxyRevalidate
The proxy-revalidate directive has the same meaning as the must-revalidate directive, except that it does not apply to non-shared user agent caches.

Returns:
Default:
false

cacheControl

public abstract GET.CacheControl cacheControl
The type of cache that can be used to store the response. Private means that information must be used only for the client that received it (only one client). Public means that the information can be shared with other users (and stored by intermediary cache systems)

Returns:
Default:
org.cruxframework.crux.core.shared.rest.annotation.GET.CacheControl.PUBLIC


Copyright © 2014. All rights reserved.