diff --git a/docsys/src/main/java/io/nosqlbench/docsys/DocsysDefaultAppPath.java b/docsys/src/main/java/io/nosqlbench/docsys/DocsysDefaultAppPath.java index b3e388d7f..a6a2cc94d 100644 --- a/docsys/src/main/java/io/nosqlbench/docsys/DocsysDefaultAppPath.java +++ b/docsys/src/main/java/io/nosqlbench/docsys/DocsysDefaultAppPath.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2022 nosqlbench + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package io.nosqlbench.docsys; import io.nosqlbench.docapi.Docs; diff --git a/docsys/src/main/java/io/nosqlbench/docsys/api/DocsysDynamicManifest.java b/docsys/src/main/java/io/nosqlbench/docsys/api/DocsysDynamicManifest.java index d70a7cd65..bb27e67b7 100644 --- a/docsys/src/main/java/io/nosqlbench/docsys/api/DocsysDynamicManifest.java +++ b/docsys/src/main/java/io/nosqlbench/docsys/api/DocsysDynamicManifest.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2022 nosqlbench + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package io.nosqlbench.docsys.api; import io.nosqlbench.docapi.DocsBinder; diff --git a/docsys/src/main/java/io/nosqlbench/docsys/api/DocsysStaticManifest.java b/docsys/src/main/java/io/nosqlbench/docsys/api/DocsysStaticManifest.java index a24be8600..aba910fe6 100644 --- a/docsys/src/main/java/io/nosqlbench/docsys/api/DocsysStaticManifest.java +++ b/docsys/src/main/java/io/nosqlbench/docsys/api/DocsysStaticManifest.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2022 nosqlbench + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package io.nosqlbench.docsys.api; import io.nosqlbench.docapi.DocsBinder; diff --git a/docsys/src/main/java/io/nosqlbench/docsys/api/WebServiceObject.java b/docsys/src/main/java/io/nosqlbench/docsys/api/WebServiceObject.java index ab244294b..5693ba43b 100644 --- a/docsys/src/main/java/io/nosqlbench/docsys/api/WebServiceObject.java +++ b/docsys/src/main/java/io/nosqlbench/docsys/api/WebServiceObject.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2022 nosqlbench + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package io.nosqlbench.docsys.api; /** diff --git a/docsys/src/main/java/io/nosqlbench/docsys/core/DocsysPathLoader.java b/docsys/src/main/java/io/nosqlbench/docsys/core/DocsysPathLoader.java index 2aef8d1e7..e2d94c906 100644 --- a/docsys/src/main/java/io/nosqlbench/docsys/core/DocsysPathLoader.java +++ b/docsys/src/main/java/io/nosqlbench/docsys/core/DocsysPathLoader.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2022 nosqlbench + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package io.nosqlbench.docsys.core; import io.nosqlbench.docapi.*; diff --git a/docsys/src/main/java/io/nosqlbench/docsys/core/NBWebServer.java b/docsys/src/main/java/io/nosqlbench/docsys/core/NBWebServer.java index f2e11e17a..e76252f08 100644 --- a/docsys/src/main/java/io/nosqlbench/docsys/core/NBWebServer.java +++ b/docsys/src/main/java/io/nosqlbench/docsys/core/NBWebServer.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2022 nosqlbench + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package io.nosqlbench.docsys.core; import io.nosqlbench.docsys.DocsysDefaultAppPath; diff --git a/docsys/src/main/java/io/nosqlbench/docsys/core/NBWebServerApp.java b/docsys/src/main/java/io/nosqlbench/docsys/core/NBWebServerApp.java index 012457e86..b455291fb 100644 --- a/docsys/src/main/java/io/nosqlbench/docsys/core/NBWebServerApp.java +++ b/docsys/src/main/java/io/nosqlbench/docsys/core/NBWebServerApp.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2022 nosqlbench + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package io.nosqlbench.docsys.core; import io.nosqlbench.docsys.endpoints.DocsysMarkdownEndpoint; @@ -48,14 +64,14 @@ public class NBWebServerApp { StandardOpenOption[] OVERWRITE = {StandardOpenOption.TRUNCATE_EXISTING,StandardOpenOption.CREATE,StandardOpenOption.WRITE}; - logger.info("generating to directory " + dirpath.toString()); + logger.info("generating to directory " + dirpath); DocsysMarkdownEndpoint dds = new DocsysMarkdownEndpoint(); String markdownList = dds.getMarkdownList(true); Path markdownCsvPath = dirpath.resolve(Path.of("services/docs/markdown.csv")); - logger.info("markdown.csv located at " + markdownCsvPath.toString()); + logger.info("markdown.csv located at " + markdownCsvPath); Files.createDirectories(markdownCsvPath.getParent()); Files.writeString(markdownCsvPath, markdownList, OVERWRITE); @@ -64,7 +80,7 @@ public class NBWebServerApp { for (String markdownFile : markdownFileArray) { Path relativePath = dirpath.resolve(Path.of("services/docs", markdownFile)); - logger.info("Creating " + relativePath.toString()); + logger.info("Creating " + relativePath); Path path = dds.findPath(markdownFile); // String markdown = dds.getFileByPath(markdownFile); diff --git a/docsys/src/main/java/io/nosqlbench/docsys/core/PathWalker.java b/docsys/src/main/java/io/nosqlbench/docsys/core/PathWalker.java index dbe3d0b76..6486184d9 100644 --- a/docsys/src/main/java/io/nosqlbench/docsys/core/PathWalker.java +++ b/docsys/src/main/java/io/nosqlbench/docsys/core/PathWalker.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2022 nosqlbench + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package io.nosqlbench.docsys.core; import org.apache.logging.log4j.Logger; diff --git a/docsys/src/main/java/io/nosqlbench/docsys/endpoints/DocServerStatusEndpoint.java b/docsys/src/main/java/io/nosqlbench/docsys/endpoints/DocServerStatusEndpoint.java index 383370ae5..a551596a1 100644 --- a/docsys/src/main/java/io/nosqlbench/docsys/endpoints/DocServerStatusEndpoint.java +++ b/docsys/src/main/java/io/nosqlbench/docsys/endpoints/DocServerStatusEndpoint.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2022 nosqlbench + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package io.nosqlbench.docsys.endpoints; import io.nosqlbench.docsys.api.WebServiceObject; diff --git a/docsys/src/main/java/io/nosqlbench/docsys/endpoints/DocsysMarkdownEndpoint.java b/docsys/src/main/java/io/nosqlbench/docsys/endpoints/DocsysMarkdownEndpoint.java index a432062b2..87248aace 100644 --- a/docsys/src/main/java/io/nosqlbench/docsys/endpoints/DocsysMarkdownEndpoint.java +++ b/docsys/src/main/java/io/nosqlbench/docsys/endpoints/DocsysMarkdownEndpoint.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2022 nosqlbench + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package io.nosqlbench.docsys.endpoints; import io.nosqlbench.docapi.Docs; diff --git a/docsys/src/main/java/io/nosqlbench/docsys/handlers/EndpointsHandler.java b/docsys/src/main/java/io/nosqlbench/docsys/handlers/EndpointsHandler.java index a9ebbb44e..280e2d33b 100644 --- a/docsys/src/main/java/io/nosqlbench/docsys/handlers/EndpointsHandler.java +++ b/docsys/src/main/java/io/nosqlbench/docsys/handlers/EndpointsHandler.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2022 nosqlbench + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package io.nosqlbench.docsys.handlers; import jakarta.servlet.ServletException; diff --git a/docsys/src/main/java/io/nosqlbench/docsys/handlers/FavIconHandler.java b/docsys/src/main/java/io/nosqlbench/docsys/handlers/FavIconHandler.java index 752501ed5..79c5afb3a 100644 --- a/docsys/src/main/java/io/nosqlbench/docsys/handlers/FavIconHandler.java +++ b/docsys/src/main/java/io/nosqlbench/docsys/handlers/FavIconHandler.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2022 nosqlbench + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package io.nosqlbench.docsys.handlers; import jakarta.servlet.ServletException; @@ -28,7 +44,7 @@ public class FavIconHandler extends AbstractHandler { this.faviconPath = Path.of(faviconPath); if (!this.faviconPath.toFile().exists() && requireFile) { - throw new InvalidParameterException("favicon faviconPath " + this.faviconPath.toString() + " does not exist."); + throw new InvalidParameterException("favicon faviconPath " + this.faviconPath + " does not exist."); } } diff --git a/docsys/src/test/java/io/nosqlbench/docsys/core/DocsysMarkdownLoaderEndpointTest.java b/docsys/src/test/java/io/nosqlbench/docsys/core/DocsysMarkdownLoaderEndpointTest.java index 89b9258c2..af64830a9 100644 --- a/docsys/src/test/java/io/nosqlbench/docsys/core/DocsysMarkdownLoaderEndpointTest.java +++ b/docsys/src/test/java/io/nosqlbench/docsys/core/DocsysMarkdownLoaderEndpointTest.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2022 nosqlbench + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package io.nosqlbench.docsys.core; import io.nosqlbench.docsys.endpoints.DocsysMarkdownEndpoint; diff --git a/docsys/src/test/java/io/nosqlbench/docsys/core/TestServlet1.java b/docsys/src/test/java/io/nosqlbench/docsys/core/TestServlet1.java index a6853f0f6..83071a870 100644 --- a/docsys/src/test/java/io/nosqlbench/docsys/core/TestServlet1.java +++ b/docsys/src/test/java/io/nosqlbench/docsys/core/TestServlet1.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2022 nosqlbench + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package io.nosqlbench.docsys.core; import io.nosqlbench.docsys.api.WebServiceObject;