ServletAttributes (Grails 3.3.2)
Date: 2017-11-24

Package: grails.web.api

## [Groovy] Trait ServletAttributes

- grails.web.api.ServletAttributes

- All Implemented Interfaces and Traits:
    WebAttributes

      @groovy.transform.CompileStatic
      trait ServletAttributes

  A trait that adds attributes specific to the Servlet API

  Authors:
    Graeme Rocher
    Jeff Brown

- - ### Methods Summary

    Methods
    Type Params | Return Type | Name and description
    --- | --- | ---
    `` | `org.springframework.context.ApplicationContext` | `getApplicationContext()` Obtains the ApplicationContext instance
    `` | `javax.servlet.http.HttpServletRequest` | `getRequest()`
    `` | `javax.servlet.http.HttpServletResponse` | `getResponse()` Obtains the HttpServletResponse instance
    `` | `javax.servlet.ServletContext` | `getServletContext()` Obtains the ServletContext instance
    `` | `javax.servlet.http.HttpSession` | `getSession()`

- - ### Method Detail

    - #### org.springframework.context.ApplicationContext getApplicationContext()

      Obtains the ApplicationContext instance

      Returns:
        The ApplicationContext instance

    - #### javax.servlet.http.HttpServletRequest getRequest()

    - #### javax.servlet.http.HttpServletResponse getResponse()

      Obtains the HttpServletResponse instance

      Returns:
        The HttpServletResponse instance

    - #### javax.servlet.ServletContext getServletContext()

      Obtains the ServletContext instance

      Returns:
        The ServletContext instance

    - #### javax.servlet.http.HttpSession getSession()