/** * This is used to determine if the content type is a form POST * of type application/x-www-form-urlencoded. Such a type is * used when a HTML form is used to post data to the server. * * @param type the type to determine if its a form post * * @return this returns true if content type is a form post */ private boolean isFormPost(ContentType type) { String primary = type.getPrimary(); String secondary = type.getSecondary(); if(!primary.equals(APPLICATION)) { return false; } return secondary.equals(URL_ENCODED); } }
/** * This is used to determine if the content type is a form POST * of type application/x-www-form-urlencoded. Such a type is * used when a HTML form is used to post data to the server. * * @param type the type to determine if its a form post * * @return this returns true if content type is a form post */ private boolean isFormPost(ContentType type) { String primary = type.getPrimary(); String secondary = type.getSecondary(); if(!primary.equals(APPLICATION)) { return false; } return secondary.equals(URL_ENCODED); } }
/** * This is used to determine if the content type is a form POST * of type application/x-www-form-urlencoded. Such a type is * used when a HTML form is used to post data to the server. * * @param type the type to determine if its a form post * * @return this returns true if content type is a form post */ private boolean isFormPost(ContentType type) { String primary = type.getPrimary(); String secondary = type.getSecondary(); if(!primary.equals(APPLICATION)) { return false; } return secondary.equals(URL_ENCODED); } }