Esri Geoportal Server
1.0

com.esri.gpt.catalog.arcgis.metadata
Class ServiceInfo

java.lang.Object
  extended by com.esri.gpt.catalog.arcgis.metadata.ServiceInfo

public class ServiceInfo
extends Object

Stores basic properties about a service.


Constructor Summary
ServiceInfo()
          Default constructor.
 
Method Summary
 void addKeywords(String words, String delimiter)
          Adds one or more keywords to the keyword set.
 void addRDFPair(String predicate, String value)
          Adds a predicate/value pair to the catch-all map of RDF pairs associated with the service.
 String asDublinCore(AGSProcessor processor)
          Returns the Dublin Core metadata for the service.
 String asDublinCore(ApplicationConfiguration cfg, HttpClientRequest http)
          Returns the Dublin Core metadata for the service.
 String getCapabilities()
          Gets the capabilities string associated with the service.
 String getCreator()
          Gets the service creator.
 String getDescription()
          Gets the service description.
 com.esri.arcgisws.Envelope getEnvelope()
          Gets the service envelope.
 StringSet getKeywords()
          Gets the keywords associated with the service.
 String getName()
          Gets the service name.
 String getParentType()
          Gets the parent service type.
 String getResourceUrl()
          Gets the resource URL for the service.
 String getRestUrl()
          Gets the REST URL for the service.
 String getSoapUrl()
          Gets the SOAP URL for the service.
 String getThumbnailUrl()
          Gets the thumbnail URL for the service.
 String getType()
          Gets the service type.
 void setCapabilities(String capabilities)
          Sets the capabilities string associated with the service.
 void setCreator(String creator)
          Sets the service creator.
 void setDescription(String description)
          Sets the service description.
 void setEnvelope(com.esri.arcgisws.Envelope envelope)
          Sets the service envelope.
 void setName(String name)
          Sets the service name.
 void setParentType(String type)
          Sets the parent service type.
 void setResourceUrl(String url)
          Sets the resource URL for the service.
 void setRestUrl(String url)
          Sets the REST URL for the service.
 void setSoapUrl(String url)
          Sets the SOAP URL for the service.
 void setThumbnailUrl(String url)
          Sets the thumbnail URL for the service.
 void setType(String type)
          Sets the service type.
 String toString()
          Returns a string representation of the object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ServiceInfo

public ServiceInfo()
Default constructor.

Method Detail

getCreator

public String getCreator()
Gets the service creator.

Returns:
the service creator

setCreator

public void setCreator(String creator)
Sets the service creator.

Parameters:
creator - the service creator

getCapabilities

public String getCapabilities()
Gets the capabilities string associated with the service.

Returns:
the capabilities

setCapabilities

public void setCapabilities(String capabilities)
Sets the capabilities string associated with the service.

Parameters:
capabilities - the capabilities

getDescription

public String getDescription()
Gets the service description.

Returns:
the description

setDescription

public void setDescription(String description)
Sets the service description.

Parameters:
description - the description

getEnvelope

public com.esri.arcgisws.Envelope getEnvelope()
Gets the service envelope.

Returns:
the envelope

setEnvelope

public void setEnvelope(com.esri.arcgisws.Envelope envelope)
Sets the service envelope.

Parameters:
envelope - the envelope

getKeywords

public StringSet getKeywords()
Gets the keywords associated with the service.

Returns:
the keywords

getName

public String getName()
Gets the service name.

Returns:
the name

setName

public void setName(String name)
Sets the service name.

Parameters:
name - the name

getParentType

public String getParentType()
Gets the parent service type.

Returns:
the parent type

setParentType

public void setParentType(String type)
Sets the parent service type.

Parameters:
type - the parent type

getResourceUrl

public String getResourceUrl()
Gets the resource URL for the service.

Returns:
the resource URL

setResourceUrl

public void setResourceUrl(String url)
Sets the resource URL for the service.

Parameters:
url - the resource URL

getRestUrl

public String getRestUrl()
Gets the REST URL for the service.

Returns:
the REST URL

setRestUrl

public void setRestUrl(String url)
Sets the REST URL for the service.

Parameters:
url - the REST URL

getSoapUrl

public String getSoapUrl()
Gets the SOAP URL for the service.

Returns:
the SOAP URL

setSoapUrl

public void setSoapUrl(String url)
Sets the SOAP URL for the service.

Parameters:
url - the SOAP URL

getThumbnailUrl

public String getThumbnailUrl()
Gets the thumbnail URL for the service.

Returns:
the thumbnail URL

setThumbnailUrl

public void setThumbnailUrl(String url)
Sets the thumbnail URL for the service.

Parameters:
url - the thumbnail URL

getType

public String getType()
Gets the service type.

Returns:
the type

setType

public void setType(String type)
Sets the service type.

Parameters:
type - the type

addKeywords

public void addKeywords(String words,
                        String delimiter)
Adds one or more keywords to the keyword set.

Parameters:
words - the delimited list of words to add
delimiter - thedelimited (can be null)

addRDFPair

public void addRDFPair(String predicate,
                       String value)
Adds a predicate/value pair to the catch-all map of RDF pairs associated with the service.

Parameters:
predicate - the predicate URI
value - the literal value

asDublinCore

public String asDublinCore(AGSProcessor processor)
                    throws Exception
Returns the Dublin Core metadata for the service.

Parameters:
processor - the ArcGIS Server service processor
Returns:
the Dublin Core metadata
Throws:
Exception - if an exception occurs

asDublinCore

public String asDublinCore(ApplicationConfiguration cfg,
                           HttpClientRequest http)
                    throws Exception
Returns the Dublin Core metadata for the service.

Parameters:
cfg - application configuration
http - HTTP client request
Returns:
the Dublin Core metadata
Throws:
Exception - if an exception occurs

toString

public String toString()
Returns a string representation of the object.

Overrides:
toString in class Object
Returns:
the string

Esri Geoportal Server
1.0

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