use of com.gargoylesoftware.htmlunit.FormEncodingType in project spring-framework-debug by Joker-5.
the class HtmlUnitRequestBuilder method contentType.
private void contentType(MockHttpServletRequest request) {
String contentType = header("Content-Type");
if (contentType == null) {
FormEncodingType encodingType = this.webRequest.getEncodingType();
if (encodingType != null) {
contentType = encodingType.getName();
}
}
request.setContentType(contentType != null ? contentType : MediaType.ALL_VALUE);
}
use of com.gargoylesoftware.htmlunit.FormEncodingType in project spring-framework-5.2.9.RELEASE by somepeopleHavingDream.
the class HtmlUnitRequestBuilder method contentType.
private void contentType(MockHttpServletRequest request) {
String contentType = header("Content-Type");
if (contentType == null) {
FormEncodingType encodingType = this.webRequest.getEncodingType();
if (encodingType != null) {
contentType = encodingType.getName();
}
}
request.setContentType(contentType != null ? contentType : MediaType.ALL_VALUE);
}
use of com.gargoylesoftware.htmlunit.FormEncodingType in project spring-framework by bluecrow1986.
the class HtmlUnitRequestBuilder method contentType.
private void contentType(MockHttpServletRequest request) {
String contentType = header("Content-Type");
if (contentType == null) {
FormEncodingType encodingType = this.webRequest.getEncodingType();
if (encodingType != null) {
contentType = encodingType.getName();
}
}
request.setContentType(contentType != null ? contentType : MediaType.ALL_VALUE);
}
use of com.gargoylesoftware.htmlunit.FormEncodingType in project spring-framework by spring-projects.
the class HtmlUnitRequestBuilder method contentType.
private void contentType(MockHttpServletRequest request) {
String contentType = header("Content-Type");
if (contentType == null) {
FormEncodingType encodingType = this.webRequest.getEncodingType();
if (encodingType != null) {
contentType = encodingType.getName();
}
}
request.setContentType(contentType != null ? contentType : MediaType.ALL_VALUE);
}
use of com.gargoylesoftware.htmlunit.FormEncodingType in project springframework-source-5.1.x by wb02125055.
the class HtmlUnitRequestBuilder method contentType.
private void contentType(MockHttpServletRequest request) {
String contentType = header("Content-Type");
if (contentType == null) {
FormEncodingType encodingType = this.webRequest.getEncodingType();
if (encodingType != null) {
contentType = encodingType.getName();
}
}
request.setContentType(contentType != null ? contentType : MediaType.ALL_VALUE);
}
Aggregations