Class HarvestType


  • public class HarvestType
    extends RequestBaseType
    Requests that the catalogue attempt to harvest a resource from some network location identified by the source URL. Source - a URL from which the resource is retrieved ResourceType - normally a URI that specifies the type of the resource (DCMES v1.1) being harvested if it is known. ResourceFormat - a media type indicating the format of the resource being harvested. The default is "application/xml". ResponseHandler - a reference to some endpoint to which the response shall be forwarded when the harvest operation has been completed HarvestInterval - an interval expressed using the ISO 8601 syntax; it specifies the interval between harvest attempts (e.g., P6M indicates an interval of six months).

    Java class for HarvestType complex type.

    The following schema fragment specifies the expected content contained within this class.

     <complexType name="HarvestType">
       <complexContent>
         <extension base="{http://www.opengis.net/cat/csw/2.0.2}RequestBaseType">
           <sequence>
             <element name="Source" type="{http://www.w3.org/2001/XMLSchema}anyURI"/>
             <element name="ResourceType" type="{http://www.w3.org/2001/XMLSchema}string"/>
             <element name="ResourceFormat" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
             <element name="HarvestInterval" type="{http://www.w3.org/2001/XMLSchema}duration" minOccurs="0"/>
             <element name="ResponseHandler" type="{http://www.w3.org/2001/XMLSchema}anyURI" maxOccurs="unbounded" minOccurs="0"/>
           </sequence>
         </extension>
       </complexContent>
     </complexType>
     
    • Field Detail

      • source

        protected String source
      • resourceType

        protected String resourceType
      • resourceFormat

        protected String resourceFormat
      • harvestInterval

        protected Duration harvestInterval
      • responseHandler

        protected List<String> responseHandler
    • Constructor Detail

      • HarvestType

        public HarvestType()
        Default no-arg constructor
    • Method Detail

      • getSource

        public String getSource()
        Gets the value of the source property.
        Returns:
        possible object is String
      • setSource

        public void setSource​(String value)
        Sets the value of the source property.
        Parameters:
        value - allowed object is String
      • getResourceType

        public String getResourceType()
        Gets the value of the resourceType property.
        Returns:
        possible object is String
      • setResourceType

        public void setResourceType​(String value)
        Sets the value of the resourceType property.
        Parameters:
        value - allowed object is String
      • getResourceFormat

        public String getResourceFormat()
        Gets the value of the resourceFormat property.
        Returns:
        possible object is String
      • setResourceFormat

        public void setResourceFormat​(String value)
        Sets the value of the resourceFormat property.
        Parameters:
        value - allowed object is String
      • getHarvestInterval

        public Duration getHarvestInterval()
        Gets the value of the harvestInterval property.
        Returns:
        possible object is Duration
      • setHarvestInterval

        public void setHarvestInterval​(Duration value)
        Sets the value of the harvestInterval property.
        Parameters:
        value - allowed object is Duration
      • getResponseHandler

        public List<String> getResponseHandler()
        Gets the value of the responseHandler property.

        This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the responseHandler property.

        For example, to add a new item, do as follows:

            getResponseHandler().add(newItem);
         

        Objects of the following type(s) are allowed in the list String