public Endpoint(URI endpointUrl,SecurityMode... modes){
  if (modes == null || endpointUrl == null)   throw new IllegalArgumentException("null arg");
  for (  SecurityMode m : modes) {
    if (m == null)     throw new IllegalArgumentException("null arg");
    hash=13 * hash + m.hashCode();
  }
  this.endpointUrl=endpointUrl.toString();
  this.modes=modes;
  this.endpointConfiguration=EndpointConfiguration.defaults();
  hash=13 * hash + endpointUrl.hashCode();
}

public Endpoint ( URI endpointUrl , SecurityMode ... modes ) { if ( modes == null || endpointUrl == null ) throw new IllegalArgumentException ( "null arg" ) ; for ( SecurityMode m : modes ) { if ( m == null ) throw new IllegalArgumentException ( "null arg" ) ; hash = 13 * hash + m . hashCode ( ) ; } this . endpointUrl = endpointUrl . toString ( ) ; this . modes = modes ; this . endpointConfiguration = EndpointConfiguration . defaults ( ) ; hash = 13 * hash + endpointUrl . hashCode ( ) ; }
create a new endpoint .
