users@jersey.java.net

Re: [Jersey] Re: Response, Status & Family

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Mon, 26 Jan 2009 18:21:35 +0100

Hi,

Markus logged a related issue on JAX-RS proposing a solution on how to
improve this area in general, maybe you want to add your opinion to
the issue:

https://jsr311.dev.java.net/issues/show_bug.cgi?id=68

Paul.

On Jan 26, 2009, at 4:50 PM, amsmota_at_gmail.com wrote:

> AAA
>
> if (Response.Status.fromStatusCode(response.getStatus).getFamily() !
> = Response.Status.Family.SUCCESSFUL) {
>
> but why not write simple things like
>
> if response.getStatusFamily() ?
>
>
>
> On Jan 26, 2009 3:41pm, amsmota_at_gmail.com wrote:
> > Maybe I'm not seeing things as they are, but since there is all
> these classes/enumerations, I was hoping to write something like this:
> >
> > if (response.getStatus().getFamily() ==
> Response.Status.Family.SUCCESSFUL) {
> >
> >
> > So, what am I'm looking wrong?
> >
> >
> > _______________________________________________
> >
> > Melhores cumprimentos / Beir beannacht / Best regards
> >
> > António Manuel dos Santos Mota
> >
> > mailto:amsmota_at_gmail.com
> > mailto:amsmota_at_ireland.com
> > msn:antoniomsmota_at_hotmail.com
> > profile:http://www.linkedin.com/in/amsmota
> > _______________________________________________