Annotation Type RedirectFrom


@Target(FIELD) @Retention(RUNTIME) public @interface RedirectFrom
Specifies a http redirect (moved permanently) to a MediaPath.

Common usage is to maintain old urls after renaming a MediaPath. For instance, if there is a media picture:

 static final Media picture = new Media();
 
and this media is renamed to image, then old urls created by picture can be supported like this:
 @RedirectFrom("picture")
 static final Media image = new Media();
 
Author:
Ralf Wiebicke
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
     
  • Element Details