public void addRequestHandler ( int port , String host , String path , RequestHandler requestHandler ) { Integer portInt = Integer . valueOf ( port ) ; PortMapper portMapper = portMap . get ( portInt ) ; if ( portMapper == null ) { portMapper = new PortMapper ( portInt ) ; portMap . put ( portInt , portMapper ) ; } portMapper . addRequestHandler ( host , path , requestHandler ) ; LOGGER . info ( "Registered " + port + "/" + ( host == null ? "*" : host ) + "/" + ( path == null ? "*" : path ) + " --> " + requestHandler ) ; }
Register the RequestHandler to accept requests on the given port for the specified host and path .