public class ArcGISRestMapProviderSetting extends MapProviderSetting
ArcGIS Rest map service provider configuration object
This object is used by the ArcGIS Rest map service provider to include the relevant parameter information, including: Rest map service address; user name; password.
dataPrjCoordSysType, watermark
Constructor and Description |
---|
ArcGISRestMapProviderSetting() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
To determine whether the two objects are equal.
|
boolean |
getCacheEnabled()
The cache is opened or not.
|
java.lang.String |
getGetTokenUrl()
Get the ArcGIS Token service address.
|
java.lang.String |
getHttpReferer()
Gets HTTP_referer to access the ArcGIS REST service.
|
java.lang.String |
getPassword()
Get the user name to access the ArcGIS Rest service.
|
java.lang.String |
getRestServiceRootURL()
Get the address of ArcGIS Rest map service.
|
static long |
getSerialversionuid()
Get the UID of the service version.
|
java.lang.String |
getToken()
Get the Token that accesses the ArcGIS REST service.
|
java.lang.String |
getUserName()
Get the user name to access the ArcGIS Rest service.
|
int |
hashCode()
Gets the hash value of the object instance
|
void |
setCacheEnabled(boolean cacheEnabled)
The cache is opened or not.
|
void |
setGetTokenUrl(java.lang.String getTokenUrl)
Set the ArcGIS Token service address.
|
void |
setHttpReferer(java.lang.String httpReferer)
Sets HTTP_referer to access the ArcGIS REST service.
|
void |
setPassword(java.lang.String password)
Set the password to access the ArcGIS Rest service.
|
void |
setRestServiceRootURL(java.lang.String restServiceRootURL)
Set the ArcGIS Rest map service address.
|
void |
setToken(java.lang.String token)
Set the Token to access the ArcGIS REST service.
|
void |
setUserName(java.lang.String userName)
Set the user name to access the ArcGIS Rest service.
|
getCacheMode, getCacheVersion, getName, getOutputPath, getOutputSite, getWatermark, setCacheMode, setCacheVersion, setName, setOutputPath, setOutputSite, setWatermark
public java.lang.String getRestServiceRootURL()
public void setRestServiceRootURL(java.lang.String restServiceRootURL)
restServiceRootURL
-public java.lang.String getUserName()
public void setUserName(java.lang.String userName)
userName
-public java.lang.String getPassword()
public void setPassword(java.lang.String password)
password
-public java.lang.String getGetTokenUrl()
Get the ArcGIS Token service address.
This parameter is valid only for security authentication in "username / password" mode and is allowed to be empty. When the parameter is empty, the system automatically processes as {rootUrl} / tokens. Such as :when ArcGISRestMapProviderSetting#restServiceRootURL
is http://127.0.0.1:6080/arcgis/rest/services/Sample/MapServer, Token service address is automatically processed as http://127.0.0.1:6080/arcgis/tokens.
public void setGetTokenUrl(java.lang.String getTokenUrl)
Set the ArcGIS Token service address.
This parameter is valid only for security authentication in "username / password" mode and is allowed to be empty. When the parameter is empty, the system automatically processes as {rootUrl} / tokens. Such as :when ArcGISRestMapProviderSetting#restServiceRootURL
is http://127.0.0.1:6080/arcgis/rest/services/Sample/MapServer, Token service address is automatically processed as http://127.0.0.1:6080/arcgis/tokens.
getTokenUrl
-public static long getSerialversionuid()
public boolean getCacheEnabled()
public void setCacheEnabled(boolean cacheEnabled)
cacheEnabled
-public java.lang.String getToken()
Get the Token that accesses the ArcGIS REST service.
When the user name,password and Token are configured at the same time, token authentication is required.
public void setToken(java.lang.String token)
Set the Token to access the ArcGIS REST service.
When the user name,password and Token are configured at the same time, token authentication is required.
token
- tokenpublic java.lang.String getHttpReferer()
Gets HTTP_referer to access the ArcGIS REST service. When using a Token in the form of HTTP Referer, you need to set this value.
public void setHttpReferer(java.lang.String httpReferer)
Sets HTTP_referer to access the ArcGIS REST service. When using a Token in the form of HTTP Referer, you need to set this value.
httpReferer
- HTTP refererpublic boolean equals(java.lang.Object obj)
To determine whether the two objects are equal.
equals
in class java.lang.Object
obj
- the object to be compared.public int hashCode()
hashCode
in class java.lang.Object