-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #108 from ValentinTyhonov/generateAndPublish
Fixed issue in /generateAndPublish endpoint
- Loading branch information
Showing
13 changed files
with
132 additions
and
141 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
# RemRem Publish | ||
# Eiffel REMReM Publish | ||
|
||
[![Build Status](https://travis-ci.org/Ericsson/eiffel-remrem-publish.svg?branch=master)](https://travis-ci.org/Ericsson/eiffel-remrem-publish) | ||
[![Coverage Status](https://coveralls.io/repos/github/Ericsson/eiffel-remrem-publish/badge.svg?branch=master)](https://coveralls.io/github/Ericsson/eiffel-remrem-publish?branch=master) | ||
[![](https://jitpack.io/v/Ericsson/eiffel-remrem-publish.svg)](https://jitpack.io/#Ericsson/eiffel-remrem-publish) | ||
|
||
|
||
RemRem Publish is a microservice allowing sending of messages to a topic based exchange on a RabbitMQ Server. It has an endPoint that must be called a relative link | ||
REMReM Publish is a microservice allowing sending of messages to a topic based exchange on a RabbitMQ Server. It has endpoints that must be called as a relative links. | ||
|
||
## Documentation | ||
Further documentation is provided at the following link: http://ericsson.github.io/eiffel-remrem-publish | ||
|
||
|
||
|
||
__IMPORTANT NOTICE:__ The contents of this repository currectly reflect a __DRAFT__. The Eiffel framework has been used in production within Ericsson for several years to great effect; what is presented here is a revision and evolution of that framework - an evolution that is currently ongoing. In other words, anything in this repository should be regarded as tentative and subject to change. It is published here to allow early access and trial and to solicit early feedback. | ||
__IMPORTANT NOTICE:__ The contents of this repository currently reflect a __DRAFT__. The Eiffel framework has been used in production within Ericsson for several years to great effect; what is presented here is a revision and evolution of that framework - an evolution that is currently ongoing. In other words, anything in this repository should be regarded as tentative and subject to change. It is published here to allow early access and trial and to solicit early feedback. |
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
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
40 changes: 40 additions & 0 deletions
40
...vice/src/main/java/com/ericsson/eiffel/remrem/publish/controller/GenerateURLTemplate.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,40 @@ | ||
package com.ericsson.eiffel.remrem.publish.controller; | ||
|
||
import org.springframework.beans.factory.annotation.Value; | ||
import org.springframework.stereotype.Component; | ||
|
||
import java.util.HashMap; | ||
import java.util.Map; | ||
|
||
/** | ||
* A class for generating URL template of REMReM Generate Service | ||
* | ||
*/ | ||
@Component | ||
public class GenerateURLTemplate { | ||
|
||
@Value("${generate.server.host}") | ||
private String generateServerHost; | ||
|
||
@Value("${generate.server.port}") | ||
private String generateServerPort; | ||
|
||
@Value("${generate.server.appName}") | ||
private String generateServerAppName; | ||
|
||
public String getUrl() { | ||
return "http://{generateServerHost}:{generateServerPort}/{generateServerAppName}/{mp}?msgType={msgType}"; | ||
} | ||
|
||
public Map<String, String> getMap(final String mp, final String msgType) { | ||
Map<String, String> map = new HashMap<>(); | ||
map.put("mp", mp); | ||
map.put("msgType", msgType); | ||
map.put("generateServerHost", generateServerHost); | ||
map.put("generateServerPort", generateServerPort); | ||
map.put("generateServerAppName", generateServerAppName); | ||
|
||
return map; | ||
} | ||
|
||
} |
Oops, something went wrong.