Class CSWClient

java.lang.Object
org.opengis.cite.cat20.dgiwg10.util.CSWClient

public class CSWClient extends Object
Author:
Lyn Goltz
  • 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

      public CSWClient(Document capabilitiesDocument)
      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

      public jakarta.ws.rs.core.Response submitGetRequest(URI endpoint, Map<String,String> queryParams)
      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 be null
      Returns:
      A ClientResponse object representing the response message.
    • submitPostRequest

      public jakarta.ws.rs.core.Response submitPostRequest(URI endpoint, Document request)
      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, never null
      Returns:
      A ClientResponse object representing the response message.
    • submitPostRequest

      public jakarta.ws.rs.core.Response submitPostRequest(URI endpoint, Document request, String user, String pw)
    • submitPostRequest

      protected jakarta.ws.rs.core.Response submitPostRequest(jakarta.ws.rs.client.Client client, URI endpoint, Document request)
    • getCapabilities

      public Document getCapabilities()
      Retrieves a complete representation of the capabilities document from the CSW 2.0.2 implementation described by the service metadata. The acceptVersions 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.