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 db236b2234d6c75e84ed84b97e9d1186a8979d6b Author: Benoit Tellier <[email protected]> AuthorDate: Thu Nov 7 08:52:03 2019 +0700 PROTOCOLS-37 [Refactoring] Remove unused class FutureStartTlsResponse --- .../api/future/FutureStartTlsResponse.java | 46 ---------------------- 1 file changed, 46 deletions(-) diff --git a/protocols/api/src/main/java/org/apache/james/protocols/api/future/FutureStartTlsResponse.java b/protocols/api/src/main/java/org/apache/james/protocols/api/future/FutureStartTlsResponse.java deleted file mode 100644 index d852871..0000000 --- a/protocols/api/src/main/java/org/apache/james/protocols/api/future/FutureStartTlsResponse.java +++ /dev/null @@ -1,46 +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.protocols.api.future; - -import org.apache.james.protocols.api.Response; -import org.apache.james.protocols.api.StartTlsResponse; - -/** - * Special {@link FutureResponse} which will get notified once a {@link StartTlsResponse} is ready - * - * - */ -public class FutureStartTlsResponse extends FutureResponseImpl implements StartTlsResponse { - - - /** - * Set the {@link StartTlsResponse} to wrap. If a non {@link StartTlsResponse} is set this implementation will throw an {@link IllegalArgumentException} - * - */ - @Override - public void setResponse(Response response) { - if (response instanceof StartTlsResponse) { - super.setResponse(response); - } else { - throw new IllegalArgumentException("Response MUST be of type " + StartTlsResponse.class.getName()); - } - } - -} --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
