doOptions
public boolean doOptions(HttpServletRequest request,
HttpServletResponse response,
java.lang.String... methods)
throws java.lang.Exception
Description copied from interface: CORS
This method is called for any resource that has a method defined. The
allowed methods are passed as a parameter. This is primarily used as a
preflight check for the CORS protocol. I.e. it will return the proper
information for CORS preflights in the response.
- Specified by:
doOptions in interface CORS
methods - an array of methods for this URL
- Returns:
- true if found
- Throws:
java.io.IOException
java.lang.Exception