mirror of
https://gitee.com/BDWare/agent-backend
synced 2025-01-10 01:44:14 +00:00
upgrad doipsdk
This commit is contained in:
parent
ce77ebe0b9
commit
fc7512f50f
@ -39,13 +39,16 @@ dependencies {
|
|||||||
implementation 'io.grpc:grpc-all:1.43.1'
|
implementation 'io.grpc:grpc-all:1.43.1'
|
||||||
implementation 'org.apache.velocity:velocity-engine-core:2.3'
|
implementation 'org.apache.velocity:velocity-engine-core:2.3'
|
||||||
implementation 'com.nimbusds:nimbus-jose-jwt:9.10'
|
implementation 'com.nimbusds:nimbus-jose-jwt:9.10'
|
||||||
|
implementation 'org.bdware.doip:doip-sdk:1.1.0'
|
||||||
testImplementation 'junit:junit:4.13.2'
|
testImplementation 'junit:junit:4.13.2'
|
||||||
}
|
}
|
||||||
|
|
||||||
compileJava {
|
compileJava {
|
||||||
options.compilerArgs << "-Xlint:unchecked"
|
options.compilerArgs << "-Xlint:unchecked"
|
||||||
}
|
}
|
||||||
|
repositories {
|
||||||
|
mavenCentral()
|
||||||
|
}
|
||||||
jar {
|
jar {
|
||||||
String libs = ''
|
String libs = ''
|
||||||
configurations.runtimeClasspath.each {
|
configurations.runtimeClasspath.each {
|
||||||
|
@ -11,9 +11,9 @@ import org.bdware.doip.codec.digitalObject.Element;
|
|||||||
import org.bdware.doip.codec.doipMessage.DoipMessage;
|
import org.bdware.doip.codec.doipMessage.DoipMessage;
|
||||||
import org.bdware.doip.codec.doipMessage.DoipResponseCode;
|
import org.bdware.doip.codec.doipMessage.DoipResponseCode;
|
||||||
import org.bdware.doip.codec.operations.BasicOperations;
|
import org.bdware.doip.codec.operations.BasicOperations;
|
||||||
import org.bdware.doip.endpoint.doipServer.DoipServiceInfo;
|
import org.bdware.doip.endpoint.server.DoipServiceInfo;
|
||||||
import org.bdware.doip.endpoint.doipServer.Op;
|
import org.bdware.doip.endpoint.server.Op;
|
||||||
import org.bdware.doip.endpoint.doipServer.RepositoryHandlerBase;
|
import org.bdware.doip.endpoint.server.RepositoryHandlerBase;
|
||||||
import org.bdware.sc.ContractClient;
|
import org.bdware.sc.ContractClient;
|
||||||
import org.bdware.sc.bean.ContractRequest;
|
import org.bdware.sc.bean.ContractRequest;
|
||||||
import org.bdware.sc.bean.FunctionDesp;
|
import org.bdware.sc.bean.FunctionDesp;
|
||||||
|
@ -2,9 +2,9 @@ package org.bdware.server.doip;
|
|||||||
|
|
||||||
import org.apache.logging.log4j.LogManager;
|
import org.apache.logging.log4j.LogManager;
|
||||||
import org.apache.logging.log4j.Logger;
|
import org.apache.logging.log4j.Logger;
|
||||||
import org.bdware.doip.endpoint.doipServer.DoipListenerInfo;
|
import org.bdware.doip.endpoint.server.DoipListenerConfig;
|
||||||
import org.bdware.doip.endpoint.doipServer.DoipServerImpl;
|
import org.bdware.doip.endpoint.server.DoipServerImpl;
|
||||||
import org.bdware.doip.endpoint.doipServer.DoipServiceInfo;
|
import org.bdware.doip.endpoint.server.DoipServiceInfo;
|
||||||
import org.bdware.server.DOAConf;
|
import org.bdware.server.DOAConf;
|
||||||
import org.bdware.server.GlobalConf;
|
import org.bdware.server.GlobalConf;
|
||||||
|
|
||||||
@ -29,8 +29,8 @@ public class ContractRepositoryMain {
|
|||||||
currentServer.stop();
|
currentServer.stop();
|
||||||
}
|
}
|
||||||
|
|
||||||
List<DoipListenerInfo> infos = new ArrayList<>();
|
List<DoipListenerConfig> infos = new ArrayList<>();
|
||||||
infos.add(new DoipListenerInfo(url, "2.1"));
|
infos.add(new DoipListenerConfig(url, "2.1"));
|
||||||
DoipServiceInfo info = new DoipServiceInfo(doid, "bdware.trust/Admin", "ContractRepo", infos);
|
DoipServiceInfo info = new DoipServiceInfo(doid, "bdware.trust/Admin", "ContractRepo", infos);
|
||||||
currentServer = new DoipServerImpl(info);
|
currentServer = new DoipServerImpl(info);
|
||||||
currentServer.setRepositoryHandler(new ContractRepositoryHandler(info));
|
currentServer.setRepositoryHandler(new ContractRepositoryHandler(info));
|
||||||
|
Loading…
Reference in New Issue
Block a user