Class RequestCreator
java.lang.Object
org.opengis.cite.cat20.dgiwg10.xml.RequestCreator
- Author:
- Lyn Goltz
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateDeleteRequest
(String identifier) createGetRecordById
(OutputSchema outputSchema, ElementSetName elementSetName, String identifier) createGetRecordsRequest
(OutputSchema outputSchema, ElementSetName elementSetName) createGetRecordsRequest
(OutputSchema outputSchema, ElementSetName elementSetName, Node filter) createHarvest
(String source) createInsertRequest
(RequestCreator.RECORDTYPE recordType) createUpdateRequest
(RequestCreator.RECORDTYPE recordType)
-
Constructor Details
-
RequestCreator
public RequestCreator()
-
-
Method Details
-
createGetRecordsRequest
- Parameters:
outputSchema
- the outputSchema to use in the request, nevernull
elementSetName
- the elementSetName to use in the request, nevernull
- Returns:
- the request, never
null
- Throws:
IllegalArgumentException
- if no POST endpoint for operation GetRecords could be found in the capabilities
-
createGetRecordsRequest
public Document createGetRecordsRequest(OutputSchema outputSchema, ElementSetName elementSetName, Node filter) - Parameters:
outputSchema
- the outputSchema to use in the request, nevernull
elementSetName
- the elementSetName to use in the request, nevernull
filter
- the filter to append (local name must be 'Filter'), may benull
if no filter should be added- Returns:
- the request, never
null
- Throws:
IllegalArgumentException
- if no POST endpoint for operation GetRecords could be found in the capabilities or the passed filter does not have a local name 'Filter'
-
createGetRecordById
public Document createGetRecordById(OutputSchema outputSchema, ElementSetName elementSetName, String identifier) - Parameters:
outputSchema
- the outputSchema to use in the request, nevernull
elementSetName
- the elementSetName to use in the request, nevernull
identifier
- the id to append, nevernull
- Returns:
- the request, never
null
- Throws:
IllegalArgumentException
- if no POST endpoint for operation GetRecordById could be found in the capabilities
-
createInsertRequest
- Parameters:
recordType
- the type of the record, nevernull
- Returns:
- an CSW insert request, never
null
- Throws:
IllegalArgumentException
- if the request could not be created
-
createUpdateRequest
- Parameters:
recordType
- the type of the record, nevernull
- Returns:
- an CSW update request, never
null
- Throws:
IllegalArgumentException
- if the request could not be created
-
createDeleteRequest
- Parameters:
identifier
- the identifier of the record to delete, nevernull
- Returns:
- an CSW delete request, never
null
- Throws:
IllegalArgumentException
- if the request could not be created
-
createHarvest
-