RESTEASY-2292 JAX-RS client should support redirect / Jersey分析(四)

关于Response.seeOther()

使用jax-rs的resource进行redirect:

分析RESTEasy里面的相关实现

$ pwd
/Users/weli/works/resteasy
$
$ grep -rl 'Response.seeOther' *
testsuite/integration-tests/src/test/java/org/jboss/resteasy/test/client/resource/ClientResponseRedirectResource.java
testsuite/integration-tests/src/test/java/org/jboss/resteasy/test/client/resource/RedirectResource.java

RedirectResource

ClientResponseRedirectResource

使用到上面resources的测试

使用RedirectResource的测试

使用ClientResponseRedirectResource的测试

下篇文章分析具体的测试。

目前的感觉是,不需要添加新功能。

My Github Page: https://github.com/liweinan

Powered by Jekyll and Theme by solid

If you have any question want to ask or find bugs regarding with my blog posts, please report it here:
https://github.com/liweinan/liweinan.github.io/issues