diff --git a/README.md b/README.md index 081f839..105749f 100644 --- a/README.md +++ b/README.md @@ -155,7 +155,7 @@ different operations: * [index](./staccato-commons/src/main/java/com/planet/staccato/filter/ItemIndexFilter.java) * [update](./staccato-commons/src/main/java/com/planet/staccato/filter/ItemUpdateFilter.java) -* [search](./staccato-commons/src/main/java/com/planet/stacccato/filter/ItemSearchFilter.java) +* [search](./staccato-commons/src/main/java/com/planet/staccato/filter/ItemSearchFilter.java) Any Spring managed bean that implements one of these interfaces will be called during the corresponding event in the request lifecycle. An bean that implements ItemIndexFilter will be called before an item is indexed in Elasticsearch. @@ -202,7 +202,7 @@ the data is serialized/deserialized the way you want. or simply extend [`CollectionMetadataAdapter`](../staccato-commons/src/main/java/com/planet/staccato/collection/CollectionMetadataAdapter.java). 4) A class annotated with `@Configuration` that creates 2 beans, both instances of your `CollectionMetadata` class. -One bean is the the WFS3 collection and one is the STAC catalog. Yes, it seems silly, but there are differences per +One bean is the WFS3 collection and one is the STAC catalog. Yes, it seems silly, but there are differences per the spec (the collection is WFS3 compliant; the catalog enables STAC-specific capabilities, such as the traversing subcatalogs). It is important that when creating the collection bean, you set `metadata.setCatalogType(CatalogType.COLLECTION);` and when you create the catalog bean, you set diff --git a/staccato-application/src/main/java/com/planet/staccato/catalog/LinkGenerator.java b/staccato-application/src/main/java/com/planet/staccato/catalog/LinkGenerator.java index 0476022..7fea5b0 100644 --- a/staccato-application/src/main/java/com/planet/staccato/catalog/LinkGenerator.java +++ b/staccato-application/src/main/java/com/planet/staccato/catalog/LinkGenerator.java @@ -111,7 +111,7 @@ public void generatePropertyValueLinks(ServerRequest request, CollectionMetadata * @return The protocol/host/port portion of the URL */ public String getSelfString(ServerRequest request) { - // request.uri() shceme seems to always be "http" + // request.uri() scheme seems to always be "http" String self = request.uri().toASCIIString(); if (request.uri().getScheme().equalsIgnoreCase("http") && linksConfigProps.getSelf().getScheme().equalsIgnoreCase("https")) { @@ -164,7 +164,7 @@ public static String appendLinkPath(String url, String ...subPaths) { log.warn("LinkGenerator encounters malformed url " + e.toString()); return url; } catch(URISyntaxException e) { - log.warn("LinkGenerator encounteres uri syntax exception " + e.toString()); + log.warn("LinkGenerator encountered uri syntax exception " + e.toString()); } return result; } diff --git a/staccato-application/src/main/java/com/planet/staccato/exceptions/InvalidParameterException.java b/staccato-application/src/main/java/com/planet/staccato/exceptions/InvalidParameterException.java index 31960d0..9207030 100644 --- a/staccato-application/src/main/java/com/planet/staccato/exceptions/InvalidParameterException.java +++ b/staccato-application/src/main/java/com/planet/staccato/exceptions/InvalidParameterException.java @@ -17,8 +17,8 @@ public InvalidParameterException(String message) { super(message); } - public InvalidParameterException(String invalidParameter, Collection knownParmaeters) { - super(buildMessage(invalidParameter, knownParmaeters)); + public InvalidParameterException(String invalidParameter, Collection knownParameters) { + super(buildMessage(invalidParameter, knownParameters)); } public static String buildMessage(String invalidParameter, Collection knownParameters) { diff --git a/staccato-collections/planet/src/main/java/com/planet/staccato/planet/Planet.java b/staccato-collections/planet/src/main/java/com/planet/staccato/planet/Planet.java index 43f1c48..13e71a5 100644 --- a/staccato-collections/planet/src/main/java/com/planet/staccato/planet/Planet.java +++ b/staccato-collections/planet/src/main/java/com/planet/staccato/planet/Planet.java @@ -34,7 +34,7 @@ public interface Planet { @JsonAlias("quality_category") @JsonProperty(EXTENSION_PREFIX + ":quality_category") String getQualityCategory(); - void setQualityCategory(String quailtyCategory); + void setQualityCategory(String qualityCategory); @JsonAlias("satellite_azimuth") @JsonProperty(EXTENSION_PREFIX + ":satellite_azimuth") diff --git a/staccato-commons/src/main/java/com/planet/staccato/model/ItemProperties.java b/staccato-commons/src/main/java/com/planet/staccato/model/ItemProperties.java index 98c33b2..cfb1795 100644 --- a/staccato-commons/src/main/java/com/planet/staccato/model/ItemProperties.java +++ b/staccato-commons/src/main/java/com/planet/staccato/model/ItemProperties.java @@ -8,7 +8,7 @@ import java.util.Objects; /** - * provides the core metatdata fieldsExtension plus extensions + * provides the core metadata fieldsExtension plus extensions */ @Data public class ItemProperties { diff --git a/staccato-commons/src/main/java/com/planet/staccato/properties/extension/EO.java b/staccato-commons/src/main/java/com/planet/staccato/properties/extension/EO.java index c50c91b..1473b8d 100644 --- a/staccato-commons/src/main/java/com/planet/staccato/properties/extension/EO.java +++ b/staccato-commons/src/main/java/com/planet/staccato/properties/extension/EO.java @@ -34,7 +34,7 @@ class Band { @Mapping(type = MappingType.KEYWORD) @JsonProperty("common_name") - private String commmonName; + private String commonName; @Mapping(type = MappingType.TEXT) private String description; @@ -57,7 +57,7 @@ public Band name(String name) { } public Band commonName(String commonName) { - setCommmonName(commonName); + setCommonName(commonName); return this; } diff --git a/staccato-commons/src/main/java/com/planet/staccato/properties/extension/ItemAssets.java b/staccato-commons/src/main/java/com/planet/staccato/properties/extension/ItemAssets.java index fd63ed1..f87b7d2 100644 --- a/staccato-commons/src/main/java/com/planet/staccato/properties/extension/ItemAssets.java +++ b/staccato-commons/src/main/java/com/planet/staccato/properties/extension/ItemAssets.java @@ -6,7 +6,7 @@ import java.util.Map; /** - * Defines the item assets xtension and Jackson property values + * Defines the item assets extension and Jackson property values * @see Item Assets Extension * @author joshfix * Created on 06/08/2020 diff --git a/staccato-commons/src/main/java/com/planet/staccato/properties/extension/TiledAssetsLinks.java b/staccato-commons/src/main/java/com/planet/staccato/properties/extension/TiledAssetsLinks.java index cbc78c1..e0d26b0 100644 --- a/staccato-commons/src/main/java/com/planet/staccato/properties/extension/TiledAssetsLinks.java +++ b/staccato-commons/src/main/java/com/planet/staccato/properties/extension/TiledAssetsLinks.java @@ -49,7 +49,7 @@ class PixelBuffer { private Double borderTop; @JsonProperty("border_left") private Double borderLeft; - @JsonProperty("border_bottomw") + @JsonProperty("border_bottom") private Double borderBottom; @JsonProperty("border_right") private Double borderRight; diff --git a/staccato-elasticsearch/src/main/java/com/planet/staccato/es/QueryBuilderHelper.java b/staccato-elasticsearch/src/main/java/com/planet/staccato/es/QueryBuilderHelper.java index 0dcf4cc..a7ad8fd 100644 --- a/staccato-elasticsearch/src/main/java/com/planet/staccato/es/QueryBuilderHelper.java +++ b/staccato-elasticsearch/src/main/java/com/planet/staccato/es/QueryBuilderHelper.java @@ -215,8 +215,8 @@ public static Optional intersectsBuilder(Object intersects) { /** * Builds an Elasticsearch query from the OGC CQL filter spec * - * @param filterCrs The CRS of the filter as specified by the API paramter "filter-crs" - * @param filterLang The language of the filter as specified by the API paramter "filter-lang" + * @param filterCrs The CRS of the filter as specified by the API parameter "filter-crs" + * @param filterLang The language of the filter as specified by the API parameter "filter-lang" * @param filter The query filter passed in the api request * @return The Elasticsearch query builder */ diff --git a/staccato-elasticsearch/src/main/java/com/planet/staccato/es/initializer/ElasticsearchAvailabilityChecker.java b/staccato-elasticsearch/src/main/java/com/planet/staccato/es/initializer/ElasticsearchAvailabilityChecker.java index 8686bae..ec7914b 100644 --- a/staccato-elasticsearch/src/main/java/com/planet/staccato/es/initializer/ElasticsearchAvailabilityChecker.java +++ b/staccato-elasticsearch/src/main/java/com/planet/staccato/es/initializer/ElasticsearchAvailabilityChecker.java @@ -17,7 +17,7 @@ * An initializer that will prevent the STAC application from reporting a healthy status until it can successfully * connect to the Elasticsearch instance and retrieve the version number or until the maximum number of attempts * as defined in {@link ElasticsearchConfigProps ElasticsearchConfigProps.Es.maxReconnectionAttempts} has been reached. - * After a failed attempt, reattempts will implement a back-off delay strategy according the the fibonacci sequence. + * After a failed attempt, reattempts will implement a back-off delay strategy according the fibonacci sequence. * @author joshfix * Created on 2/27/18 */