Class AccessEvent


  • public class AccessEvent
    extends Object
    A single request made through AppServer.
    • Method Detail

      • getMethod

        public String getMethod()
        Get the method.
        Returns:
        "GET" or "POST"
      • getPath

        public String getPath()
        Get path.
        Returns:
        path of the file on the server, e.g. /git/HEAD.
      • getRequestHeader

        public String getRequestHeader​(String name)
        Get request header
        Parameters:
        name - name of the request header to read.
        Returns:
        first value of the request header; null if not sent.
      • getParameter

        public String getParameter​(String name)
        Get parameter
        Parameters:
        name - name of the request parameter to read.
        Returns:
        first value of the request parameter; null if not sent.
      • getParameters

        public Map<String,​String[]> getParameters()
        Get parameters
        Returns:
        all parameters in the request.
      • getStatus

        public int getStatus()
        Get the status.
        Returns:
        HTTP status code of the response, e.g. 200, 403, 500.
      • getResponseHeader

        public String getResponseHeader​(String name)
        Get response header.
        Parameters:
        name - name of the response header to read.
        Returns:
        first value of the response header; null if not sent.