mirror of
https://gitee.com/dromara/MaxKey.git
synced 2026-05-15 21:02:09 +08:00
Constants For http
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
package org.maxkey.web;
|
||||
|
||||
public class ResponseConstants {
|
||||
public class HttpResponseConstants {
|
||||
|
||||
public static final class FORMAT_TYPE {
|
||||
/**
|
||||
Reference in New Issue
Block a user