users@jersey.java.net

Re: Response, Status & Family

From: <amsmota_at_gmail.com>
Date: Mon, 26 Jan 2009 15:50:49 +0000

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
> _______________________________________________