|
|
@ -138,9 +138,16 @@ public class RequestUtil {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public static String getHeader(String head) {
|
|
|
|
public static String getHeader(HttpServletRequest request, String head, String defaultValue) {
|
|
|
|
HttpServletRequest request = LocalData.getRequest();
|
|
|
|
try {
|
|
|
|
return request.getHeader(head);
|
|
|
|
return request.getHeader(head);
|
|
|
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
|
|
|
|
return defaultValue;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static String getHeader(HttpServletRequest request, String head) {
|
|
|
|
|
|
|
|
return getHeader(request, head, null);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public static Pattern actionPattern = Pattern.compile("^/(.+)\\.htm");
|
|
|
|
public static Pattern actionPattern = Pattern.compile("^/(.+)\\.htm");
|
|
|
|