upgrade doipsdk

This commit is contained in:
CaiHQ 2022-01-08 23:43:21 +08:00
parent b5ec0caccb
commit cb13076423
3 changed files with 8 additions and 4 deletions

View File

@ -5,7 +5,9 @@ plugins {
}
mainClassName = 'org.bdware.sc.ContractProcess'
repositories {
mavenCentral()
}
sourceSets {
main {
java {
@ -37,6 +39,7 @@ dependencies {
implementation 'org.jsoup:jsoup:1.14.2'
implementation 'com.sun.mail:javax.mail:1.6.2'
implementation 'com.squareup.okhttp3:okhttp:4.9.1'
implementation 'org.bdware.doip:doip-sdk:1.1.0'
api fileTree(dir: 'lib', include: '*.jar')
testImplementation 'junit:junit:4.13.2'

Binary file not shown.

View File

@ -8,8 +8,9 @@ import org.bdware.doip.codec.digitalObject.Element;
import org.bdware.doip.codec.doipMessage.DoipMessage;
import org.bdware.doip.codec.doipMessage.DoipMessageFactory;
import org.bdware.doip.codec.operations.BasicOperations;
import org.bdware.doip.endpoint.doipClient.DoipClientImpl;
import org.bdware.doip.endpoint.doipClient.DoipMessageCallback;
import org.bdware.doip.endpoint.client.ClientConfig;
import org.bdware.doip.endpoint.client.DoipClientImpl;
import org.bdware.doip.endpoint.client.DoipMessageCallback;
import org.bdware.sc.compiler.PermissionStub;
import org.bdware.sc.node.Permission;
import org.bdware.sc.util.JsonUtil;
@ -27,7 +28,7 @@ public class DOIPUtil {
private DOIPUtil(String url) {
this.url = url;
this.doipClient = new DoipClientImpl();
doipClient.connect(url);
doipClient.connect(ClientConfig.fromUrl(url));
}
public static DOIPUtil createClient(String url) {