geoportal-data-viewer-app/src/main/java/org/gcube/portlets/user/geoportaldataviewer/server/gis/WebMapServerHost.java

100 lines
1.4 KiB
Java
Raw Normal View History

2020-10-27 16:04:34 +01:00
/**
*
*/
package org.gcube.portlets.user.geoportaldataviewer.server.gis;
/**
2020-11-19 15:19:27 +01:00
* The Class WebMapServerHost.
2020-10-27 16:04:34 +01:00
*
* @author Francesco Mangiacrapa francesco.mangiacrapa@isti.cnr.it
2020-11-19 15:19:27 +01:00
*
* Nov 12, 2020
2020-10-27 16:04:34 +01:00
*/
public class WebMapServerHost {
private String host = "";
private String scope = "";
2020-11-19 15:19:27 +01:00
2020-10-27 16:04:34 +01:00
/**
2020-11-19 15:19:27 +01:00
* Instantiates a new web map server host.
2020-10-27 16:04:34 +01:00
*/
public WebMapServerHost() {
}
/**
* Instantiates a new geoserver base uri.
*
* @param host the base url
* @param scope the scope
*/
public WebMapServerHost(String host, String scope) {
this.host = host;
this.scope = scope;
}
/**
2020-11-19 15:19:27 +01:00
* Gets the host.
*
2020-10-27 16:04:34 +01:00
* @return the host
*/
public String getHost() {
return host;
}
/**
2020-11-19 15:19:27 +01:00
* Gets the scope.
*
2020-10-27 16:04:34 +01:00
* @return the scope
*/
public String getScope() {
return scope;
}
/**
2020-11-19 15:19:27 +01:00
* Sets the host.
*
2020-10-27 16:04:34 +01:00
* @param host the host to set
*/
public void setHost(String host) {
this.host = host;
}
/**
2020-11-19 15:19:27 +01:00
* Sets the scope.
*
2020-10-27 16:04:34 +01:00
* @param scope the scope to set
*/
public void setScope(String scope) {
this.scope = scope;
}
2020-11-19 15:19:27 +01:00
/**
* To string.
*
* @return the string
*/
2020-10-27 16:04:34 +01:00
/* (non-Javadoc)
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
StringBuilder builder = new StringBuilder();
builder.append("WebMapServerHost [host=");
builder.append(host);
builder.append(", scope=");
builder.append(scope);
builder.append("]");
return builder.toString();
}
}