Package org.iplass.mtp.web.actionmapping
Interface RequestInfo
public interface RequestInfo
Represents available methods of HttpServletRequest.
When using some methods of HttpServletRequest,
it is difficult to guarantee iPLAss's behavior,
so the interface is defined and only the methods that can be used are defined.
When invoke from the web, in Command or GroovyTemplate,
It can be get from the attribute of
RequestContext
.
see WebRequestConstants
for attribute name.-
Method Summary
Modifier and TypeMethodDescriptionint
javax.servlet.http.Cookie[]
long
getDateHeader
(String name) getHeaders
(String name) javax.servlet.ServletInputStream
Get InputStream of request body.int
getIntHeader
(String name) Get the appropriate locale of language for the current request.Get Reader of request body.int
int
boolean
isSecure()
boolean
isUserInRole
(String role)
-
Method Details
-
getInputStream
Get InputStream of request body. If content-type is not specified in the request header, the body is treated as empty.- Returns:
- Throws:
IOException
- See Also:
-
ServletRequest.getInputStream()
-
getReader
Get Reader of request body. If content-type is not specified in the request header, the body is treated as empty.- Returns:
- Throws:
IOException
- See Also:
-
ServletRequest.getReader()
-
getCharacterEncoding
String getCharacterEncoding()- Returns:
- See Also:
-
ServletRequest.getCharacterEncoding()
-
getContentLength
int getContentLength()- Returns:
- See Also:
-
ServletRequest.getContentLength()
-
getContentType
String getContentType()- Returns:
- See Also:
-
ServletRequest.getContentType()
-
getLocale
Locale getLocale()Get the appropriate locale of language for the current request.- Returns:
- See Also:
-
ServletRequest.getLocale()
-
getProtocol
String getProtocol()- Returns:
- See Also:
-
ServletRequest.getProtocol()
-
getRemoteAddr
String getRemoteAddr()- Returns:
- See Also:
-
ServletRequest.getRemoteAddr()
-
getRemoteHost
String getRemoteHost()- Returns:
- See Also:
-
ServletRequest.getRemoteHost()
-
getRemotePort
int getRemotePort()- Returns:
- See Also:
-
ServletRequest.getRemotePort()
-
getScheme
String getScheme()- Returns:
- See Also:
-
ServletRequest.getScheme()
-
getServerName
String getServerName()- Returns:
- See Also:
-
ServletRequest.getServerName()
-
getServerPort
int getServerPort()- Returns:
- See Also:
-
ServletRequest.getServerPort()
-
isSecure
boolean isSecure()- Returns:
- See Also:
-
ServletRequest.isSecure()
-
getAuthType
String getAuthType()- Returns:
- See Also:
-
HttpServletRequest.getAuthType()
-
getContextPath
String getContextPath()- Returns:
- See Also:
-
HttpServletRequest.getContextPath()
-
getCookies
javax.servlet.http.Cookie[] getCookies()- Returns:
- See Also:
-
HttpServletRequest.getCookies()
-
getDateHeader
- Parameters:
name
-- Returns:
- See Also:
-
HttpServletRequest.getDateHeader(String)
-
getHeader
- Parameters:
name
-- Returns:
- See Also:
-
HttpServletRequest.getHeader(String)
-
getHeaderNames
Enumeration<String> getHeaderNames()- Returns:
- See Also:
-
HttpServletRequest.getHeaderNames()
-
getHeaders
- Parameters:
name
-- Returns:
- See Also:
-
HttpServletRequest.getHeaders(String)
-
getIntHeader
- Parameters:
name
-- Returns:
- See Also:
-
HttpServletRequest.getIntHeader(String)
-
getMethod
String getMethod()- Returns:
- See Also:
-
HttpServletRequest.getMethod()
-
getPathInfo
String getPathInfo()- Returns:
- See Also:
-
HttpServletRequest.getPathInfo()
-
getQueryString
String getQueryString()- Returns:
- See Also:
-
HttpServletRequest.getQueryString()
-
getRemoteUser
String getRemoteUser()- Returns:
- See Also:
-
HttpServletRequest.getRemoteUser()
-
getRequestURI
String getRequestURI()- Returns:
- See Also:
-
HttpServletRequest.getRequestURI()
-
getRequestURL
StringBuffer getRequestURL()- Returns:
- See Also:
-
HttpServletRequest.getRequestURL()
-
getServletPath
String getServletPath()- Returns:
- See Also:
-
HttpServletRequest.getServletPath()
-
getUserPrincipal
Principal getUserPrincipal()- Returns:
- See Also:
-
HttpServletRequest.getUserPrincipal()
-
isUserInRole
- Parameters:
role
-- Returns:
- See Also:
-
HttpServletRequest.isUserInRole(String)
-
getLocales
Enumeration<Locale> getLocales()- Returns:
- See Also:
-
ServletRequest.getLocales()
-