类 WebRequestUtils
- java.lang.Object
-
- io.microsphere.spring.web.util.WebRequestUtils
-
public abstract class WebRequestUtils extends java.lang.ObjectWebRequestUtilities class- 从以下版本开始:
- 1.0.0
- 作者:
- Mercy
-
-
构造器概要
构造器 构造器 说明 WebRequestUtils()
-
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 static java.lang.StringgetContentType(org.springframework.web.context.request.NativeWebRequest request)static java.lang.StringgetMethod(org.springframework.web.context.request.NativeWebRequest request)static java.lang.StringgetResolvedLookupPath(org.springframework.web.context.request.NativeWebRequest request)Return a previouslyresolvedlookupPath.static booleanhasBody(org.springframework.web.context.request.NativeWebRequest request)static booleanisPreFlightRequest(org.springframework.web.context.request.NativeWebRequest request)Returnstrueif the request is a valid CORS pre-flight one by checkingOPTIONSmethod withOriginandAccess-Control-Request-Methodheaders presence.
-
-
-
方法详细资料
-
getMethod
public static java.lang.String getMethod(org.springframework.web.context.request.NativeWebRequest request)
-
isPreFlightRequest
public static boolean isPreFlightRequest(org.springframework.web.context.request.NativeWebRequest request)
Returnstrueif the request is a valid CORS pre-flight one by checkingOPTIONSmethod withOriginandAccess-Control-Request-Methodheaders presence.
-
getContentType
public static java.lang.String getContentType(org.springframework.web.context.request.NativeWebRequest request)
-
hasBody
public static boolean hasBody(org.springframework.web.context.request.NativeWebRequest request)
-
getResolvedLookupPath
public static java.lang.String getResolvedLookupPath(org.springframework.web.context.request.NativeWebRequest request)
Return a previouslyresolvedlookupPath.- 参数:
request- the current request- 返回:
- the previously resolved lookupPath
- 抛出:
java.lang.IllegalArgumentException- if the lookup path is not found
-
-