]> git.somenet.org - pub/jan/dst18.git/blob - ass2-service/auth-client/src/main/java/dst/ass2/service/auth/client/AuthenticationClientProperties.java
Add template for assignment 2
[pub/jan/dst18.git] / ass2-service / auth-client / src / main / java / dst / ass2 / service / auth / client / AuthenticationClientProperties.java
1 package dst.ass2.service.auth.client;
2
3 /**
4  * This class holds the host and port value used to connect to the gRPC server. The CDI context provides an instance
5  * that you can inject into your implementation of {@link IAuthenticationClient}. The config values are loaded from the
6  * application.properties file.
7  */
8 public class AuthenticationClientProperties {
9
10     private String host;
11     private int port;
12
13     public AuthenticationClientProperties() {
14
15     }
16
17     public AuthenticationClientProperties(String host, int port) {
18         this.host = host;
19         this.port = port;
20     }
21
22     public String getHost() {
23         return host;
24     }
25
26     public void setHost(String host) {
27         this.host = host;
28     }
29
30     public int getPort() {
31         return port;
32     }
33
34     public void setPort(int port) {
35         this.port = port;
36     }
37 }