@ Override public String getTrimmedPath ( String path ) { if ( path == null ) { return "/" ; } if ( ! path . startsWith ( "/" ) ) { try { path = new URL ( path ) . getPath ( ) ; } catch ( MalformedURLException ex ) { // ignore Logger . getLogger ( JBossWSDestinationRegistryImpl . class ) . trace ( ex ) ; } if ( ! path . startsWith ( "/" ) ) { path = "/" + path ; } } return path ; }
Return a real path value removing the protocol host and port if specified .