private WebServiceFeature [ ] getWebServiceFeaturesOnPortComponentRef ( Class serviceEndpointInterface ) { WebServiceFeature [ ] returnArray = { } ; if ( serviceEndpointInterface != null && wsrInfo != null ) { String seiName = serviceEndpointInterface . getName ( ) ; PortComponentRefInfo pcr = wsrInfo . getPortComponentRefInfo ( seiName ) ; if ( tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "SEI name = " + seiName ) ; Tr . debug ( tc , "PortComponentRefInfo found = " + pcr ) ; } if ( pcr != null ) { List < WebServiceFeatureInfo > featureInfoList = pcr . getWebServiceFeatureInfos ( ) ; if ( tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "List of WebServiceFeatureInfo from PortComponentRefInfo = " + featureInfoList ) ; } if ( ! featureInfoList . isEmpty ( ) ) { returnArray = new WebServiceFeature [ featureInfoList . size ( ) ] ; for ( int i = 0 ; i < featureInfoList . size ( ) ; i ++ ) { WebServiceFeatureInfo featureInfo = featureInfoList . get ( i ) ; WebServiceFeature wsf = featureInfo . getWebServiceFeature ( ) ; returnArray [ i ] = wsf ; if ( tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "Added WebServiceFeature " + wsf ) ; } } } } } return returnArray ; }
Gets an array of features possibly enabled on client s port - component - ref in the deployment descriptor