public String getURIValue ( String strValue ) { String strBaseURI = ( ( PropertiesField ) this . getRecord ( MessageControl . MESSAGE_CONTROL_FILE ) . getField ( MessageControl . PROPERTIES ) ) . getProperty ( MessageControl . BASE_NAMESPACE_URI ) ; if ( strBaseURI == null ) { strBaseURI = this . getProperty ( DBParams . BASE_URL ) ; // Defaults to same site as wsdl if ( strBaseURI != null ) if ( strBaseURI . endsWith ( "/" ) ) strBaseURI = strBaseURI . substring ( 0 , strBaseURI . length ( ) - 1 ) ; } if ( strBaseURI != null ) if ( strBaseURI . indexOf ( "http://" ) != 0 ) strBaseURI = "http://" + strBaseURI ; if ( strBaseURI != null ) { if ( strValue == null ) strValue = strBaseURI ; else if ( ( strValue . indexOf ( "http://" ) != 0 ) || ( strValue . startsWith ( "/" ) ) ) strValue = strBaseURI + strValue ; } return strValue ; }
GetURIValue Method .