Package de.latlon.ets.wms13.core.client
Class WmsClient
java.lang.Object
de.latlon.ets.wms13.core.client.WmsClient
A WMS 1.3.0 client component supporting HTTP GET and POST.
- Author:
- Lyn Goltz
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRetrieves a complete representation of the capabilities document from the WMS implementation described by the service metadata.jakarta.ws.rs.core.ResponsesubmitRequest(WmsKvpRequest request, URI endpoint) Submits a HTTP GET request.jakarta.ws.rs.core.ResponsesubmitRequest(Source payload, URI endpoint) Submits a HTTP POST request.
-
Constructor Details
-
WmsClient
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, nevernull
-
-
Method Details
-
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
Submits a HTTP GET request.- Parameters:
request- the KVP encoded request, nevernullendpoint- the service endpoint, nevernull- Returns:
- the
Responseobject representing the response message
-
submitRequest
Submits a HTTP POST request.- Parameters:
payload- the payload in XML formatendpoint- the service endpoint- Returns:
- the response message
-