Loading .gitignore +3 −0 Original line number Diff line number Diff line Loading @@ -2,6 +2,9 @@ target pom.xml.versionsBackup # Maven Invoker build.log # Eclipse .project .classpath Loading pom-release.xml 0 → 100644 +156 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.inteligr8</groupId> <artifactId>common-rest-client</artifactId> <version>2.0-SNAPSHOT</version> <packaging>pom</packaging> <name>ReST API Client for Java</name> <description>A common library for building REST API clients that support both the CXF and Jersey frameworks</description> <url>https://bitbucket.org/inteligr8/common-rest-client</url> <licenses> <license> <name>GNU GENERAL PUBLIC LICENSE, Version 3, 29 June 2007</name> <url>https://www.gnu.org/licenses/lgpl-3.0.txt</url> </license> </licenses> <scm> <connection>scm:git:https://bitbucket.org/inteligr8/common-rest-client.git</connection> <developerConnection>scm:git:git@bitbucket.org:inteligr8/common-rest-client.git</developerConnection> <url>https://bitbucket.org/inteligr8/common-rest-client</url> </scm> <organization> <name>Inteligr8</name> <url>https://www.inteligr8.com</url> </organization> <developers> <developer> <id>brian.long</id> <name>Brian Long</name> <email>brian@inteligr8.com</email> <url>https://twitter.com/brianmlong</url> </developer> </developers> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> </properties> <build> <plugins> <plugin> <artifactId>maven-invoker-plugin</artifactId> <version>3.3.0</version> <configuration> <goals><goal>package</goal></goals> <pom>pom.xml</pom> <streamLogs>true</streamLogs> </configuration> <executions> <execution> <id>cxf</id> <phase>package</phase> <goals><goal>run</goal></goals> <configuration> <properties> <jaxrs.impl>cxf</jaxrs.impl> </properties> </configuration> </execution> <execution> <id>jersey</id> <phase>package</phase> <goals><goal>run</goal></goals> <configuration> <properties> <jaxrs.impl>jersey</jaxrs.impl> </properties> </configuration> </execution> <execution> <id>common</id> <phase>package</phase> <goals><goal>run</goal></goals> </execution> </executions> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>build-helper-maven-plugin</artifactId> <version>3.3.0</version> <executions> <execution> <id>attach-artifacts</id> <phase>package</phase> <goals><goal>attach-artifact</goal></goals> <configuration> <artifacts> <artifact> <file>${project.build.directory}/${project.artifactId}-${project.version}.jar</file> <type>jar</type> </artifact> <artifact> <file>${project.build.directory}/${project.artifactId}-${project.version}-javadoc.jar</file> <classifier>javadoc</classifier> <type>jar</type> </artifact> <artifact> <file>${project.build.directory}/${project.artifactId}-${project.version}-sources.jar</file> <classifier>sources</classifier> <type>jar</type> </artifact> <artifact> <file>${project.build.directory}/${project.artifactId}-${project.version}-cxf.jar</file> <classifier>cxf</classifier> <type>jar</type> </artifact> <artifact> <file>${project.build.directory}/${project.artifactId}-${project.version}-jersey.jar</file> <classifier>jersey</classifier> <type>jar</type> </artifact> </artifacts> </configuration> </execution> </executions> </plugin> </plugins> </build> <profiles> <profile> <id>ossrh-release</id> <build> <plugins> <plugin> <artifactId>maven-gpg-plugin</artifactId> <executions> <execution> <id>sign</id> <phase>verify</phase> <goals><goal>sign</goal></goals> </execution> </executions> </plugin> <plugin> <groupId>org.sonatype.plugins</groupId> <artifactId>nexus-staging-maven-plugin</artifactId> <version>1.6.13</version> <extensions>true</extensions> <configuration> <serverId>ossrh</serverId> <nexusUrl>https://s01.oss.sonatype.org/</nexusUrl> <autoReleaseAfterClose>true</autoReleaseAfterClose> </configuration> </plugin> </plugins> </build> </profile> </profiles> </project> pom.xml +41 −19 Original line number Diff line number Diff line <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.inteligr8</groupId> <artifactId>common-rest-client</artifactId> <version>2.0-SNAPSHOT</version> <packaging>jar</packaging> <name>ReST API Client for Java</name> <description>A common library for building REST API clients that support both the CXF and Jersey frameworks</description> <url>https://bitbucket.org/inteligr8/common-rest-client</url> <licenses> <license> <name>GNU GENERAL PUBLIC LICENSE, Version 3, 29 June 2007</name> <url>https://www.gnu.org/licenses/lgpl-3.0.txt</url> </license> </licenses> <scm> <connection>scm:git:https://bitbucket.org/inteligr8/common-rest-client.git</connection> <developerConnection>scm:git:git@bitbucket.org:inteligr8/common-rest-client.git</developerConnection> <url>https://bitbucket.org/inteligr8/common-rest-client</url> </scm> <organization> <name>Inteligr8</name> <url>https://www.inteligr8.com</url> </organization> <developers> <developer> <id>brian.long</id> <name>Brian Long</name> <email>brian@inteligr8.com</email> <url>https://twitter.com/brianmlong</url> </developer> </developers> <properties> <project.build.sourceEncoding>utf-8</project.build.sourceEncoding> Loading Loading @@ -124,6 +155,16 @@ </dependency> </dependencies> </plugin> <plugin> <artifactId>maven-source-plugin</artifactId> <executions> <execution> <id>source</id> <phase>package</phase> <goals><goal>jar-no-fork</goal></goals> </execution> </executions> </plugin> <plugin> <artifactId>maven-javadoc-plugin</artifactId> <executions> Loading @@ -144,7 +185,6 @@ <profile> <id>jaxrs-jersey</id> <activation> <activeByDefault>true</activeByDefault> <property> <name>jaxrs.impl</name> <value>jersey</value> Loading Loading @@ -203,22 +243,4 @@ </dependencies> </profile> </profiles> <pluginRepositories> <pluginRepository> <id>inteligr8-public</id> <url>https://repos.inteligr8.com/nexus/repository/inteligr8-public</url> </pluginRepository> </pluginRepositories> <distributionManagement> <repository> <id>inteligr8-releases</id> <url>https://repos.inteligr8.com/nexus/repository/inteligr8-public</url> </repository> <snapshotRepository> <id>inteligr8-snapshots</id> <url>https://repos.inteligr8.com/nexus/repository/inteligr8-snapshots</url> </snapshotRepository> </distributionManagement> </project> src/main/cxf/com/inteligr8/rs/ClientCxfConfiguration.java +14 −0 Original line number Diff line number Diff line /* * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or (at your * option) any later version. * * This program is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for * more details. * * You should have received a copy of the GNU General Public License along * with this program. If not, see <https://www.gnu.org/licenses/>. */ package com.inteligr8.rs; /** Loading src/main/cxf/com/inteligr8/rs/ClientCxfImpl.java +22 −1 Original line number Diff line number Diff line /* * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or (at your * option) any later version. * * This program is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for * more details. * * You should have received a copy of the GNU General Public License along * with this program. If not, see <https://www.gnu.org/licenses/>. */ package com.inteligr8.rs; import java.util.LinkedList; Loading Loading @@ -31,7 +45,8 @@ public class ClientCxfImpl extends Client { private ClientCxfConfiguration config; /** * This constructor is for Spring or POJO use * This constructor is for Spring or POJO use. * @param config The client configuration. */ @Autowired public ClientCxfImpl(ClientCxfConfiguration config) { Loading Loading @@ -97,10 +112,16 @@ public class ClientCxfImpl extends Client { return client; } /** * @param providersAndFilters A list of JAX-RS and CXF providers. */ public void addProvidersAndFilters(List<Object> providersAndFilters) { // for extension purposes } /** * @return The client configuration. */ public ClientCxfConfiguration getConfig() { return this.config; } Loading Loading
.gitignore +3 −0 Original line number Diff line number Diff line Loading @@ -2,6 +2,9 @@ target pom.xml.versionsBackup # Maven Invoker build.log # Eclipse .project .classpath Loading
pom-release.xml 0 → 100644 +156 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.inteligr8</groupId> <artifactId>common-rest-client</artifactId> <version>2.0-SNAPSHOT</version> <packaging>pom</packaging> <name>ReST API Client for Java</name> <description>A common library for building REST API clients that support both the CXF and Jersey frameworks</description> <url>https://bitbucket.org/inteligr8/common-rest-client</url> <licenses> <license> <name>GNU GENERAL PUBLIC LICENSE, Version 3, 29 June 2007</name> <url>https://www.gnu.org/licenses/lgpl-3.0.txt</url> </license> </licenses> <scm> <connection>scm:git:https://bitbucket.org/inteligr8/common-rest-client.git</connection> <developerConnection>scm:git:git@bitbucket.org:inteligr8/common-rest-client.git</developerConnection> <url>https://bitbucket.org/inteligr8/common-rest-client</url> </scm> <organization> <name>Inteligr8</name> <url>https://www.inteligr8.com</url> </organization> <developers> <developer> <id>brian.long</id> <name>Brian Long</name> <email>brian@inteligr8.com</email> <url>https://twitter.com/brianmlong</url> </developer> </developers> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> </properties> <build> <plugins> <plugin> <artifactId>maven-invoker-plugin</artifactId> <version>3.3.0</version> <configuration> <goals><goal>package</goal></goals> <pom>pom.xml</pom> <streamLogs>true</streamLogs> </configuration> <executions> <execution> <id>cxf</id> <phase>package</phase> <goals><goal>run</goal></goals> <configuration> <properties> <jaxrs.impl>cxf</jaxrs.impl> </properties> </configuration> </execution> <execution> <id>jersey</id> <phase>package</phase> <goals><goal>run</goal></goals> <configuration> <properties> <jaxrs.impl>jersey</jaxrs.impl> </properties> </configuration> </execution> <execution> <id>common</id> <phase>package</phase> <goals><goal>run</goal></goals> </execution> </executions> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>build-helper-maven-plugin</artifactId> <version>3.3.0</version> <executions> <execution> <id>attach-artifacts</id> <phase>package</phase> <goals><goal>attach-artifact</goal></goals> <configuration> <artifacts> <artifact> <file>${project.build.directory}/${project.artifactId}-${project.version}.jar</file> <type>jar</type> </artifact> <artifact> <file>${project.build.directory}/${project.artifactId}-${project.version}-javadoc.jar</file> <classifier>javadoc</classifier> <type>jar</type> </artifact> <artifact> <file>${project.build.directory}/${project.artifactId}-${project.version}-sources.jar</file> <classifier>sources</classifier> <type>jar</type> </artifact> <artifact> <file>${project.build.directory}/${project.artifactId}-${project.version}-cxf.jar</file> <classifier>cxf</classifier> <type>jar</type> </artifact> <artifact> <file>${project.build.directory}/${project.artifactId}-${project.version}-jersey.jar</file> <classifier>jersey</classifier> <type>jar</type> </artifact> </artifacts> </configuration> </execution> </executions> </plugin> </plugins> </build> <profiles> <profile> <id>ossrh-release</id> <build> <plugins> <plugin> <artifactId>maven-gpg-plugin</artifactId> <executions> <execution> <id>sign</id> <phase>verify</phase> <goals><goal>sign</goal></goals> </execution> </executions> </plugin> <plugin> <groupId>org.sonatype.plugins</groupId> <artifactId>nexus-staging-maven-plugin</artifactId> <version>1.6.13</version> <extensions>true</extensions> <configuration> <serverId>ossrh</serverId> <nexusUrl>https://s01.oss.sonatype.org/</nexusUrl> <autoReleaseAfterClose>true</autoReleaseAfterClose> </configuration> </plugin> </plugins> </build> </profile> </profiles> </project>
pom.xml +41 −19 Original line number Diff line number Diff line <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.inteligr8</groupId> <artifactId>common-rest-client</artifactId> <version>2.0-SNAPSHOT</version> <packaging>jar</packaging> <name>ReST API Client for Java</name> <description>A common library for building REST API clients that support both the CXF and Jersey frameworks</description> <url>https://bitbucket.org/inteligr8/common-rest-client</url> <licenses> <license> <name>GNU GENERAL PUBLIC LICENSE, Version 3, 29 June 2007</name> <url>https://www.gnu.org/licenses/lgpl-3.0.txt</url> </license> </licenses> <scm> <connection>scm:git:https://bitbucket.org/inteligr8/common-rest-client.git</connection> <developerConnection>scm:git:git@bitbucket.org:inteligr8/common-rest-client.git</developerConnection> <url>https://bitbucket.org/inteligr8/common-rest-client</url> </scm> <organization> <name>Inteligr8</name> <url>https://www.inteligr8.com</url> </organization> <developers> <developer> <id>brian.long</id> <name>Brian Long</name> <email>brian@inteligr8.com</email> <url>https://twitter.com/brianmlong</url> </developer> </developers> <properties> <project.build.sourceEncoding>utf-8</project.build.sourceEncoding> Loading Loading @@ -124,6 +155,16 @@ </dependency> </dependencies> </plugin> <plugin> <artifactId>maven-source-plugin</artifactId> <executions> <execution> <id>source</id> <phase>package</phase> <goals><goal>jar-no-fork</goal></goals> </execution> </executions> </plugin> <plugin> <artifactId>maven-javadoc-plugin</artifactId> <executions> Loading @@ -144,7 +185,6 @@ <profile> <id>jaxrs-jersey</id> <activation> <activeByDefault>true</activeByDefault> <property> <name>jaxrs.impl</name> <value>jersey</value> Loading Loading @@ -203,22 +243,4 @@ </dependencies> </profile> </profiles> <pluginRepositories> <pluginRepository> <id>inteligr8-public</id> <url>https://repos.inteligr8.com/nexus/repository/inteligr8-public</url> </pluginRepository> </pluginRepositories> <distributionManagement> <repository> <id>inteligr8-releases</id> <url>https://repos.inteligr8.com/nexus/repository/inteligr8-public</url> </repository> <snapshotRepository> <id>inteligr8-snapshots</id> <url>https://repos.inteligr8.com/nexus/repository/inteligr8-snapshots</url> </snapshotRepository> </distributionManagement> </project>
src/main/cxf/com/inteligr8/rs/ClientCxfConfiguration.java +14 −0 Original line number Diff line number Diff line /* * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or (at your * option) any later version. * * This program is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for * more details. * * You should have received a copy of the GNU General Public License along * with this program. If not, see <https://www.gnu.org/licenses/>. */ package com.inteligr8.rs; /** Loading
src/main/cxf/com/inteligr8/rs/ClientCxfImpl.java +22 −1 Original line number Diff line number Diff line /* * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or (at your * option) any later version. * * This program is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for * more details. * * You should have received a copy of the GNU General Public License along * with this program. If not, see <https://www.gnu.org/licenses/>. */ package com.inteligr8.rs; import java.util.LinkedList; Loading Loading @@ -31,7 +45,8 @@ public class ClientCxfImpl extends Client { private ClientCxfConfiguration config; /** * This constructor is for Spring or POJO use * This constructor is for Spring or POJO use. * @param config The client configuration. */ @Autowired public ClientCxfImpl(ClientCxfConfiguration config) { Loading Loading @@ -97,10 +112,16 @@ public class ClientCxfImpl extends Client { return client; } /** * @param providersAndFilters A list of JAX-RS and CXF providers. */ public void addProvidersAndFilters(List<Object> providersAndFilters) { // for extension purposes } /** * @return The client configuration. */ public ClientCxfConfiguration getConfig() { return this.config; } Loading