Class MediaRedirect

  • All Implemented Interfaces:
    Serializable

    public final class MediaRedirect
    extends MediaPath
    Specifies a http redirect (moved permanently) to a Media.

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

     static final Media picture = new Media(OPTIONAL);
     
    and this media is renamed to image:
     static final Media image = new Media(OPTIONAL);
     
    then old urls created by picture can be supported with an additional:
     static final MediaRedirect picture = new MediaRedirect(image);
     
    Author:
    Ralf Wiebicke
    See Also:
    Serialized Form