Esri Geoportal Server
1.0

com.esri.gpt.catalog.search
Class XsltResourceIdentifier

java.lang.Object
  extended by com.esri.gpt.catalog.search.ResourceIdentifier
      extended by com.esri.gpt.catalog.search.XsltResourceIdentifier

public class XsltResourceIdentifier
extends ResourceIdentifier

Identifies resource and content type


Field Summary
static String XSLT_HINT_RESOURCE_IDENTIFICATION
          XSLT for hinting resource identification : "gpt/metadata/HintResourceIdentification.xslt"
 
Constructor Summary
XsltResourceIdentifier()
          Default constructor.
 
Method Summary
 String guessAgsMapServerSoapUrl(String server)
          Guesses the ArcGIS Server SOAP endpoint for a MapServer server.
 String guessAgsServiceRestUrl(String serviceUrl)
          Guesses the ArcGIS Server rest endpoint for a service.
 String guessArcIMSContentTypeFromResourceType(String resourceType)
          Guesses the ArcIMS content type based upon a supplied resource type.
 String guessArcIMSContentTypeFromUrl(String url)
          Guesses the ArcIMS content type based upon a given url.
 String guessServiceTypeFromUrl(String url)
          Guesses a service type from a URL.
 
Methods inherited from class com.esri.gpt.catalog.search.ResourceIdentifier
guessArcIMSContentTypeFromResult, newIdentifier
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

XSLT_HINT_RESOURCE_IDENTIFICATION

public static final String XSLT_HINT_RESOURCE_IDENTIFICATION
XSLT for hinting resource identification : "gpt/metadata/HintResourceIdentification.xslt"

See Also:
Constant Field Values
Constructor Detail

XsltResourceIdentifier

public XsltResourceIdentifier()
Default constructor.

Method Detail

guessAgsMapServerSoapUrl

public String guessAgsMapServerSoapUrl(String server)
Guesses the ArcGIS Server SOAP endpoint for a MapServer server.
Only MapServer services are considered.

Overrides:
guessAgsMapServerSoapUrl in class ResourceIdentifier
Parameters:
server - the server URL
Returns:
the ArcGIS MapServer SOAP endpoint (without "?wsdl", null if unknown)

guessAgsServiceRestUrl

public String guessAgsServiceRestUrl(String serviceUrl)
Guesses the ArcGIS Server rest endpoint for a service.

Overrides:
guessAgsServiceRestUrl in class ResourceIdentifier
Parameters:
serviceUrl - the service URL
Returns:
the service's ArcGIS Server rest endpoint (null if unknown)

guessArcIMSContentTypeFromResourceType

public String guessArcIMSContentTypeFromResourceType(String resourceType)
Guesses the ArcIMS content type based upon a supplied resource type.

Overrides:
guessArcIMSContentTypeFromResourceType in class ResourceIdentifier
Parameters:
resourceType - the resource type
Returns:
the ArcIMS content type (empty String if none)

guessArcIMSContentTypeFromUrl

public String guessArcIMSContentTypeFromUrl(String url)
Guesses the ArcIMS content type based upon a given url.

Overrides:
guessArcIMSContentTypeFromUrl in class ResourceIdentifier
Parameters:
url - the resource url
Returns:
the ArcIMS content type (empty String if none)

guessServiceTypeFromUrl

public String guessServiceTypeFromUrl(String url)
Guesses a service type from a URL.

Overrides:
guessServiceTypeFromUrl in class ResourceIdentifier
Parameters:
url - the url
Returns:
the service type

Esri Geoportal Server
1.0

Copyright 2011 Environmental Systems Research Institute. All rights reserved. Use is subject to license terms.