org.jboss.resteasy.plugins.providers.html

## Class Redirect

- java.lang.Object
- - org.jboss.resteasy.plugins.providers.html.Redirect

- All Implemented Interfaces:
    Renderable

      public class Redirect
      extends Object
      implements Renderable

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `Redirect(String path)`
    `Redirect(URI path)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `URI` | `getPath()`
    `void` | `render(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)` Called to do the actual work of rendering a view.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### Redirect

          public Redirect(URI path)

    - #### Redirect

          public Redirect(String path)

      Parameters:
        `path` - must be a valid URI

  - ### Method Detail

    - #### getPath

          public URI getPath()

    - #### render

          public void render(javax.servlet.http.HttpServletRequest request,
                    javax.servlet.http.HttpServletResponse response)
                      throws IOException,
                             javax.servlet.ServletException,
                             WebApplicationException

      Description copied from interface: `Renderable`
      Called to do the actual work of rendering a view. Note that while ServletException can be thrown, WebApplicationException is preferred.
      Specified by:
        `render` in interface `Renderable`
      Throws:
        `IOException`
        `javax.servlet.ServletException`
        `WebApplicationException`

Copyright © 2014. All Rights Reserved.