-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0641268
commit 1a453ce
Showing
27 changed files
with
515 additions
and
352 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package com.axway.maven.kps.client; | ||
|
||
import com.axway.maven.kps.client.object.response.KPSResult; | ||
|
||
public interface KpsClient { | ||
Boolean isExistingKps(String username, String password, String url); | ||
|
||
KPSResult createKps(String username, String password, String url, String body); | ||
|
||
KPSResult deleteKps(String username, String password, String url); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package com.axway.maven.kps.client; | ||
|
||
import com.axway.maven.kps.client.object.response.TopologyResponse; | ||
|
||
public interface TopologyClient { | ||
TopologyResponse getTopologies(String username, String password, String url) throws Exception; | ||
} |
16 changes: 16 additions & 0 deletions
16
src/main/java/com/axway/maven/kps/client/object/response/GeneralStringResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package com.axway.maven.kps.client.object.response; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
import lombok.Setter; | ||
|
||
import java.io.Serializable; | ||
|
||
@Getter | ||
@Setter | ||
@AllArgsConstructor | ||
@NoArgsConstructor | ||
public class GeneralStringResponse extends HttpStatusResponse implements Serializable { | ||
private String response; | ||
} |
20 changes: 20 additions & 0 deletions
20
src/main/java/com/axway/maven/kps/client/object/response/HttpStatusResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package com.axway.maven.kps.client.object.response; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
import lombok.Setter; | ||
|
||
import java.io.Serializable; | ||
|
||
@Getter | ||
@Setter | ||
@AllArgsConstructor | ||
@NoArgsConstructor | ||
public class HttpStatusResponse implements Serializable { | ||
@JsonProperty("httpCode") | ||
private Integer httpCode; | ||
@JsonProperty("httpMessage") | ||
private String httpMessage; | ||
} |
15 changes: 15 additions & 0 deletions
15
src/main/java/com/axway/maven/kps/client/object/response/KPSResult.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package com.axway.maven.kps.client.object.response; | ||
|
||
import lombok.Builder; | ||
import lombok.Getter; | ||
import lombok.Setter; | ||
|
||
import java.io.Serializable; | ||
|
||
@Builder | ||
@Getter | ||
@Setter | ||
public class KPSResult implements Serializable { | ||
private Boolean success; | ||
private String message; | ||
} |
Oops, something went wrong.