public abstract class CSWAbstractMessages
extends java.lang.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 java.lang.String |
createFilterEncoding()
Creates the filter encoding query
|
protected java.lang.String |
createGetRecordsConstraint() |
protected java.lang.String |
createGetRecordsHeader(int firstRecord)
Create the GetRecords header.
|
protected java.lang.String |
createGetRecordsQuery() |
protected abstract java.lang.String |
getContraintVersion() |
protected boolean |
getCoordinatesOption(java.lang.String coordinatesOption)
This function returns true only when the user has choosen the
"Fully Outside Of" of the coordinates option.
|
protected java.lang.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(java.lang.String version) |
java.lang.String |
getHTTPPostGetRecordsMessage(CSWCapabilities capabilities,
CatalogQuery query,
ServerData serverData,
int firstRecord)
Creates and returns the GetRecords request
|
protected java.lang.String |
getOutputSchema(java.lang.String[] outputSchemas)
Returns the OutputSchema.
|
protected java.lang.String |
getResultType(java.lang.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(java.lang.String version)
public java.lang.String getHTTPPostGetRecordsMessage(CSWCapabilities capabilities, CatalogQuery query, ServerData serverData, int firstRecord)
query
- firstRecord
- protected java.lang.String createGetRecordsHeader(int firstRecord)
firstRecord
- protected java.lang.String getResultType(java.lang.String[] resultType)
resultType
- The array of result types parsed.protected java.lang.String getOutputSchema(java.lang.String[] outputSchemas)
OutputFormat
- The array of outputFormats parsed.outputSchemas
- protected java.lang.String createGetRecordsQuery()
protected java.lang.String getElementSetNameLabel(Search searchType)
searchType
- protected java.lang.String createGetRecordsConstraint()
protected abstract java.lang.String getContraintVersion()
protected FilterEncoding getFilterEncoding()
protected java.lang.String createFilterEncoding()
query
- protected boolean getCoordinatesOption(java.lang.String coordinatesOption)
coordinatesOption
-