public static Response.ResponseBuilder status(Response.StatusType status) { if (status == null) { throw new IllegalArgumentException(); } return ResponseBuilder.newInstance().status(status); }
public static Response.ResponseBuilder status(Response.Status status) { if (status == null) { throw new IllegalArgumentException(); } return ResponseBuilder.newInstance().status(status); }
public static Response.ResponseBuilder status(int status) { if (status < 100 || status > 599) { throw new IllegalArgumentException(); } return ResponseBuilder.newInstance().status(status); }
/** * Create a new ResponseBuilder with the supplied status. * * @param status the response status. * @return a new response builder. * @throws IllegalArgumentException if status is less than {@code 100} or greater * than {@code 599}. */ public static ResponseBuilder status(int status) { return ResponseBuilder.newInstance().status(status); }
/** * Create a new ResponseBuilder with the supplied status and reason phrase. * * @param status the response status. * @param reasonPhrase the reason phrase. * @return the updated response builder. * @throws IllegalArgumentException if status is less than {@code 100} or greater * than {@code 599}. * @since 2.1 */ public static ResponseBuilder status(int status, String reasonPhrase) { return ResponseBuilder.newInstance().status(status, reasonPhrase); }
/** * Create a new ResponseBuilder with the supplied status. * @param status the response status * @return a new ResponseBuilder * @throws IllegalArgumentException if status is less than 100 or greater * than 599. */ public static ResponseBuilder status(int status) { ResponseBuilder b = ResponseBuilder.newInstance(); b.status(status); return b; }
/** * Create a new ResponseBuilder with the supplied status. * @param status the response status * @return a new ResponseBuilder * @throws IllegalArgumentException if status is null */ public static ResponseBuilder status(StatusType status) { ResponseBuilder b = ResponseBuilder.newInstance(); b.status(status); return b; }
/** * Create a new ResponseBuilder with the supplied status. * @param status the response status * @return a new ResponseBuilder * @throws IllegalArgumentException if status is less than 100 or greater * than 599. */ public static ResponseBuilder status(int status) { ResponseBuilder b = ResponseBuilder.newInstance(); b.status(status); return b; }
/** * Create a new ResponseBuilder with the supplied status. * * @param status the response status. * @return a new response builder. * @throws IllegalArgumentException if status is less than {@code 100} or greater * than {@code 599}. */ public static ResponseBuilder status(int status) { return ResponseBuilder.newInstance().status(status); }
/** * Create a new ResponseBuilder with the supplied status. * * @param status the response status. * @return a new response builder. * @throws IllegalArgumentException if status is {@code null}. */ public static ResponseBuilder status(StatusType status) { return ResponseBuilder.newInstance().status(status); }
public static ResponseBuilder status(int status) { ResponseBuilder b = ResponseBuilder.newInstance(); b.status(status); return b; }
/** * Create a new ResponseBuilder with the supplied status. * * @param status the response status. * @return a new response builder. * @throws IllegalArgumentException if status is {@code null}. */ public static ResponseBuilder status(StatusType status) { return ResponseBuilder.newInstance().status(status); }
/** * Create a new ResponseBuilder with the supplied status. * * @param status the response status. * @return a new response builder. * @throws IllegalArgumentException if status is {@code null}. */ public static ResponseBuilder status(StatusType status) { return ResponseBuilder.newInstance().status(status); }
/** * Create a new ResponseBuilder with the supplied status. * * @param status the response status. * @return a new response builder. * @throws IllegalArgumentException if status is less than {@code 100} or greater * than {@code 599}. */ public static ResponseBuilder status(int status) { return ResponseBuilder.newInstance().status(status); }
/** * Create a new ResponseBuilder with the supplied status. * * @param status the response status. * @return a new response builder. * @throws IllegalArgumentException if status is less than {@code 100} or greater * than {@code 599}. */ public static ResponseBuilder status(int status) { return ResponseBuilder.newInstance().status(status); }
/** * Create a new ResponseBuilder with the supplied status. * * @param status the response status. * @return a new response builder. * @throws IllegalArgumentException if status is less than {@code 100} or greater * than {@code 599}. */ public static ResponseBuilder status(int status) { return ResponseBuilder.newInstance().status(status); }
/** * Create a new ResponseBuilder with the supplied status. * * @param status the response status. * @return a new response builder. * @throws IllegalArgumentException if status is {@code null}. */ public static ResponseBuilder status(StatusType status) { return ResponseBuilder.newInstance().status(status); }
/** * Create a new ResponseBuilder with the supplied status. * * @param status the response status. * @return a new response builder. * @throws IllegalArgumentException if status is less than {@code 100} or greater * than {@code 599}. */ public static ResponseBuilder status(int status) { return ResponseBuilder.newInstance().status(status); }
public static ResponseBuilder status(int status) { ResponseBuilder b = ResponseBuilder.newInstance(); b.status(status); return b; }
public static ResponseBuilder status(Status status) { ResponseBuilder b = ResponseBuilder.newInstance(); b.status(status); return b; }