Package org.gvsig.catalog.csw.messages
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
- Author:
- Jorge Piera LLodrĂ¡ (jorge.piera@iver.es)
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CSWCapabilitiesprotected CSWAbstractProfileprotected CatalogQuery -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringCreates the filter encoding queryprotected Stringprotected StringcreateGetRecordsHeader(int firstRecord) Create the GetRecords header.protected Stringprotected abstract Stringprotected booleangetCoordinatesOption(String coordinatesOption) This function returns true only when the user has choosen the "Fully Outside Of" of the coordinates option.protected StringgetElementSetNameLabel(Search searchType) Create and return the ElementName and the ElementSetName tagsprotected FilterEncodingCreates the filter encoding.static org.apache.commons.httpclient.NameValuePair[]static org.apache.commons.httpclient.NameValuePair[]The get capabilities operation started with lower case.static org.apache.commons.httpclient.NameValuePair[]getHTTPGETDescribeRecord(String version) getHTTPPostGetRecordsMessage(CSWCapabilities capabilities, CatalogQuery query, org.gvsig.utils.swing.jcomboServer.ServerData serverData, int firstRecord) Creates and returns the GetRecords requestprotected StringgetOutputSchema(String[] outputSchemas) Returns the OutputSchema.protected StringgetResultType(String[] resultType) Returns a common reslut type if the getCapabilities doesn't have one.
-
Field Details
-
capabilities
-
query
-
profile
-
-
Constructor Details
-
CSWAbstractMessages
- 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
Create the GetRecords header.- Parameters:
firstRecord-- Returns:
-
getResultType
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
Returns the OutputSchema. If the ISO19115 is supported, we prefer this- Parameters:
outputSchemas-OutputFormat- The array of outputFormats parsed.- Returns:
- Just one String
-
createGetRecordsQuery
- Returns:
- the Query xml sub tree of the GetRecords operation
-
getElementSetNameLabel
Create and return the ElementName and the ElementSetName tags- Parameters:
searchType-- Returns:
-
createGetRecordsConstraint
- Returns:
- the Constarint xml sub tree of the GetRecords operation
-
getContraintVersion
- Returns:
- the constraint version
-
getFilterEncoding
Creates the filter encoding. It can be overridden by the children classes.- Returns:
- The filter encoding to use
-
createFilterEncoding
Creates the filter encoding query- Parameters:
query-- Returns:
-
getCoordinatesOption
This function returns true only when the user has choosen the "Fully Outside Of" of the coordinates option.- Parameters:
coordinatesOption-- Returns:
-