Package thredds.catalog

Examples of thredds.catalog.ServiceType


      if (!location.startsWith("http:") && !location.startsWith("file:"))
        location = "file:" + location;
      return acquireNcml(cache, factory, hashKey, location, buffer_size, cancelTask, spiObject);

    } else if (location.startsWith("http:")) {
      ServiceType stype = disambiguateHttp(location);
      if (stype == ServiceType.OPENDAP)
        return acquireDODS(cache, factory, hashKey, location, buffer_size, cancelTask, spiObject); // try as a dods file
      else if (stype == ServiceType.CdmRemote)
        return acquireRemote(cache, factory, hashKey, location, buffer_size, cancelTask, spiObject)// open through CDM remote
      // else fall through for HttpService
View Full Code Here


  static private ServiceType disambiguateHttp(String location) throws IOException {

    HTTPSession session = new HTTPSession();

    // have to do dods first
    ServiceType result = checkIfDods(session,location);
    if (result != null)
      return result;

    HTTPMethod method = null;
    try {
View Full Code Here

    StartElement startElement = this.getNextEventIfStartElementIsMine();

    Attribute nameAtt = startElement.getAttributeByName( ServiceElementNames.ServiceElement_Name );
    String name = nameAtt.getValue();
    Attribute serviceTypeAtt = startElement.getAttributeByName( ServiceElementNames.ServiceElement_ServiceType );
    ServiceType serviceType = ServiceType.getType( serviceTypeAtt.getValue() );
    Attribute baseUriAtt = startElement.getAttributeByName( ServiceElementNames.ServiceElement_Base );
    String baseUriString = baseUriAtt.getValue();
    URI baseUri = null;
    try
    {
View Full Code Here

TOP

Related Classes of thredds.catalog.ServiceType

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.