Internal Redirect

import java.net.URL; import java.net.MalformedURLException; import org.w3c.jigsaw.http.httpd; import org.w3c.jigsaw.http.Reply; import org.w3c.jigsaw.http.Request; import org.w3c.tools.resources.ProtocolException; import org.w3c.tools.resources.ResourceException; public Reply get(Request request) throws ProtocolException, ResourceException { httpd server = (httpd) getServer(); try { request.setURL( new URL(server.getURL(), "/html") ); } catch (MalformedURLException ex) { //error } return (Reply)server.perform(request); }