protected void obtainEndpoints ( List < Node > nodes , List < EndpointInfo > endpoints ) { for ( int i = 0 ; i < nodes . size ( ) ; i ++ ) { Node node = nodes . get ( i ) ; if ( node . getUri ( ) != null ) { EndpointInfo ei = new EndpointInfo ( ) ; ei . setEndpoint ( EndpointUtil . encodeEndpoint ( node . getUri ( ) , node . getOperation ( ) ) ) ; if ( ! endpoints . contains ( ei ) ) { initEndpointInfo ( ei ) ; endpoints . add ( ei ) ; } } if ( node instanceof ContainerNode ) { obtainEndpoints ( ( ( ContainerNode ) node ) . getNodes ( ) , endpoints ) ; } } }
This method collects the information regarding endpoints .