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 java.lang.Object
- implements Renderable
Method Summary |
java.net.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(java.net.URI path)
Redirect
public Redirect(java.lang.String path)
- Parameters:
path
- must be a valid URI
getPath
public java.net.URI getPath()
render
public void render(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.io.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:
java.io.IOException
javax.servlet.ServletException
WebApplicationException
Copyright © 2010. All Rights Reserved.