upgrad doipsdk

This commit is contained in:
CaiHQ 2022-01-09 00:04:04 +08:00
parent ce77ebe0b9
commit fc7512f50f
3 changed files with 12 additions and 9 deletions

View File

@ -39,13 +39,16 @@ dependencies {
implementation 'io.grpc:grpc-all:1.43.1'
implementation 'org.apache.velocity:velocity-engine-core:2.3'
implementation 'com.nimbusds:nimbus-jose-jwt:9.10'
implementation 'org.bdware.doip:doip-sdk:1.1.0'
testImplementation 'junit:junit:4.13.2'
}
compileJava {
options.compilerArgs << "-Xlint:unchecked"
}
repositories {
mavenCentral()
}
jar {
String libs = ''
configurations.runtimeClasspath.each {

View File

@ -11,9 +11,9 @@ import org.bdware.doip.codec.digitalObject.Element;
import org.bdware.doip.codec.doipMessage.DoipMessage;
import org.bdware.doip.codec.doipMessage.DoipResponseCode;
import org.bdware.doip.codec.operations.BasicOperations;
import org.bdware.doip.endpoint.doipServer.DoipServiceInfo;
import org.bdware.doip.endpoint.doipServer.Op;
import org.bdware.doip.endpoint.doipServer.RepositoryHandlerBase;
import org.bdware.doip.endpoint.server.DoipServiceInfo;
import org.bdware.doip.endpoint.server.Op;
import org.bdware.doip.endpoint.server.RepositoryHandlerBase;
import org.bdware.sc.ContractClient;
import org.bdware.sc.bean.ContractRequest;
import org.bdware.sc.bean.FunctionDesp;

View File

@ -2,9 +2,9 @@ package org.bdware.server.doip;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.bdware.doip.endpoint.doipServer.DoipListenerInfo;
import org.bdware.doip.endpoint.doipServer.DoipServerImpl;
import org.bdware.doip.endpoint.doipServer.DoipServiceInfo;
import org.bdware.doip.endpoint.server.DoipListenerConfig;
import org.bdware.doip.endpoint.server.DoipServerImpl;
import org.bdware.doip.endpoint.server.DoipServiceInfo;
import org.bdware.server.DOAConf;
import org.bdware.server.GlobalConf;
@ -29,8 +29,8 @@ public class ContractRepositoryMain {
currentServer.stop();
}
List<DoipListenerInfo> infos = new ArrayList<>();
infos.add(new DoipListenerInfo(url, "2.1"));
List<DoipListenerConfig> infos = new ArrayList<>();
infos.add(new DoipListenerConfig(url, "2.1"));
DoipServiceInfo info = new DoipServiceInfo(doid, "bdware.trust/Admin", "ContractRepo", infos);
currentServer = new DoipServerImpl(info);
currentServer.setRepositoryHandler(new ContractRepositoryHandler(info));