Package com.exedio.cope.pattern
Annotation Type RedirectFrom
-
@Target(FIELD) @Retention(RUNTIME) public @interface RedirectFrom
Specifies a http redirect (moved permanently) to aMediaPath
.Common usage is to maintain old urls after renaming a
MediaPath
. For instance, if there is a mediapicture
:static final Media picture = new Media();
and this media is renamed toimage
, then old urls created bypicture
can be supported like this:@RedirectFrom("picture") static final Media image = new Media();
- Author:
- Ralf Wiebicke
-
-
Element Detail
-
value
String[] value
-
-