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 Details

    • getInputStream

      javax.servlet.ServletInputStream getInputStream() throws IOException
      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

      BufferedReader getReader() throws IOException
      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

      long getDateHeader(String name)
      Parameters:
      name -
      Returns:
      See Also:
      • HttpServletRequest.getDateHeader(String)
    • getHeader

      String getHeader(String name)
      Parameters:
      name -
      Returns:
      See Also:
      • HttpServletRequest.getHeader(String)
    • getHeaderNames

      Enumeration<String> getHeaderNames()
      Returns:
      See Also:
      • HttpServletRequest.getHeaderNames()
    • getHeaders

      Enumeration<String> getHeaders(String name)
      Parameters:
      name -
      Returns:
      See Also:
      • HttpServletRequest.getHeaders(String)
    • getIntHeader

      int getIntHeader(String name)
      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

      boolean isUserInRole(String role)
      Parameters:
      role -
      Returns:
      See Also:
      • HttpServletRequest.isUserInRole(String)
    • getLocales

      Enumeration<Locale> getLocales()
      Returns:
      See Also:
      • ServletRequest.getLocales()