Skip to main content

Other Notes

  • Subclasses can use either HttpServlet.init(ServletConfig) or HttpServlet.init() for initialization just like any other servlet.
  • The X-Response-Headers header can be used to pass through header values into the response.
    • The value should be a URL-encoded map of key-value pairs. For example, to add a Refresh: 1 header to the response to auto-refresh a page, the following parameter can be specified: /sample?X-Response-Headers=(Refresh=1)