Thursday 17 July 2014

doOptions (HttpServletRequest req, HttpServletResponse resp)

protected void doOptions(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException

Called by the server (via the service method) to allow a servlet to handle a OPTIONS request. The OPTIONS request determines which HTTP methods the server supports and returns an appropriate header. For example, if a servlet overrides doGet, this method returns the following header.

Allow: GET, HEAD, TRACE, OPTIONS


Prevoius                                                 Next                                                 Home

No comments:

Post a Comment