private MethodVisitor visitHttpMethod ( MethodVisitor mv , int access , String name , String desc , String signature , String [ ] exceptions ) { MethodVisitor httpMv = mv ; /* * Instrument _jspService method for JSP. Instrument doGet, doPost and * service methods for servlets. */ if ( ( httpInstrumentJsp && name . equals ( "_jspService" ) ) || ( httpInstrumentServlet && ( name . equals ( "doGet" ) || name . equals ( "doPost" ) || name . equals ( "service" ) ) ) ) { // Only instrument if method has the correct signature if ( HTTP_REQUEST_METHOD_DESC . equals ( desc ) ) { httpMv = new ServletCallBackAdapter ( className , mv , access , name , desc ) ; } } return httpMv ; }
Instrument HTTP request methods