//ArcGIS Server服务器配置路径信息
private AGSLocalMapResource getLocalMapRes(WebContext webContext)
{
if(webContext==null)return null;
java.util.Map agsReses = webContext.getResources();
if(agsReses==null)return null;
java.util.Iterator agsResIterator = agsReses.values().iterator();
while(agsResIterator.hasNext())
{
Object temObj = agsResIterator.next();
if(temObj instanceof AGSLocalMapResource)
return (AGSLocalMapResource)temObj;
}
return null;
}
private ServerConnection getServerConnection(WebContext webContext)
{
AGSLocalMapResource agsLocalMapResource = this.getLocalMapRes(webContext);
if(agsLocalMapResource!=null)
{
return agsLocalMapResource.getServerConnection();
}
else
return null;
}
public String getServerCachePath(WebContext webContext)
{
try{
ServerConnection ArcServerConnection = this.getServerConnection(webContext);
IServerObjectAdmin ArcSOA=ArcServerConnection.getServerObjectAdmin();
IServerObjectManager ArcSOM =ArcServerConnection.getServerObjectManager();
IEnumServerDirectoryInfo serverDirInfos = ArcSOM.getServerDirectoryInfos();
IEnumServerObjectConfigurationInfo serverConfInfos = ArcSOM.getConfigurationInfos();
return null;
}
catch(Exception ex)
{
return null;
}
finally
{
}
}
--------------------next---------------------