Strabon

changeset 946:cf2557c8fcd4

removed unneeded methods that are already provided by HTTPClient from SpatialEndpoint
author Babis Nikolaou <charnik@di.uoa.gr>
date Fri Mar 29 18:13:40 2013 +0200 (2013-03-29)
parents 2fbf6954f8dc
children 851ab3c54a08
files endpoint-client/src/main/java/eu/earthobservatory/org/StrabonEndpoint/client/SpatialEndpoint.java
line diff
     1.1 --- a/endpoint-client/src/main/java/eu/earthobservatory/org/StrabonEndpoint/client/SpatialEndpoint.java	Fri Mar 29 18:10:21 2013 +0200
     1.2 +++ b/endpoint-client/src/main/java/eu/earthobservatory/org/StrabonEndpoint/client/SpatialEndpoint.java	Fri Mar 29 18:13:40 2013 +0200
     1.3 @@ -20,7 +20,6 @@
     1.4   */
     1.5  public abstract class SpatialEndpoint extends HTTPClient implements Endpoint<stSPARQLQueryResultFormat> {
     1.6  	
     1.7 -	
     1.8  	public SpatialEndpoint(String host, int port) {
     1.9  		super(host, port);
    1.10  	}
    1.11 @@ -28,38 +27,4 @@
    1.12  	public SpatialEndpoint(String host, int port, String endpointName) {
    1.13  		super(host, port, endpointName);
    1.14  	}
    1.15 -		
    1.16 -	public String getHost() {
    1.17 -		return host;
    1.18 -	}
    1.19 -	
    1.20 -	public int getPort() {
    1.21 -		return port;
    1.22 -	}
    1.23 -	
    1.24 -	public void setUser(String user) {
    1.25 -		this.user = user;
    1.26 -	}
    1.27 -	
    1.28 -	public void setPassword(String pass) {
    1.29 -		this.password = pass;
    1.30 -	}
    1.31 -	
    1.32 -	public String getUser() {
    1.33 -		return user;
    1.34 -	}
    1.35 -	
    1.36 -	public String getPassword() {
    1.37 -		return password;
    1.38 -	}
    1.39 -	
    1.40 -	/**
    1.41 -	 * Returns a URL (actually a {@link String}) for establishing connections
    1.42 -	 * to an endpoint based on the information given to the constructor. 
    1.43 -	 * 
    1.44 -	 * @return
    1.45 -	 */
    1.46 -	protected String getConnectionURL() {
    1.47 -		return "http://" + host + ":" + port + "/" + endpointName; 
    1.48 -	}
    1.49  }