diff --git a/philter-api/src/main/java/ai/philterd/philter/api/controllers/AbstractController.java b/philter-api/src/main/java/ai/philterd/philter/api/controllers/AbstractController.java index 7522bd2..d0c5b2c 100644 --- a/philter-api/src/main/java/ai/philterd/philter/api/controllers/AbstractController.java +++ b/philter-api/src/main/java/ai/philterd/philter/api/controllers/AbstractController.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Philterd, LLC @ https://www.philterd.ai + * + * 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 ai.philterd.philter.api.controllers; import org.apache.logging.log4j.LogManager; diff --git a/philter-api/src/main/java/ai/philterd/philter/api/controllers/AlertingApiController.java b/philter-api/src/main/java/ai/philterd/philter/api/controllers/AlertingApiController.java index 1a5fb0d..24f81ba 100644 --- a/philter-api/src/main/java/ai/philterd/philter/api/controllers/AlertingApiController.java +++ b/philter-api/src/main/java/ai/philterd/philter/api/controllers/AlertingApiController.java @@ -1,18 +1,34 @@ +/* + * Copyright 2024 Philterd, LLC @ https://www.philterd.ai + * + * 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 ai.philterd.philter.api.controllers; import ai.philterd.phileas.model.exceptions.api.BadRequestException; import ai.philterd.phileas.model.objects.Alert; import ai.philterd.phileas.model.services.FilterService; -import ai.philterd.philter.api.controllers.AbstractController; import org.apache.commons.lang3.StringUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; import org.springframework.http.ResponseEntity; import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.*; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.bind.annotation.ResponseBody; -import java.io.IOException; import java.util.List; @Controller diff --git a/philter-api/src/main/java/ai/philterd/philter/api/controllers/ExplainApiController.java b/philter-api/src/main/java/ai/philterd/philter/api/controllers/ExplainApiController.java index b17c581..b98bd16 100644 --- a/philter-api/src/main/java/ai/philterd/philter/api/controllers/ExplainApiController.java +++ b/philter-api/src/main/java/ai/philterd/philter/api/controllers/ExplainApiController.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Philterd, LLC @ https://www.philterd.ai + * + * 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 ai.philterd.philter.api.controllers; import ai.philterd.phileas.model.enums.MimeType; diff --git a/philter-api/src/main/java/ai/philterd/philter/api/controllers/FilterApiController.java b/philter-api/src/main/java/ai/philterd/philter/api/controllers/FilterApiController.java index 48b3e42..d5345b5 100644 --- a/philter-api/src/main/java/ai/philterd/philter/api/controllers/FilterApiController.java +++ b/philter-api/src/main/java/ai/philterd/philter/api/controllers/FilterApiController.java @@ -1,10 +1,24 @@ +/* + * Copyright 2024 Philterd, LLC @ https://www.philterd.ai + * + * 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 ai.philterd.philter.api.controllers; -import java.util.Arrays; -import java.util.List; -import java.util.logging.Filter; - -import ai.philterd.philter.services.PhilterService; +import ai.philterd.phileas.model.enums.MimeType; +import ai.philterd.phileas.model.responses.BinaryDocumentFilterResponse; +import ai.philterd.phileas.model.responses.FilterResponse; +import ai.philterd.phileas.model.services.FilterService; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import org.springframework.beans.factory.annotation.Autowired; @@ -18,10 +32,8 @@ import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.ResponseBody; -import ai.philterd.phileas.model.enums.MimeType; -import ai.philterd.phileas.model.responses.BinaryDocumentFilterResponse; -import ai.philterd.phileas.model.responses.FilterResponse; -import ai.philterd.phileas.model.services.FilterService; +import java.util.Arrays; +import java.util.List; @Controller public class FilterApiController extends AbstractController { diff --git a/philter-api/src/main/java/ai/philterd/philter/api/controllers/PoliciesApiController.java b/philter-api/src/main/java/ai/philterd/philter/api/controllers/PoliciesApiController.java index 1f76997..b75fd0c 100644 --- a/philter-api/src/main/java/ai/philterd/philter/api/controllers/PoliciesApiController.java +++ b/philter-api/src/main/java/ai/philterd/philter/api/controllers/PoliciesApiController.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Philterd, LLC @ https://www.philterd.ai + * + * 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 ai.philterd.philter.api.controllers; import ai.philterd.phileas.model.exceptions.api.BadRequestException; diff --git a/philter-api/src/main/java/ai/philterd/philter/api/controllers/StatusApiController.java b/philter-api/src/main/java/ai/philterd/philter/api/controllers/StatusApiController.java index 5135c00..74f2adf 100644 --- a/philter-api/src/main/java/ai/philterd/philter/api/controllers/StatusApiController.java +++ b/philter-api/src/main/java/ai/philterd/philter/api/controllers/StatusApiController.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Philterd, LLC @ https://www.philterd.ai + * + * 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 ai.philterd.philter.api.controllers; import ai.philterd.phileas.model.configuration.PhileasConfiguration; diff --git a/philter-api/src/main/java/ai/philterd/philter/api/exceptions/RestApiExceptions.java b/philter-api/src/main/java/ai/philterd/philter/api/exceptions/RestApiExceptions.java index dfd2969..ff844ca 100644 --- a/philter-api/src/main/java/ai/philterd/philter/api/exceptions/RestApiExceptions.java +++ b/philter-api/src/main/java/ai/philterd/philter/api/exceptions/RestApiExceptions.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Philterd, LLC @ https://www.philterd.ai + * + * 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 ai.philterd.philter.api.exceptions; import ai.philterd.phileas.model.exceptions.InvalidPolicyException; diff --git a/philter-api/src/main/java/ai/philterd/philter/api/model/ResponseSpan.java b/philter-api/src/main/java/ai/philterd/philter/api/model/ResponseSpan.java index b2d8305..7eb891c 100644 --- a/philter-api/src/main/java/ai/philterd/philter/api/model/ResponseSpan.java +++ b/philter-api/src/main/java/ai/philterd/philter/api/model/ResponseSpan.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Philterd, LLC @ https://www.philterd.ai + * + * 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 ai.philterd.philter.api.model; import ai.philterd.phileas.model.objects.Span; diff --git a/philter-api/src/main/java/ai/philterd/philter/api/security/X509Authenticator.java b/philter-api/src/main/java/ai/philterd/philter/api/security/X509Authenticator.java index 83ec811..5817884 100644 --- a/philter-api/src/main/java/ai/philterd/philter/api/security/X509Authenticator.java +++ b/philter-api/src/main/java/ai/philterd/philter/api/security/X509Authenticator.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Philterd, LLC @ https://www.philterd.ai + * + * 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 ai.philterd.philter.api.security; import ai.philterd.philter.api.controllers.PoliciesApiController; diff --git a/philter-app/src/main/java/ai/philterd/philter/PhilterApplication.java b/philter-app/src/main/java/ai/philterd/philter/PhilterApplication.java index 0818721..7b55ac0 100644 --- a/philter-app/src/main/java/ai/philterd/philter/PhilterApplication.java +++ b/philter-app/src/main/java/ai/philterd/philter/PhilterApplication.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Philterd, LLC @ https://www.philterd.ai + * + * 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 ai.philterd.philter; import ai.philterd.phileas.model.configuration.PhileasConfiguration; diff --git a/philter-configuration/src/main/java/ai/philterd/philter/PhilterConfiguration.java b/philter-configuration/src/main/java/ai/philterd/philter/PhilterConfiguration.java index a14e41e..27f0fcb 100644 --- a/philter-configuration/src/main/java/ai/philterd/philter/PhilterConfiguration.java +++ b/philter-configuration/src/main/java/ai/philterd/philter/PhilterConfiguration.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Philterd, LLC @ https://www.philterd.ai + * + * 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 ai.philterd.philter; import java.io.FileReader; diff --git a/philter-services/src/main/java/ai/philterd/philter/services/PhilterService.java b/philter-services/src/main/java/ai/philterd/philter/services/PhilterService.java index d4be8cb..f9329c8 100644 --- a/philter-services/src/main/java/ai/philterd/philter/services/PhilterService.java +++ b/philter-services/src/main/java/ai/philterd/philter/services/PhilterService.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Philterd, LLC @ https://www.philterd.ai + * + * 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 ai.philterd.philter.services; import ai.philterd.phileas.metrics.PhilterMetricsService; diff --git a/philter-ui/src/main/java/ai/philterd/philter/ui/PhilterUiApplication.java b/philter-ui/src/main/java/ai/philterd/philter/ui/PhilterUiApplication.java index bdb9659..3e55fbb 100644 --- a/philter-ui/src/main/java/ai/philterd/philter/ui/PhilterUiApplication.java +++ b/philter-ui/src/main/java/ai/philterd/philter/ui/PhilterUiApplication.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Philterd, LLC @ https://www.philterd.ai + * + * 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 ai.philterd.philter.ui; import ai.philterd.philter.PhilterClient; diff --git a/philter-ui/src/main/java/ai/philterd/philter/ui/controllers/PhilterUiController.java b/philter-ui/src/main/java/ai/philterd/philter/ui/controllers/PhilterUiController.java index 74c7138..07eddbd 100644 --- a/philter-ui/src/main/java/ai/philterd/philter/ui/controllers/PhilterUiController.java +++ b/philter-ui/src/main/java/ai/philterd/philter/ui/controllers/PhilterUiController.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Philterd, LLC @ https://www.philterd.ai + * + * 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 ai.philterd.philter.ui.controllers; import ai.philterd.philter.PhilterClient; diff --git a/philter-ui/src/main/java/ai/philterd/philter/ui/domain/Policy.java b/philter-ui/src/main/java/ai/philterd/philter/ui/domain/Policy.java index 54ff882..95acdd5 100644 --- a/philter-ui/src/main/java/ai/philterd/philter/ui/domain/Policy.java +++ b/philter-ui/src/main/java/ai/philterd/philter/ui/domain/Policy.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Philterd, LLC @ https://www.philterd.ai + * + * 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 ai.philterd.philter.ui.domain; public class Policy {