組み込みの Jetty アプリケーションで Jersey を使用しています。私はそのようなリダイレクトを持っています:
URI uri = URI.create(url);
return Response.seeOther(uri).build();
seeOther はそのようなものです:
public static ResponseBuilder seeOther(URI location) {
ResponseBuilder b = status(Status.SEE_OTHER).location(location);
return b;
}
ただし、そのリダイレクトには 303 コードもあります。場所を明示的に設定して 200 OK を渡すと、リダイレクトされません。
ステータスが 200 OK のときにページをリダイレクトするにはどうすればよいですか?