{"id":11,"date":"2009-07-17T17:44:04","date_gmt":"2009-07-17T16:44:04","guid":{"rendered":"http:\/\/www.flamingpenguin.co.uk\/blog\/?p=11"},"modified":"2009-08-11T15:23:10","modified_gmt":"2009-08-11T14:23:10","slug":"following-redirects-in-jersey-rest-client","status":"publish","type":"post","link":"https:\/\/www.flamingpenguin.co.uk\/blog\/2009\/07\/17\/following-redirects-in-jersey-rest-client\/","title":{"rendered":"Following Redirects in Jersey REST Client"},"content":{"rendered":"<p>There is a method in com.sun.jersey.api.client.Client that causes the Client to follow any redirections:<\/p>\n<pre lang=\"java\">\r\n \/**\r\n  * Set if redirection should be performed or not.\r\n  *\r\n  * This method is the functional equivalent to setting the property\r\n  * {@link ClientConfig#PROPERTY_FOLLOW_REDIRECTS} on the property bag\r\n  * returned from {@link #getProperties}\r\n  *\r\n  * @param redirect if true then the client will automatically redirect\r\n  *        to the URI declared in 3xx responses.\r\n  *\/\r\n void setFollowRedirects(Boolean redirect)\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>There is a method in com.sun.jersey.api.client.Client that causes the Client to follow any redirections: \/** * Set if redirection should be performed or not. * * This method is the functional equivalent to setting the property * {@link ClientConfig#PROPERTY_FOLLOW_REDIRECTS} on &hellip; <a href=\"https:\/\/www.flamingpenguin.co.uk\/blog\/2009\/07\/17\/following-redirects-in-jersey-rest-client\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[37,15,16,9],"class_list":["post-11","post","type-post","status-publish","format-standard","hentry","category-java","tag-java","tag-jax-rs","tag-jee","tag-jersey"],"_links":{"self":[{"href":"https:\/\/www.flamingpenguin.co.uk\/blog\/wp-json\/wp\/v2\/posts\/11","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.flamingpenguin.co.uk\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.flamingpenguin.co.uk\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.flamingpenguin.co.uk\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.flamingpenguin.co.uk\/blog\/wp-json\/wp\/v2\/comments?post=11"}],"version-history":[{"count":0,"href":"https:\/\/www.flamingpenguin.co.uk\/blog\/wp-json\/wp\/v2\/posts\/11\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.flamingpenguin.co.uk\/blog\/wp-json\/wp\/v2\/media?parent=11"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.flamingpenguin.co.uk\/blog\/wp-json\/wp\/v2\/categories?post=11"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.flamingpenguin.co.uk\/blog\/wp-json\/wp\/v2\/tags?post=11"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}