I have a servlet filter, in which if the call is OPTIONS method call, then a specific set of task needs to be done.
Is there a way I can check my custom filter , which as of now , extends javax.servlet.filter, if an incoming http request is a request for an OPTIONS call??
Thanks
PS:Im using jetty as my app server.
getMethodin HttpServletRequest is maybe what you need: http://download.oracle.com/javaee/6/api/javax/servlet/http/HttpServletRequest.html#getMethod()It should return
OPTIONSin case of anOPTIONSrequest.