Class RedirectAbsoluteXServletHandler

    • Constructor Detail

      • RedirectAbsoluteXServletHandler

        public RedirectAbsoluteXServletHandler​(@Nonnull
                                               com.helger.commons.url.ISimpleURL aTargetURL)
        Constructor.
        Parameters:
        aTargetURL - The URL to redirect to. Is interpreted as an absolute URL. May not be null.
    • Method Detail

      • getTargetURL

        @Nonnull
        @Nonempty
        public final com.helger.commons.url.ISimpleURL getTargetURL()
        Returns:
        The target URL as provided in the constructor. Never null.
        Since:
        9.3.1
      • handleRequest

        public void handleRequest​(@Nonnull
                                  com.helger.web.scope.IRequestWebScopeWithoutResponse aRequestScope,
                                  @Nonnull
                                  com.helger.servlet.response.UnifiedResponse aUnifiedResponse)
                           throws Exception
        Description copied from interface: IXServletSimpleHandler
        This is the main request handling method. Overwrite this method to fill your HTTP response.
        Specified by:
        handleRequest in interface IXServletSimpleHandler
        Parameters:
        aRequestScope - The request scope to use. There is no direct access to the HttpServletResponse. Everything must be handled with the unified response! Never null.
        aUnifiedResponse - The response object to be filled. Never null.
        Throws:
        Exception - In case of an error