private void validateEndpoint ( String endpoint ) { try { new URL ( endpoint ) ; } catch ( MalformedURLException e ) { throw new InvalidParameterException ( Messages . i18n . format ( "OrganizationResourceImpl.InvalidEndpointURL" ) ) ; //$NON-NLS-1$ } }
Make sure we ve got a valid URL .