Skip to content

Commit

Permalink
To support HTTP Headers see github.com/geoserver/geoserver/pull/7552
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Smythe committed Apr 17, 2024
1 parent 6aa6661 commit 2c64415
Showing 1 changed file with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,27 @@ public WebMapServer(final URL serverURL, final HTTPClient httpClient, Map<String
super(serverURL, httpClient, null, hints);
}

/**
* Creates a new WebMapServer instance and attempts to retrieve the Capabilities document
* specified by serverURL.
*
* @param serverURL a URL that points to the capabilities document of a server
* @param httpClient The client to be used when performing HTTP requests
* @param hints A map of hints. Can be used to control some aspects of the XML parsing, see
* {@link XMLHandlerHints} for a reference
* @param headers A map of headers. These will be added when making the HTTP request
* @throws IOException if there is an error communicating with the server
* @throws ServiceException if the server responds with an error
*/
public WebMapServer(
final URL serverURL,
final HTTPClient httpClient,
Map<String, Object> hints,
Map<String, String> headers)
throws IOException, ServiceException {
super(serverURL, httpClient, null, hints, headers);
}

/**
* Creates a new WebMapServer instance and attempts to retrieve the Capabilities document
* specified by serverURL.
Expand Down

0 comments on commit 2c64415

Please sign in to comment.