Package com.esri.arcgisws

Examples of com.esri.arcgisws.ImageServerBindingStub


   * @throws Exception if an exception occurs
   */
  @Override
  public void collectMetadata(ServiceHandlerFactory handlerFactory, ServiceInfo serviceInfo)
    throws Exception {
    ImageServerBindingStub stub =
      getCredentials()==null || getCredentials().getUsername().length()==0 || getCredentials().getPassword().length()==0?
      new ImageServerBindingStub(serviceInfo.getSoapUrl()):
      new ImageServerBindingStub(serviceInfo.getSoapUrl(), getCredentials().getUsername(), getCredentials().getPassword());
    serviceInfo.getKeywords().add(serviceInfo.getType());
    serviceInfo.addKeywords("liveData,service,image",",");
   
    ImageServiceInfo imageServiceInfo = stub.getServiceInfo();
    //serviceInfo.setName(imageServiceInfo.getName());
    serviceInfo.setDescription(imageServiceInfo.getDescription());
    serviceInfo.setEnvelope(imageServiceInfo.getExtent());
   
    // TODO: thumbnail url?
View Full Code Here


  }

  @Override
  public void appendRecord(Collection<Resource> records, ServiceHandlerFactory factory, ServiceInfo serviceInfo, boolean isNative) throws Exception {
    try {
    ImageServerBindingStub stub =
      getCredentials()==null || getCredentials().getUsername().length()==0 || getCredentials().getPassword().length()==0?
      new ImageServerBindingStub(serviceInfo.getSoapUrl()):
      new ImageServerBindingStub(serviceInfo.getSoapUrl(), getCredentials().getUsername(), getCredentials().getPassword());
    ImageServiceInfo imageServiceInfo = stub.getServiceInfo();
    serviceInfo.setEnvelope(imageServiceInfo.getExtent());
    } catch (ArcGISWebServiceException ex) {
      LOGGER.log(Level.FINE, "Error getting ImageServiceInfo.", ex);
    }
    super.appendRecord(records, factory, serviceInfo, isNative);
View Full Code Here

TOP

Related Classes of com.esri.arcgisws.ImageServerBindingStub

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.