public abstract class CSWAbstractMessages extends Object
Modifier and Type | Field and Description |
---|---|
protected CSWCapabilities |
capabilities |
protected CSWAbstractProfile |
profile |
protected CatalogQuery |
query |
Constructor and Description |
---|
CSWAbstractMessages(CSWAbstractProfile profile) |
Modifier and Type | Method and Description |
---|---|
protected String |
createFilterEncoding()
Creates the filter encoding query
|
protected String |
createGetRecordsConstraint() |
protected String |
createGetRecordsHeader(int firstRecord)
Create the GetRecords header.
|
protected String |
createGetRecordsQuery() |
protected abstract String |
getContraintVersion() |
protected boolean |
getCoordinatesOption(String coordinatesOption)
This function returns true only when the user has choosen the
"Fully Outside Of" of the coordinates option.
|
protected String |
getElementSetNameLabel(Search searchType)
Create and return the ElementName and the ElementSetName tags
|
protected FilterEncoding |
getFilterEncoding()
Creates the filter encoding.
|
static NameValuePair[] |
getHTTPGETCapabilities() |
static NameValuePair[] |
getHTTPGETCapabilitiesLower()
The get capabilities operation started with lower case.
|
static NameValuePair[] |
getHTTPGETDescribeRecord(String version) |
String |
getHTTPPostGetRecordsMessage(CSWCapabilities capabilities,
CatalogQuery query,
ServerData serverData,
int firstRecord)
Creates and returns the GetRecords request
|
protected String |
getOutputSchema(String[] outputSchemas)
Returns the OutputSchema.
|
protected String |
getResultType(String[] resultType)
Returns a common reslut type if the getCapabilities doesn't have
one.
|
protected CSWCapabilities capabilities
protected CatalogQuery query
protected CSWAbstractProfile profile
public CSWAbstractMessages(CSWAbstractProfile profile)
profile
- The profile to create the querypublic static NameValuePair[] getHTTPGETCapabilities()
public static NameValuePair[] getHTTPGETCapabilitiesLower()
public static NameValuePair[] getHTTPGETDescribeRecord(String version)
public String getHTTPPostGetRecordsMessage(CSWCapabilities capabilities, CatalogQuery query, ServerData serverData, int firstRecord)
query
- firstRecord
- protected String createGetRecordsHeader(int firstRecord)
firstRecord
- protected String getResultType(String[] resultType)
resultType
- The array of result types parsed.protected String getOutputSchema(String[] outputSchemas)
OutputFormat
- The array of outputFormats parsed.outputSchemas
- protected String createGetRecordsQuery()
protected String getElementSetNameLabel(Search searchType)
searchType
- protected String createGetRecordsConstraint()
protected abstract String getContraintVersion()
protected FilterEncoding getFilterEncoding()
protected String createFilterEncoding()
query
- protected boolean getCoordinatesOption(String coordinatesOption)
coordinatesOption
-