use Request#getRequestFormat() method