package net.hillsdon.svnwiki.web.dispatching;

import java.io.IOException;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * Communicates a redirect.
 * 
 * Exception as that ought to be the effect on control-flow.
 * 
 * @author mth
 */
public class RedirectView implements View {

  private static final long serialVersionUID = 1L;
  private final String _url;

  public RedirectView(final String url) {
    _url = url;
  }
  
  public String getURL() {
    return _url;
  }

  public void render(final HttpServletRequest request, final HttpServletResponse response) throws IOException {
    response.sendRedirect(_url);
  }
  
}

package net.hillsdon.svnwiki.web.dispatching;

import java.io.IOException;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * Communicates a redirect.
 * 
 * Exception as that ought to be the effect on control-flow.
 * 
 * @author mth
 */
public class RedirectView implements View {

  private final String _url;

  public RedirectView(final String url) {
    _url = url;
  }
  
  public String getURL() {
    return _url;
  }

  public void render(final HttpServletRequest request, final HttpServletResponse response) throws IOException {
    response.sendRedirect(_url);
  }
  
}

Remove svuid, this class was an exception but isn't anymore.
Remove svuid, this class was an exception but isn't anymore.

