|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.jersey.api.client.Statuses
public final class Statuses
Factory for producing custom JAX-RS response status type
instances.
Method Summary | |
---|---|
static Response.StatusType |
from(int code)
Create a new status type from the given code. |
static Response.StatusType |
from(int code,
java.lang.String reason)
Creates a new custom status type initialized from the
status code and reason phrase. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Response.StatusType from(int code)
status type
from the given code. Status type if firstly
searched in Response.Status
and if none is found, then a custom one is created and
initialized with status code (with empty reason phrase).
code
- Status code.
public static Response.StatusType from(int code, java.lang.String reason)
status type
initialized from the
status code and reason phrase.
code
- Status code.reason
- Reason phrase.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |