aboutsummaryrefslogtreecommitdiff
path: root/juick-server-web/src/main/java/com/juick/service/BaseRestService.java
diff options
context:
space:
mode:
Diffstat (limited to 'juick-server-web/src/main/java/com/juick/service/BaseRestService.java')
-rw-r--r--juick-server-web/src/main/java/com/juick/service/BaseRestService.java18
1 files changed, 18 insertions, 0 deletions
diff --git a/juick-server-web/src/main/java/com/juick/service/BaseRestService.java b/juick-server-web/src/main/java/com/juick/service/BaseRestService.java
new file mode 100644
index 00000000..4ccc3959
--- /dev/null
+++ b/juick-server-web/src/main/java/com/juick/service/BaseRestService.java
@@ -0,0 +1,18 @@
+package com.juick.service;
+
+import org.springframework.web.client.RestTemplate;
+
+/**
+ * Created by vitalyster on 15.12.2016.
+ */
+public abstract class BaseRestService {
+ private RestTemplate rest;
+
+ public BaseRestService(RestTemplate rest) {
+ this.rest = rest;
+ }
+
+ public RestTemplate getRest() {
+ return rest;
+ }
+}