This repository has been archived by the owner on May 15, 2024. It is now read-only.
-
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.
feat: add a
HttpProducer
for methods doing a http(s) call (#11)
- Loading branch information
Showing
7 changed files
with
78 additions
and
30 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
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
20 changes: 20 additions & 0 deletions
20
src/java/main/com/hlag/tools/commvis/analyzer/model/HttpConsumer.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.hlag.tools.commvis.analyzer.model; | ||
|
||
import lombok.*; | ||
|
||
/** | ||
* An endpoint which can receive http(s) messages. Typically, a REST API. | ||
*/ | ||
@Value | ||
public class HttpConsumer implements ISenderReceiverCommunication { | ||
private final String className; | ||
private final String methodName; | ||
|
||
private final String type; | ||
private final String path; | ||
|
||
@Override | ||
public void visit(AbstractCommunicationModelVisitor visitor) { | ||
visitor.visit(this); | ||
} | ||
} |
36 changes: 36 additions & 0 deletions
36
src/java/main/com/hlag/tools/commvis/analyzer/model/HttpProducer.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,36 @@ | ||
package com.hlag.tools.commvis.analyzer.model; | ||
|
||
import lombok.Value; | ||
|
||
/** | ||
* Holds the data of one method calling a http(s) endpoint. | ||
*/ | ||
@Value | ||
public class HttpProducer implements ISenderReceiverCommunication { | ||
/** | ||
* The full qualified classname where the producer lives. | ||
*/ | ||
private final String className; | ||
/** | ||
* The method name of the producer. | ||
*/ | ||
private final String methodName; | ||
|
||
/** | ||
* The HTTP method like GET or POST. | ||
*/ | ||
private final String type; | ||
/** | ||
* The full path name called (usually without a domain). | ||
*/ | ||
private final String path; | ||
/** | ||
* The project id of the referenced project. | ||
*/ | ||
private final String destinationProjectId; | ||
|
||
@Override | ||
public void visit(AbstractCommunicationModelVisitor visitor) { | ||
visitor.visit(this); | ||
} | ||
} |
26 changes: 0 additions & 26 deletions
26
src/java/main/com/hlag/tools/commvis/analyzer/model/HttpReceiver.java
This file was deleted.
Oops, something went wrong.