|
@@ -1,5 +1,6 @@
|
|
|
package cn.com.qmth.examcloud.core.oe.websocket.api.client;
|
|
|
|
|
|
+import cn.com.qmth.examcloud.api.commons.exchange.BaseRequest;
|
|
|
import cn.com.qmth.examcloud.web.cloud.CloudClientSupport;
|
|
|
|
|
|
/**
|
|
@@ -8,9 +9,24 @@ import cn.com.qmth.examcloud.web.cloud.CloudClientSupport;
|
|
|
*/
|
|
|
public abstract class BasicCloudClientSupport extends CloudClientSupport {
|
|
|
|
|
|
+ private static final String APP_NAME = "EC-CORE-OE-WEBSOCKET";
|
|
|
+
|
|
|
+ @Override
|
|
|
+ protected Integer getPort() {
|
|
|
+ return 10020;
|
|
|
+ }
|
|
|
+
|
|
|
@Override
|
|
|
- public String getUrlPrefix() {
|
|
|
- return "http://EC-CORE-OE-WEBSOCKET/api/oe/websocket/";
|
|
|
+ protected String getRequestMappingPrefix() {
|
|
|
+ return "api/oe/websocket";
|
|
|
+ }
|
|
|
+
|
|
|
+ protected void post(String requestMappingSuffix, BaseRequest body) {
|
|
|
+ super.post(APP_NAME, requestMappingSuffix, body);
|
|
|
+ }
|
|
|
+
|
|
|
+ protected <T> T post(String requestMappingSuffix, BaseRequest body, Class<T> responseType) {
|
|
|
+ return super.post(APP_NAME, requestMappingSuffix, body, responseType);
|
|
|
}
|
|
|
|
|
|
}
|