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
Method Summary |
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 |
Redirect
public Redirect(URI path)
Redirect
public Redirect(String path)
- Parameters:
path
- must be a valid URI
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 © 2012. All Rights Reserved.