Constants For http

This commit is contained in:
MaxKey
2021-03-15 11:02:25 +08:00
parent bdd8919bf2
commit 4e13c96961
8 changed files with 18 additions and 18 deletions

View File

@@ -31,7 +31,7 @@ public class HttpResponseAdapter {
HttpServletResponse response,
String format) {
if(format == null || format.equalsIgnoreCase("") || format.equalsIgnoreCase(ResponseConstants.FORMAT_TYPE.XML)) {
if(format == null || format.equalsIgnoreCase("") || format.equalsIgnoreCase(HttpResponseConstants.FORMAT_TYPE.XML)) {
response.setContentType(ContentType.APPLICATION_XML_UTF8);
}else {
response.setContentType(ContentType.APPLICATION_JSON_UTF8);

View File

@@ -17,7 +17,7 @@
package org.maxkey.web;
public class ResponseConstants {
public class HttpResponseConstants {
public static final class FORMAT_TYPE {
/**