Class CSWAbstractMessages

java.lang.Object
org.gvsig.catalog.csw.messages.CSWAbstractMessages
Direct Known Subclasses:
CSWMessages0_9_0, CSWMessages2_0_0, CSWMessages2_0_1, CSWMessages2_0_2

public abstract class CSWAbstractMessages extends Object
Author:
Jorge Piera LLodrĂ¡ (jorge.piera@iver.es)
  • Field Details

  • Constructor Details

    • CSWAbstractMessages

      public CSWAbstractMessages(CSWAbstractProfile profile)
      Parameters:
      profile - The profile to create the query
  • Method Details

    • getHTTPGETCapabilities

      public static org.apache.commons.httpclient.NameValuePair[] getHTTPGETCapabilities()
    • getHTTPGETCapabilitiesLower

      public static org.apache.commons.httpclient.NameValuePair[] getHTTPGETCapabilitiesLower()
      The get capabilities operation started with lower case. There are some servers that has this bug
      Returns:
    • getHTTPGETDescribeRecord

      public static org.apache.commons.httpclient.NameValuePair[] getHTTPGETDescribeRecord(String version)
    • getHTTPPostGetRecordsMessage

      public String getHTTPPostGetRecordsMessage(CSWCapabilities capabilities, CatalogQuery query, org.gvsig.utils.swing.jcomboServer.ServerData serverData, int firstRecord)
      Creates and returns the GetRecords request
      Parameters:
      query -
      firstRecord -
      Returns:
    • createGetRecordsHeader

      protected String createGetRecordsHeader(int firstRecord)
      Create the GetRecords header.
      Parameters:
      firstRecord -
      Returns:
    • getResultType

      protected String getResultType(String[] resultType)
      Returns a common reslut type if the getCapabilities doesn't have one. Sometimes it works.
      Parameters:
      resultType - The array of result types parsed.
      Returns:
      Just one String
    • getOutputSchema

      protected String getOutputSchema(String[] outputSchemas)
      Returns the OutputSchema. If the ISO19115 is supported, we prefer this
      Parameters:
      outputSchemas -
      OutputFormat - The array of outputFormats parsed.
      Returns:
      Just one String
    • createGetRecordsQuery

      protected String createGetRecordsQuery()
      Returns:
      the Query xml sub tree of the GetRecords operation
    • getElementSetNameLabel

      protected String getElementSetNameLabel(Search searchType)
      Create and return the ElementName and the ElementSetName tags
      Parameters:
      searchType -
      Returns:
    • createGetRecordsConstraint

      protected String createGetRecordsConstraint()
      Returns:
      the Constarint xml sub tree of the GetRecords operation
    • getContraintVersion

      protected abstract String getContraintVersion()
      Returns:
      the constraint version
    • getFilterEncoding

      protected FilterEncoding getFilterEncoding()
      Creates the filter encoding. It can be overridden by the children classes.
      Returns:
      The filter encoding to use
    • createFilterEncoding

      protected String createFilterEncoding()
      Creates the filter encoding query
      Parameters:
      query -
      Returns:
    • getCoordinatesOption

      protected boolean getCoordinatesOption(String coordinatesOption)
      This function returns true only when the user has choosen the "Fully Outside Of" of the coordinates option.
      Parameters:
      coordinatesOption -
      Returns: