Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1753994
  • 博文数量: 787
  • 博客积分: 10000
  • 博客等级: 上将
  • 技术积分: 5015
  • 用 户 组: 普通用户
  • 注册时间: 2008-09-22 15:17
文章分类

全部博文(787)

文章存档

2008年(787)

我的朋友

分类:

2008-09-25 16:08:44

//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---------------------

阅读(568) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~