Annotation Type PreventUrlGuessing


@Target({FIELD,TYPE}) @Inherited @Retention(RUNTIME) public @interface PreventUrlGuessing
Enables url guessing prevention for any MediaPath.

This annotation is essentially applicable to features (@Target(FIELD)) that are media pathes only. When applying it to other features, there is no effect at all. When applying it to types (@Target(TYPE), it is automatically applied to all features of that type.

Additionally controls default implementation of MediaServlet.isCacheControlPrivate.

See Also: