This is an automated email from the ASF dual-hosted git repository. btellier pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/james-project.git
commit 142d4e587ad4e93dfe9112ef235c21ff01b80be1 Author: Benoit Tellier <btell...@linagora.com> AuthorDate: Sun Nov 17 14:57:40 2019 +0700 [Refactoring] MatcherMatch class is not used --- .../mailetcontainer/impl/camel/MatcherMatch.java | 38 ---------------------- 1 file changed, 38 deletions(-) diff --git a/server/mailet/mailetcontainer-camel/src/main/java/org/apache/james/mailetcontainer/impl/camel/MatcherMatch.java b/server/mailet/mailetcontainer-camel/src/main/java/org/apache/james/mailetcontainer/impl/camel/MatcherMatch.java deleted file mode 100644 index 41c61ad..0000000 --- a/server/mailet/mailetcontainer-camel/src/main/java/org/apache/james/mailetcontainer/impl/camel/MatcherMatch.java +++ /dev/null @@ -1,38 +0,0 @@ -/**************************************************************** - * 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.james.mailetcontainer.impl.camel; - -import org.apache.camel.Exchange; -import org.apache.camel.Predicate; -import org.apache.mailet.Mail; - -/** - * Check if the previous called Matcher matched. This is done be checking for - * the present of MatcherSplitter.MATCHER_MATCHED_ATTRIBUTE attribute in the - * Mail - */ -public class MatcherMatch implements Predicate { - - @Override - public boolean matches(Exchange arg0) { - Mail m = arg0.getIn().getBody(Mail.class); - return m.removeAttribute(MatcherSplitter.MATCHER_MATCHED_ATTRIBUTE).isPresent(); - } -} --------------------------------------------------------------------- To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org For additional commands, e-mail: server-dev-h...@james.apache.org