src/HeadRequest.java
private String determineType(String i_Extension) {
		if(i_Extension.equals(HTML)) {
			return TYPE_HTML;
		} else if (i_Extension.equals(ICON)) {
			return TYPE_ICON;
		} else if (i_Extension.equals(JPG)) {
			return TYPE_IMAGE + JPG;
		} else if (i_Extension.equals(BMP)) {
			return TYPE_IMAGE + BMP;
		} else if (i_Extension.equals(GIF)) {
			return TYPE_IMAGE + GIF;
		} else if (i_Extension.equals(PNG)) {
			return TYPE_IMAGE + PNG;
		} else {
			return TYPE_OCTET;
		}
	}
/*
	 * Select the type of the request file according to the request
	 */
Select the type of the request file according to the request
Select the type of the request file according to the request
private String determineType(String i_Extension) {
		if(i_Extension.equals(HTML)) {
			return TYPE_HTML;
		} else if (i_Extension.equals(ICON)) {
			return TYPE_ICON;
		} else if (i_Extension.equals(JPG)) {
			return TYPE_IMAGE + JPG;
		} else if (i_Extension.equals(BMP)) {
			return TYPE_IMAGE + BMP;
		} else if (i_Extension.equals(GIF)) {
			return TYPE_IMAGE + GIF;
		} else if (i_Extension.equals(PNG)) {
			return TYPE_IMAGE + PNG;
		} else {
			return TYPE_OCTET;
		}
	}
private String determineType ( String i_Extension ) { if ( i_Extension . equals ( HTML ) ) { return TYPE_HTML ; } else if ( i_Extension . equals ( ICON ) ) { return TYPE_ICON ; } else if ( i_Extension . equals ( JPG ) ) { return TYPE_IMAGE + JPG ; } else if ( i_Extension . equals ( BMP ) ) { return TYPE_IMAGE + BMP ; } else if ( i_Extension . equals ( GIF ) ) { return TYPE_IMAGE + GIF ; } else if ( i_Extension . equals ( PNG ) ) { return TYPE_IMAGE + PNG ; } else { return TYPE_OCTET ; } }
Select the type of the request file according to the request
Select the type of the request file according to the request