* @throws HttpException
*/
public static HttpRequest build(HttpType type) throws HttpRequestException {
if (type == null) {
return new HttpJakarta();
}
switch (type) {
case JAVA:
return new HttpJava();
case JAKARTA:
return new HttpJakarta();
default:
throw new HttpRequestException("This type of request not exist");
}
}