old mode 100644
new mode 100755
| | |
| | | package com.java110.utils.constant; |
| | | |
| | | import org.springframework.http.HttpMethod; |
| | | |
| | | /** |
| | | * 公共常量定义 |
| | | * Created by wuxw on 2016/12/28. |
| | |
| | | /** |
| | | * 映射 缓存常量 |
| | | */ |
| | | public final static String CACHE_PRIVILEGE = "PRIVILEGE"; |
| | | |
| | | /** |
| | | * 映射 databus |
| | | */ |
| | | public final static String CACHE_DATABUS = "DATABUS"; |
| | | |
| | | /** |
| | | * 映射 databus |
| | | */ |
| | | public final static String CACHE_BUSINESS_TABLE_HIS = "BUSINESS_TABLE_HIS"; |
| | | |
| | | |
| | | |
| | | /** |
| | | * 映射 缓存常量 |
| | | */ |
| | | public final static String CACHE_SERVICE_SQL = "SERVICE_SQL"; |
| | | |
| | | |
| | |
| | | public final static String INSTANCE_N = "N"; |
| | | |
| | | |
| | | public static final String APP_ID = "app-id"; |
| | | public static final String TRANSACTION_ID = "transaction-id"; |
| | | public static final String REQUEST_TIME = "req-time"; |
| | | public static final String USER_ID = "user-id"; |
| | | |
| | | public final static String HTTP_SERVICE_API = "API"; |
| | | public final static String HTTP_SERVICE = "SERVICE"; |
| | |
| | | public final static String HTTP_METHOD = "METHOD"; |
| | | public final static String HTTP_APP_ID = "app_id"; |
| | | public final static String HTTP_TRANSACTION_ID = "transaction_id"; |
| | | public final static String HTTP_SRC_IP = "IP"; |
| | | |
| | | public final static String HTTP_REQ_TIME = "req_time"; |
| | | public final static String HTTP_RES_TIME = "res_time"; |
| | | public final static String HTTP_SIGN = "sign"; |
| | |
| | | |
| | | |
| | | |
| | | public static String getHttpMethodStr(HttpMethod httpMethod) { |
| | | if (HttpMethod.GET == httpMethod) { |
| | | return HTTP_METHOD_GET; |
| | | } else if (HttpMethod.POST == httpMethod) { |
| | | return HTTP_METHOD_POST; |
| | | } else if (HttpMethod.PUT == httpMethod) { |
| | | return HTTP_METHOD_PUT; |
| | | } else if (HttpMethod.DELETE == httpMethod) { |
| | | return HTTP_METHOD_DELETE; |
| | | } else { |
| | | return HTTP_METHOD_POST; |
| | | } |
| | | } |
| | | } |