You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@eventmesh.apache.org by mi...@apache.org on 2022/09/20 08:11:42 UTC
[incubator-eventmesh] branch master updated: [ISSUE #1333] Add utils for webhook get the file config
This is an automated email from the ASF dual-hosted git repository.
mikexue pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-eventmesh.git
The following commit(s) were added to refs/heads/master by this push:
new a9dad165 [ISSUE #1333] Add utils for webhook get the file config
new 12ed1ac3 Merge pull request #1343 from githublaohu/webhook-repair5
a9dad165 is described below
commit a9dad1655f8046ff17438560c99fa64f4e48f258
Author: githublaohu <Ni...@989898>
AuthorDate: Mon Sep 19 18:28:05 2022 +0800
[ISSUE #1333] Add utils for webhook get the file config
---
.../eventmesh/webhook/api/utils/StringUtils.java | 25 ++++++++++++++++++++++
1 file changed, 25 insertions(+)
diff --git a/eventmesh-webhook/eventmesh-webhook-api/src/main/java/org/apache/eventmesh/webhook/api/utils/StringUtils.java b/eventmesh-webhook/eventmesh-webhook-api/src/main/java/org/apache/eventmesh/webhook/api/utils/StringUtils.java
new file mode 100644
index 00000000..99a13c82
--- /dev/null
+++ b/eventmesh-webhook/eventmesh-webhook-api/src/main/java/org/apache/eventmesh/webhook/api/utils/StringUtils.java
@@ -0,0 +1,25 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You 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 org.apache.eventmesh.webhook.api.utils;
+
+public class StringUtils {
+
+ public static final String getFileName(String path) {
+ return path.substring(1).replace('/', '.');
+ }
+}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@eventmesh.apache.org
For additional commands, e-mail: commits-help@eventmesh.apache.org