hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject [2/3] httpcomponents-core git commit: Added functional Transformation and Resolver interfaces
Date Wed, 25 Oct 2017 14:58:49 GMT
Added functional Transformation and Resolver interfaces


Project: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/repo
Commit: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/commit/a3f112ae
Tree: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/tree/a3f112ae
Diff: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/diff/a3f112ae

Branch: refs/heads/master
Commit: a3f112ae93c9f37be75978d74c463cdeb58b267b
Parents: d4df416
Author: Oleg Kalnichevski <olegk@apache.org>
Authored: Tue Oct 24 13:31:01 2017 +0200
Committer: Oleg Kalnichevski <olegk@apache.org>
Committed: Wed Oct 25 13:01:35 2017 +0200

----------------------------------------------------------------------
 .../org/apache/hc/core5/function/Resolver.java  | 39 ++++++++++++++++++++
 .../hc/core5/function/Transformation.java       | 39 ++++++++++++++++++++
 2 files changed, 78 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/httpcomponents-core/blob/a3f112ae/httpcore5/src/main/java/org/apache/hc/core5/function/Resolver.java
----------------------------------------------------------------------
diff --git a/httpcore5/src/main/java/org/apache/hc/core5/function/Resolver.java b/httpcore5/src/main/java/org/apache/hc/core5/function/Resolver.java
new file mode 100644
index 0000000..3cb42f4
--- /dev/null
+++ b/httpcore5/src/main/java/org/apache/hc/core5/function/Resolver.java
@@ -0,0 +1,39 @@
+/*
+ * ====================================================================
+ * 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.
+ * ====================================================================
+ *
+ * This software consists of voluntary contributions made by many
+ * individuals on behalf of the Apache Software Foundation.  For more
+ * information on the Apache Software Foundation, please see
+ * <http://www.apache.org/>.
+ *
+ */
+
+package org.apache.hc.core5.function;
+
+/**
+ * Abstract resolver from input to output.
+ *
+ * @since 5.0
+ */
+public interface Resolver<I, O> {
+
+    O resolve(I object);
+
+}

http://git-wip-us.apache.org/repos/asf/httpcomponents-core/blob/a3f112ae/httpcore5/src/main/java/org/apache/hc/core5/function/Transformation.java
----------------------------------------------------------------------
diff --git a/httpcore5/src/main/java/org/apache/hc/core5/function/Transformation.java b/httpcore5/src/main/java/org/apache/hc/core5/function/Transformation.java
new file mode 100644
index 0000000..84da663
--- /dev/null
+++ b/httpcore5/src/main/java/org/apache/hc/core5/function/Transformation.java
@@ -0,0 +1,39 @@
+/*
+ * ====================================================================
+ * 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.
+ * ====================================================================
+ *
+ * This software consists of voluntary contributions made by many
+ * individuals on behalf of the Apache Software Foundation.  For more
+ * information on the Apache Software Foundation, please see
+ * <http://www.apache.org/>.
+ *
+ */
+
+package org.apache.hc.core5.function;
+
+/**
+ * Abstract transformation from input to output.
+ *
+ * @since 5.0
+ */
+public interface Transformation<I, O> {
+
+    O transform(I object);
+
+}


Mime
View raw message