Class CSWClient
java.lang.Object
org.opengis.cite.cat20.dgiwg10.util.CSWClient
- Author:
- Lyn Goltz
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRetrieves a complete representation of the capabilities document from the CSW 2.0.2 implementation described by the service metadata.jakarta.ws.rs.core.Response
submitGetRequest
(URI endpoint, Map<String, String> queryParams) Submits an HTTP request message.protected jakarta.ws.rs.core.Response
submitPostRequest
(jakarta.ws.rs.client.Client client, URI endpoint, Document request) jakarta.ws.rs.core.Response
submitPostRequest
(URI endpoint, Document request) Submits an HTTP request message.jakarta.ws.rs.core.Response
submitPostRequest
(URI endpoint, Document request, String user, String pw)
-
Constructor Details
-
CSWClient
public CSWClient()Default client constructor. The client is configured to consume SOAP message entities. The request and response may be logged to a default JDK logger (in the namespace "com.sun.jersey.api.client"). -
CSWClient
Constructs a client that is aware of the capabilities of a WFS implementation.- Parameters:
capabilitiesDocument
- A service description (e.g. WFS capabilities document).
-
-
Method Details
-
submitGetRequest
Submits an HTTP request message. For GET requests the XML request entity is serialized to its corresponding KVP string format and added to the query component of the Request-URI. For SOAP requests that adhere to the "Request-Response" message exchange pattern, the outbound message entity is a SOAP envelope containing the standard XML request in the body.- Parameters:
endpoint
- The service endpoint.queryParams
- a list of query parameters, may benull
- Returns:
- A ClientResponse object representing the response message.
-
submitPostRequest
Submits an HTTP request message. For POST requests the XML request entity is added as request entity.- Parameters:
endpoint
- The service endpoint.request
- the request to send, nevernull
- Returns:
- A ClientResponse object representing the response message.
-
submitPostRequest
-
submitPostRequest
-
getCapabilities
Retrieves a complete representation of the capabilities document from the CSW 2.0.2 implementation described by the service metadata. TheacceptVersions
parameter is omitted, so the response shall reflect the latest version supported by the SUT.- Returns:
- A Document containing the response to a GetCapabilities request, or
null
if one could not be obtained.
-