-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[GEOS-8222] Cascading WMTS: fixes and improvements as per code review
- Loading branch information
Showing
38 changed files
with
15,837 additions
and
274 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
82 changes: 82 additions & 0 deletions
82
src/main/src/main/java/org/geoserver/catalog/HTTPStoreInfo.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,82 @@ | |||
/* (c) 2017 Open Source Geospatial Foundation - all rights reserved | |||
* This code is licensed under the GPL 2.0 license, available at the root | |||
* application directory. | |||
*/ | |||
package org.geoserver.catalog; | |||
|
|||
/** | |||
* A store backed by a remote HTTP service. | |||
* | |||
* Most of these methods have been refactored from WMSStoreInfo, now a sub-interface. | |||
* | |||
* @author Andrea Aime - OpenGeo | |||
* @author Emanuele Tajariol (etj at geo-solutions dot it) | |||
*/ | |||
public interface HTTPStoreInfo extends StoreInfo { | |||
|
|||
/** | |||
* The entrypoint URL, usually a getCapabilities | |||
*/ | |||
String getCapabilitiesURL(); | |||
|
|||
/** | |||
* Sets entrypoint / getCapabilities url. | |||
* | |||
* @uml.property name="url" | |||
*/ | |||
void setCapabilitiesURL(String url); | |||
|
|||
String getUsername(); | |||
|
|||
void setUsername(String user); | |||
|
|||
String getPassword(); | |||
|
|||
void setPassword(String password); | |||
|
|||
/** | |||
* @return Upper limit on the number of http connections the store should hold in the pool if | |||
* {@link #isUseConnectionPooling()} is {@code true}. | |||
*/ | |||
int getMaxConnections(); | |||
|
|||
void setMaxConnections(int maxConcurrentConnections); | |||
|
|||
/** | |||
* @return number of seconds to wait on read before time out, defaults to 60 | |||
*/ | |||
int getReadTimeout(); | |||
|
|||
/** | |||
* @param timeoutSeconds | |||
* seconds to wait before timing out a read request | |||
*/ | |||
void setReadTimeout(int timeoutSeconds); | |||
|
|||
/** | |||
* @return seconds to wait for connect requests before timing out, defaults to 30 | |||
*/ | |||
int getConnectTimeout(); | |||
|
|||
/** | |||
* @param seconds | |||
* to wait for connect requests before timing out | |||
*/ | |||
void setConnectTimeout(int timeoutSeconds); | |||
|
|||
/** | |||
* @return {@code true} (default) if the store shall use an http connection managed that pools | |||
* connections, {@code false} otherwise. | |||
* @see #getMaxConnections() | |||
*/ | |||
public boolean isUseConnectionPooling(); | |||
|
|||
/** | |||
* @param useHttpConnectionPooling | |||
* {@code true} if the store shall use an http connection managed that pools | |||
* connections, {@code false} otherwise. | |||
* @see #setMaxConnections(int) | |||
*/ | |||
public void setUseConnectionPooling(boolean useHttpConnectionPooling); | |||
|
|||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
src/main/src/main/java/org/geoserver/catalog/WMTSLayerInfo.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
src/main/src/main/java/org/geoserver/catalog/impl/WMTSStoreInfoImpl.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.