You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by se...@apache.org on 2016/12/07 16:00:10 UTC

[2/2] cxf git commit: [CXF-6882] Adding the resource

[CXF-6882] Adding the resource


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/58b379bd
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/58b379bd
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/58b379bd

Branch: refs/heads/master
Commit: 58b379bdf8cce2434f6033e2d7adab944afff05b
Parents: 59436ea
Author: Sergey Beryozkin <sb...@gmail.com>
Authored: Wed Dec 7 15:59:50 2016 +0000
Committer: Sergey Beryozkin <sb...@gmail.com>
Committed: Wed Dec 7 15:59:50 2016 +0000

----------------------------------------------------------------------
 .../org/apache/cxf/annotations/UseNioWrite.java | 38 ++++++++++++++++++++
 1 file changed, 38 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/58b379bd/core/src/main/java/org/apache/cxf/annotations/UseNioWrite.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/org/apache/cxf/annotations/UseNioWrite.java b/core/src/main/java/org/apache/cxf/annotations/UseNioWrite.java
new file mode 100644
index 0000000..a9c797d
--- /dev/null
+++ b/core/src/main/java/org/apache/cxf/annotations/UseNioWrite.java
@@ -0,0 +1,38 @@
+/**
+ * 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.cxf.annotations;
+
+import java.lang.annotation.Documented;
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Inherited;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+/**
+ * Instructs the runtime to copy the input stream to the output stream using NIO.
+ * This annotation will have no effect if continuations are not available  
+ */
+@Documented
+@Retention(RetentionPolicy.RUNTIME)
+@Target({ ElementType.METHOD })
+@Inherited
+public @interface UseNioWrite {
+}
+