protected WebOperation getOperation ( HttpServletRequest request ) throws WebOperationNotFoundException { String uri = request . getRequestURI ( ) ; String q = uri . substring ( ( request . getContextPath ( ) + request . getServletPath ( ) ) . length ( ) + 1 ) ; int i = q . indexOf ( "." ) ; String name = q ; if ( i > 0 ) { name = q . substring ( 0 , i ) ; } return getOperationByName ( name ) ; }
Get operation from request