Re: response.getStatusLine().getStatusCode() shorthand

2015-12-20 Thread Gary Gregory
OK, I just did the getCode() bit. Gary On Sat, Dec 19, 2015 at 9:18 AM, Oleg Kalnichevski wrote: > On Sat, 2015-12-19 at 09:08 -0800, Gary Gregory wrote: > > On Sat, Dec 19, 2015 at 9:04 AM, Oleg Kalnichevski > wrote: > > > > > On Sat, 2015-12-19 at 08:54 -0800, Gary Gregory wrote: > > > > Hi

Re: response.getStatusLine().getStatusCode() shorthand

2015-12-19 Thread Oleg Kalnichevski
On Sat, 2015-12-19 at 09:08 -0800, Gary Gregory wrote: > On Sat, Dec 19, 2015 at 9:04 AM, Oleg Kalnichevski wrote: > > > On Sat, 2015-12-19 at 08:54 -0800, Gary Gregory wrote: > > > Hi All, > > > > > > There are a lot of places where we say: > > > > > > response.getStatusLine().getStatusCode() >

Re: response.getStatusLine().getStatusCode() shorthand

2015-12-19 Thread Gary Gregory
On Sat, Dec 19, 2015 at 9:04 AM, Oleg Kalnichevski wrote: > On Sat, 2015-12-19 at 08:54 -0800, Gary Gregory wrote: > > Hi All, > > > > There are a lot of places where we say: > > > > response.getStatusLine().getStatusCode() > > > > Should we have a short cut > > > > response.getStatusCode() > > H

Re: response.getStatusLine().getStatusCode() shorthand

2015-12-19 Thread Oleg Kalnichevski
On Sat, 2015-12-19 at 08:54 -0800, Gary Gregory wrote: > Hi All, > > There are a lot of places where we say: > > response.getStatusLine().getStatusCode() > > Should we have a short cut > > response.getStatusCode() HttpResponse#getCode might do as well. By the way in HTTP/2 there is no longer

Re: response.getStatusLine().getStatusCode() shorthand

2015-12-19 Thread Gary Gregory
Hi All, There are a lot of places where we say: response.getStatusLine().getStatusCode() Should we have a short cut response.getStatusCode() ? In Core alone, there are 64 such instances. Gary On Sat, Dec 19, 2015 at 8:52 AM, Gary Gregory wrote: > Hi All, > > There are a lot of places wher

response.getStatusLine().getStatusCode() shorthand

2015-12-19 Thread Gary Gregory
Hi All, There are a lot of places where we say: -- E-Mail: garydgreg...@gmail.com | ggreg...@apache.org Java Persistence with Hibernate, Second Edition JUnit in Action, Second Edition Spring Batch in Action