Class WmsClient

java.lang.Object
de.latlon.ets.wms13.core.client.WmsClient

public class WmsClient extends Object
A WMS 1.3.0 client component supporting HTTP GET and POST.
Author:
Lyn Goltz
  • Constructor Details

    • WmsClient

      public WmsClient(Document wmsCapabilities)
      Constructs a client that is aware of the capabilities of some WMS. The request and response may be logged to a default JDK logger (in the namespace "com.sun.jersey.api.client").
      Parameters:
      wmsCapabilities - the WMS capabilities document, never null
  • Method Details

    • getCapabilities

      public Document getCapabilities()
      Retrieves a complete representation of the capabilities document from the WMS implementation described by the service metadata.
      Returns:
      a document containing the response to a GetCapabilities request
    • submitRequest

      public jakarta.ws.rs.core.Response submitRequest(WmsKvpRequest request, URI endpoint)
      Submits a HTTP GET request.
      Parameters:
      request - the KVP encoded request, never null
      endpoint - the service endpoint, never null
      Returns:
      the Response object representing the response message
    • submitRequest

      public jakarta.ws.rs.core.Response submitRequest(Source payload, URI endpoint)
      Submits a HTTP POST request.
      Parameters:
      payload - the payload in XML format
      endpoint - the service endpoint
      Returns:
      the response message