protected void doRequest ( javax . servlet . sip . SipServletRequest req ) throws javax . servlet . ServletException , java . io . IOException { String m = req . getMethod ( ) ; if ( "INVITE" . equals ( m ) ) doInvite ( req ) ; else if ( "ACK" . equals ( m ) ) doAck ( req ) ; else if ( "OPTIONS" . equals ( m ) ) doOptions ( req ) ; else if ( "BYE" . equals ( m ) ) doBye ( req ) ; else if ( "CANCEL" . equals ( m ) ) doCancel ( req ) ; else if ( "REGISTER" . equals ( m ) ) doRegister ( req ) ; else if ( "SUBSCRIBE" . equals ( m ) ) doSubscribe ( req ) ; else if ( "NOTIFY" . equals ( m ) ) doNotify ( req ) ; else if ( "MESSAGE" . equals ( m ) ) doMessage ( req ) ; else if ( "INFO" . equals ( m ) ) doInfo ( req ) ; else if ( "REFER" . equals ( m ) ) doRefer ( req ) ; else if ( "PUBLISH" . equals ( m ) ) doPublish ( req ) ; else if ( "UPDATE" . equals ( m ) ) doUpdate ( req ) ; else if ( "PRACK" . equals ( m ) ) doPrack ( req ) ; else if ( req . isInitial ( ) ) notHandled ( req ) ; }
Invoked to handle incoming requests . This method dispatched requests to one of the doXxx methods where Xxx is the SIP method used in the request . Servlets will not usually need to override this method .