public static ServletHttpRequest unwrap ( ServletRequest request ) { while ( ! ( request instanceof ServletHttpRequest ) ) { if ( request instanceof ServletRequestWrapper ) { ServletRequestWrapper wrapper = ( ServletRequestWrapper ) request ; request = wrapper . getRequest ( ) ; } else throw new IllegalArgumentException ( "Does not wrap ServletHttpRequest" ) ; } return ( ServletHttpRequest ) request ; }
Unwrap a ServletRequest .