RequestUtils
org.beangle.web.servlet.util.RequestUtils$
object RequestUtils
Attributes
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Self type
- RequestUtils.type
Members list
Concise view
Value members
Concrete methods
Returns remote ip address.
Returns remote ip address.
-
First,it lookup request header("x-forwarded-for"->"Proxy-Client-IP"->"WL-Proxy-Client-IP")
-
Second,invoke request.getRemoteAddr()
Attributes
Return the true servlet path. When servletPath provided by container is empty,It will return requestURI-contextpath'
Return the true servlet path. When servletPath provided by container is empty,It will return requestURI-contextpath'
查找当前调用的action对应的.do
例如http://localhost/myapp/dd.do 返回/dd.do
http://localhost/myapp/dir/to/dd.do 返回/dir/to/dd.do
Attributes
Return Useragent
of request.
Return Useragent
of request.
Attributes
Set Content-Disposition header
Set Content-Disposition header
Attributes
- See also: