cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject cxf git commit: [CXF-7316] Removing the resources
Date Wed, 02 Aug 2017 09:32:17 GMT
Repository: cxf
Updated Branches:
  refs/heads/master 1909d85f7 -> c5ba9fa36


[CXF-7316] Removing the resources


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

Branch: refs/heads/master
Commit: c5ba9fa367756815920fe167de2bdc1cc4d26ff6
Parents: 1909d85
Author: Sergey Beryozkin <sberyozkin@gmail.com>
Authored: Wed Aug 2 10:31:54 2017 +0100
Committer: Sergey Beryozkin <sberyozkin@gmail.com>
Committed: Wed Aug 2 10:31:54 2017 +0100

----------------------------------------------------------------------
 .../swagger/DefaultSwagger2Serializers.java     | 98 --------------------
 .../cxf/jaxrs/swagger/Swagger2Serializers.java  | 37 --------
 2 files changed, 135 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/c5ba9fa3/rt/rs/description-swagger/src/main/java/org/apache/cxf/jaxrs/swagger/DefaultSwagger2Serializers.java
----------------------------------------------------------------------
diff --git a/rt/rs/description-swagger/src/main/java/org/apache/cxf/jaxrs/swagger/DefaultSwagger2Serializers.java
b/rt/rs/description-swagger/src/main/java/org/apache/cxf/jaxrs/swagger/DefaultSwagger2Serializers.java
deleted file mode 100644
index fe5aff2..0000000
--- a/rt/rs/description-swagger/src/main/java/org/apache/cxf/jaxrs/swagger/DefaultSwagger2Serializers.java
+++ /dev/null
@@ -1,98 +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.cxf.jaxrs.swagger;
-
-import java.io.IOException;
-import java.io.OutputStream;
-import java.lang.annotation.Annotation;
-import java.lang.reflect.Type;
-import java.net.URL;
-import java.util.List;
-
-import javax.ws.rs.core.MediaType;
-import javax.ws.rs.core.MultivaluedMap;
-
-import org.apache.cxf.jaxrs.model.ClassResourceInfo;
-import org.apache.cxf.jaxrs.model.doc.DocumentationProvider;
-import org.apache.cxf.jaxrs.model.doc.JavaDocProvider;
-
-import io.swagger.jaxrs.config.BeanConfig;
-import io.swagger.jaxrs.listing.SwaggerSerializers;
-import io.swagger.models.Swagger;
-
-public class DefaultSwagger2Serializers extends SwaggerSerializers implements Swagger2Serializers
{
-    private Swagger2Customizer customizer = new Swagger2Customizer();
-    
-    @Override
-    public void writeTo(
-            final Swagger data,
-            final Class<?> type,
-            final Type genericType,
-            final Annotation[] annotations,
-            final MediaType mediaType,
-            final MultivaluedMap<String, Object> headers,
-            final OutputStream out) throws IOException {
-        Swagger customizedData = customizer.customize(data);
-        super.writeTo(customizedData, type, genericType, annotations, mediaType, headers,
out);
-    }
-
-    @Override
-    public void setDynamicBasePath(final boolean dynamicBasePath) {
-        customizer.setDynamicBasePath(dynamicBasePath);
-    }
-
-    public void setReplaceTags(final boolean replaceTags) {
-        customizer.setReplaceTags(replaceTags);
-    }
-
-    public void setJavadocProvider(final DocumentationProvider javadocProvider) {
-        customizer.setJavadocProvider(javadocProvider);
-    }
-
-    @Override
-    public void setClassResourceInfos(final List<ClassResourceInfo> classResourceInfos)
{
-        customizer.setClassResourceInfos(classResourceInfos);
-    }
-
-    public void setJavaDocPath(final String javaDocPath) throws Exception {
-        customizer.setJavadocProvider(new JavaDocProvider(javaDocPath));
-    }
-
-    public void setJavaDocPaths(final String... javaDocPaths) throws Exception {
-        customizer.setJavadocProvider(new JavaDocProvider(javaDocPaths));
-    }
-
-    public void setJavaDocURLs(final URL[] javaDocURLs) {
-        customizer.setJavadocProvider(new JavaDocProvider(javaDocURLs));
-    }
-
-    @Override
-    public void setBeanConfig(BeanConfig beanConfig) {
-        customizer.setBeanConfig(beanConfig);
-
-    }
-
-    public Swagger2Customizer getCustomizer() {
-        return customizer;
-    }
-
-    public void setCustomizer(Swagger2Customizer customizer) {
-        this.customizer = customizer;
-    }
-}

http://git-wip-us.apache.org/repos/asf/cxf/blob/c5ba9fa3/rt/rs/description-swagger/src/main/java/org/apache/cxf/jaxrs/swagger/Swagger2Serializers.java
----------------------------------------------------------------------
diff --git a/rt/rs/description-swagger/src/main/java/org/apache/cxf/jaxrs/swagger/Swagger2Serializers.java
b/rt/rs/description-swagger/src/main/java/org/apache/cxf/jaxrs/swagger/Swagger2Serializers.java
deleted file mode 100644
index d4e37a1..0000000
--- a/rt/rs/description-swagger/src/main/java/org/apache/cxf/jaxrs/swagger/Swagger2Serializers.java
+++ /dev/null
@@ -1,37 +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.cxf.jaxrs.swagger;
-
-import java.util.List;
-
-import javax.ws.rs.ext.MessageBodyWriter;
-
-import org.apache.cxf.jaxrs.model.ClassResourceInfo;
-
-import io.swagger.jaxrs.config.BeanConfig;
-import io.swagger.models.Swagger;
-
-public interface Swagger2Serializers extends MessageBodyWriter<Swagger> {
-
-    void setBeanConfig(BeanConfig beanConfig);
-
-    void setDynamicBasePath(boolean dynamicBasePath);
-
-    void setClassResourceInfos(List<ClassResourceInfo> classResourceInfos);
-}


Mime
View raw message