Annotation Type RedirectTo


  • @Inherited
    @Documented
    @Target(METHOD)
    @Retention(RUNTIME)
    public @interface RedirectTo
    Annotation to specify to which resource, out of the current component, the control will be passed once the treatment of the annotated method succeeded. For example: @RedirectToInternal("Ralmanach/Main") will redirect the web navigation to the home page of the Almanach component.

    Author:
    Yohann Chastagnier
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      String value
      The complete destination path.
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      RedirectToType type
      Indicates if the type of the redirection.
    • Element Detail

      • value

        String value
        The complete destination path.
        Returns:
      • type

        RedirectToType type
        Indicates if the type of the redirection.
        Returns:
        the type of the redirection.
        See Also:
        RedirectToType
        Default:
        org.silverpeas.core.web.mvc.webcomponent.annotation.RedirectToType.NORMAL