Skip to content

Commit 2c0183b

Browse files
committed
New deploy
1 parent b58a6cd commit 2c0183b

File tree

10 files changed

+485
-249
lines changed

10 files changed

+485
-249
lines changed

pom.xml

Lines changed: 139 additions & 208 deletions
Original file line numberDiff line numberDiff line change
@@ -1,209 +1,140 @@
1-
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2-
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3-
<modelVersion>4.0.0</modelVersion>
4-
<groupId>com.bandwidth.sdk</groupId>
5-
<artifactId>bandwidth-sdk</artifactId>
6-
<version>5.0.0</version>
7-
<packaging>jar</packaging>
8-
<name>BandwidthLib</name>
9-
<build>
10-
<pluginManagement>
11-
<plugins>
12-
<plugin>
13-
<groupId>org.eclipse.m2e</groupId>
14-
<artifactId>lifecycle-mapping</artifactId>
15-
<version>1.0.0</version>
16-
<configuration>
17-
<lifecycleMappingMetadata>
18-
<pluginExecutions>
19-
<pluginExecution>
20-
<pluginExecutionFilter>
21-
<groupId>org.apache.maven.plugins</groupId>
22-
<artifactId>maven-enforcer-plugin</artifactId>
23-
<versionRange>[2.0.0,)</versionRange>
24-
<goals>
25-
<goal>enforce</goal>
26-
</goals>
27-
</pluginExecutionFilter>
28-
<action>
29-
<execute>
30-
<runOnIncremental>true</runOnIncremental>
31-
</execute >
32-
</action>
33-
</pluginExecution>
34-
</pluginExecutions>
35-
</lifecycleMappingMetadata>
36-
</configuration>
37-
</plugin>
38-
</plugins>
39-
</pluginManagement>
40-
<plugins>
41-
<plugin>
42-
<groupId>org.apache.maven.plugins</groupId>
43-
<artifactId>maven-enforcer-plugin</artifactId>
44-
<version>3.0.0-M2</version>
45-
<executions>
46-
<execution>
47-
<id>enforce-versions</id>
48-
<goals>
49-
<goal>enforce</goal>
50-
</goals>
51-
<configuration>
52-
<fail>true</fail>
53-
<rules>
54-
<requireJavaVersion>
55-
<version>1.8</version>
56-
</requireJavaVersion>
57-
</rules>
58-
</configuration>
59-
</execution>
60-
</executions>
61-
</plugin>
62-
<plugin>
63-
<artifactId>maven-assembly-plugin</artifactId>
64-
<configuration>
65-
<descriptorRefs>
66-
<descriptorRef>jar-with-dependencies</descriptorRef>
67-
</descriptorRefs>
68-
<appendAssemblyId>false</appendAssemblyId>
69-
</configuration>
70-
</plugin>
71-
<plugin>
72-
<groupId>org.apache.maven.plugins</groupId>
73-
<artifactId>maven-source-plugin</artifactId>
74-
<version>3.1.0</version>
75-
<executions>
76-
<execution>
77-
<id>attach-sources</id>
78-
<goals>
79-
<goal>jar</goal>
80-
</goals>
81-
</execution>
82-
</executions>
83-
</plugin>
84-
<plugin>
85-
<groupId>org.apache.maven.plugins</groupId>
86-
<artifactId>maven-gpg-plugin</artifactId>
87-
<version>1.5</version>
88-
<executions>
89-
<execution>
90-
<id>sign-artifacts</id>
91-
<phase>verify</phase>
92-
<goals>
93-
<goal>sign</goal>
94-
</goals>
95-
</execution>
96-
</executions>
97-
</plugin>
98-
<plugin>
99-
<groupId>org.apache.maven.plugins</groupId>
100-
<artifactId>maven-javadoc-plugin</artifactId>
101-
<version>3.1.1</version>
102-
<configuration>
103-
<failOnError>false</failOnError>
104-
</configuration>
105-
<executions>
106-
<execution>
107-
<id>attach-javadocs</id>
108-
<goals>
109-
<goal>jar</goal>
110-
</goals>
111-
</execution>
112-
</executions>
113-
</plugin>
114-
</plugins>
115-
</build>
116-
<properties>
117-
<jackson.version>2.9.10</jackson.version>
118-
<jackson.databind.version>2.9.10.7</jackson.databind.version>
119-
<maven.compiler.source>1.8</maven.compiler.source>
120-
<maven.compiler.target>1.8</maven.compiler.target>
121-
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
122-
</properties>
123-
<dependencies>
124-
<dependency>
125-
<groupId>javax.xml.bind</groupId>
126-
<artifactId>jaxb-api</artifactId>
127-
<version>2.3.0</version>
128-
</dependency>
129-
<dependency>
130-
<groupId>com.sun.xml.bind</groupId>
131-
<artifactId>jaxb-core</artifactId>
132-
<version>2.3.0</version>
133-
</dependency>
134-
<dependency>
135-
<groupId>com.sun.xml.bind</groupId>
136-
<artifactId>jaxb-impl</artifactId>
137-
<version>2.3.0</version>
138-
</dependency>
139-
<dependency>
140-
<groupId>org.projectlombok</groupId>
141-
<artifactId>lombok</artifactId>
142-
<version>1.18.8</version>
143-
</dependency>
144-
145-
<dependency>
146-
<groupId>com.squareup.okhttp3</groupId>
147-
<artifactId>okhttp</artifactId>
148-
<version>3.12.1</version>
149-
</dependency>
150-
<dependency>
151-
<groupId>com.fasterxml.jackson.core</groupId>
152-
<artifactId>jackson-databind</artifactId>
153-
<version>${jackson.databind.version}</version>
154-
</dependency>
155-
<dependency>
156-
<groupId>com.fasterxml.jackson.core</groupId>
157-
<artifactId>jackson-core</artifactId>
158-
<version>${jackson.version}</version>
159-
</dependency>
160-
<dependency>
161-
<groupId>com.fasterxml.jackson.core</groupId>
162-
<artifactId>jackson-annotations</artifactId>
163-
<version>${jackson.version}</version>
164-
</dependency>
165-
<dependency>
166-
<groupId>junit</groupId>
167-
<artifactId>junit</artifactId>
168-
<version>4.13.1</version>
169-
<scope>test</scope>
170-
</dependency>
171-
</dependencies>
172-
<distributionManagement>
173-
<snapshotRepository>
174-
<id>ossrh</id>
175-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
176-
</snapshotRepository>
177-
<repository>
178-
<id>ossrh</id>
179-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
180-
</repository>
181-
</distributionManagement>
182-
<parent>
183-
<groupId>org.sonatype.oss</groupId>
184-
<artifactId>oss-parent</artifactId>
185-
<version>7</version>
186-
</parent>
187-
<licenses>
188-
<license>
189-
<name>Apache License, Version 2.0</name>
190-
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
191-
<distribution>repo</distribution>
192-
</license>
193-
</licenses>
194-
<scm>
195-
<url>https://github.com/Bandwidth/java-sdk</url>
196-
<connection>scm:git:[email protected]:Bandwidth/java-sdk.git</connection>
197-
<developerConnection>scm:git:[email protected]:Bandwidth/java-sdk.git</developerConnection>
198-
</scm>
199-
<developers>
200-
<developer>
201-
<id>support</id>
202-
<name>Bandwidth Support</name>
203-
<email>[email protected]</email>
204-
<organization>Bandwidth, Inc.</organization>
205-
<organizationUrl>http://bandwidth.com</organizationUrl>
206-
<timezone>-5</timezone>
207-
</developer>
208-
</developers>
1+
<!--
2+
- BandwidthLib
3+
-
4+
- This file was automatically generated by APIMATIC v2.0 ( https://apimatic.io ).
5+
-->
6+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
7+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
8+
<modelVersion>4.0.0</modelVersion>
9+
10+
<groupId>com.bandwidth.sdk</groupId>
11+
<artifactId>bandwidth-sdk</artifactId>
12+
<version>2.0.0</version>
13+
<packaging>jar</packaging>
14+
15+
<name>BandwidthLib</name>
16+
17+
<build>
18+
<pluginManagement>
19+
<plugins>
20+
<plugin>
21+
<groupId>org.eclipse.m2e</groupId>
22+
<artifactId>lifecycle-mapping</artifactId>
23+
<version>1.0.0</version>
24+
<configuration>
25+
<lifecycleMappingMetadata>
26+
<pluginExecutions>
27+
<pluginExecution>
28+
<pluginExecutionFilter>
29+
<groupId>org.apache.maven.plugins</groupId>
30+
<artifactId>maven-enforcer-plugin</artifactId>
31+
<versionRange>[2.0.0,)</versionRange>
32+
<goals>
33+
<goal>enforce</goal>
34+
</goals>
35+
</pluginExecutionFilter>
36+
<action>
37+
<execute>
38+
<runOnIncremental>true</runOnIncremental>
39+
</execute >
40+
</action>
41+
</pluginExecution>
42+
</pluginExecutions>
43+
</lifecycleMappingMetadata>
44+
</configuration>
45+
</plugin>
46+
</plugins>
47+
</pluginManagement>
48+
<plugins>
49+
<plugin>
50+
<groupId>org.apache.maven.plugins</groupId>
51+
<artifactId>maven-enforcer-plugin</artifactId>
52+
<version>3.0.0-M2</version>
53+
<executions>
54+
<execution>
55+
<id>enforce-versions</id>
56+
<goals>
57+
<goal>enforce</goal>
58+
</goals>
59+
<configuration>
60+
<fail>true</fail>
61+
<rules>
62+
<requireJavaVersion>
63+
<version>1.8</version>
64+
</requireJavaVersion>
65+
</rules>
66+
</configuration>
67+
</execution>
68+
</executions>
69+
</plugin>
70+
<plugin>
71+
<artifactId>maven-assembly-plugin</artifactId>
72+
<configuration>
73+
<descriptorRefs>
74+
<descriptorRef>jar-with-dependencies</descriptorRef>
75+
</descriptorRefs>
76+
<appendAssemblyId>false</appendAssemblyId>
77+
</configuration>
78+
</plugin>
79+
</plugins>
80+
</build>
81+
82+
<properties>
83+
<jackson.version>2.9.10</jackson.version>
84+
<jackson.databind.version>2.9.10.5</jackson.databind.version>
85+
<maven.compiler.source>1.8</maven.compiler.source>
86+
<maven.compiler.target>1.8</maven.compiler.target>
87+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
88+
</properties>
89+
90+
<dependencies>
91+
92+
<dependency>
93+
<groupId>javax.xml.bind</groupId>
94+
<artifactId>jaxb-api</artifactId>
95+
<version>2.3.0</version>
96+
</dependency>
97+
<dependency>
98+
<groupId>com.sun.xml.bind</groupId>
99+
<artifactId>jaxb-core</artifactId>
100+
<version>2.3.0</version>
101+
</dependency>
102+
<dependency>
103+
<groupId>com.sun.xml.bind</groupId>
104+
<artifactId>jaxb-impl</artifactId>
105+
<version>2.3.0</version>
106+
</dependency>
107+
<dependency>
108+
<groupId>org.projectlombok</groupId>
109+
<artifactId>lombok</artifactId>
110+
<version>1.18.8</version>
111+
</dependency>
112+
113+
<dependency>
114+
<groupId>com.squareup.okhttp3</groupId>
115+
<artifactId>okhttp</artifactId>
116+
<version>3.12.1</version>
117+
</dependency>
118+
<dependency>
119+
<groupId>com.fasterxml.jackson.core</groupId>
120+
<artifactId>jackson-databind</artifactId>
121+
<version>${jackson.databind.version}</version>
122+
</dependency>
123+
<dependency>
124+
<groupId>com.fasterxml.jackson.core</groupId>
125+
<artifactId>jackson-core</artifactId>
126+
<version>${jackson.version}</version>
127+
</dependency>
128+
<dependency>
129+
<groupId>com.fasterxml.jackson.core</groupId>
130+
<artifactId>jackson-annotations</artifactId>
131+
<version>${jackson.version}</version>
132+
</dependency>
133+
<dependency>
134+
<groupId>junit</groupId>
135+
<artifactId>junit</artifactId>
136+
<version>4.13.1</version>
137+
<scope>test</scope>
138+
</dependency>
139+
</dependencies>
209140
</project>

src/main/java/com/bandwidth/BandwidthClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ private static String environmentMapper(Environment environment, Server server)
313313
return "https://messaging.bandwidth.com/api/v2";
314314
}
315315
if (server.equals(Server.TWOFACTORAUTHDEFAULT)) {
316-
return "https://mfa.bandwidth.com/api/v1/";
316+
return "https://mfa.bandwidth.com/api/v1";
317317
}
318318
if (server.equals(Server.VOICEDEFAULT)) {
319319
return "https://voice.bandwidth.com";

src/main/java/com/bandwidth/TwoFactorAuthClient.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,22 +15,22 @@ public final class TwoFactorAuthClient {
1515
/**
1616
* Private store for controllers.
1717
*/
18-
private APIController client;
18+
private MFAController mFA;
1919

2020
/**
2121
* Default constructor.
2222
*/
2323
public TwoFactorAuthClient(BandwidthClient config) {
2424
this.config = config;
25-
client = new APIController(config, config.getHttpClient(), config.getAuthManagers());
25+
mFA = new MFAController(config, config.getHttpClient(), config.getAuthManagers());
2626
}
2727

2828
public static void shutdown() {
2929
OkClient.shutdown();
3030
}
3131

32-
public APIController getAPIController() {
33-
return client;
32+
public MFAController getMFAController() {
33+
return mFA;
3434
}
3535

3636
public Configuration getConfiguration() {

0 commit comments

Comments
 (0)