mirror of
https://gitee.com/BDWare/cp.git
synced 2025-01-10 01:44:08 +00:00
upgrade doipsdk
This commit is contained in:
parent
b5ec0caccb
commit
cb13076423
@ -5,7 +5,9 @@ plugins {
|
|||||||
}
|
}
|
||||||
|
|
||||||
mainClassName = 'org.bdware.sc.ContractProcess'
|
mainClassName = 'org.bdware.sc.ContractProcess'
|
||||||
|
repositories {
|
||||||
|
mavenCentral()
|
||||||
|
}
|
||||||
sourceSets {
|
sourceSets {
|
||||||
main {
|
main {
|
||||||
java {
|
java {
|
||||||
@ -37,6 +39,7 @@ dependencies {
|
|||||||
implementation 'org.jsoup:jsoup:1.14.2'
|
implementation 'org.jsoup:jsoup:1.14.2'
|
||||||
implementation 'com.sun.mail:javax.mail:1.6.2'
|
implementation 'com.sun.mail:javax.mail:1.6.2'
|
||||||
implementation 'com.squareup.okhttp3:okhttp:4.9.1'
|
implementation 'com.squareup.okhttp3:okhttp:4.9.1'
|
||||||
|
implementation 'org.bdware.doip:doip-sdk:1.1.0'
|
||||||
api fileTree(dir: 'lib', include: '*.jar')
|
api fileTree(dir: 'lib', include: '*.jar')
|
||||||
|
|
||||||
testImplementation 'junit:junit:4.13.2'
|
testImplementation 'junit:junit:4.13.2'
|
||||||
|
Binary file not shown.
@ -8,8 +8,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.DoipMessageFactory;
|
import org.bdware.doip.codec.doipMessage.DoipMessageFactory;
|
||||||
import org.bdware.doip.codec.operations.BasicOperations;
|
import org.bdware.doip.codec.operations.BasicOperations;
|
||||||
import org.bdware.doip.endpoint.doipClient.DoipClientImpl;
|
import org.bdware.doip.endpoint.client.ClientConfig;
|
||||||
import org.bdware.doip.endpoint.doipClient.DoipMessageCallback;
|
import org.bdware.doip.endpoint.client.DoipClientImpl;
|
||||||
|
import org.bdware.doip.endpoint.client.DoipMessageCallback;
|
||||||
import org.bdware.sc.compiler.PermissionStub;
|
import org.bdware.sc.compiler.PermissionStub;
|
||||||
import org.bdware.sc.node.Permission;
|
import org.bdware.sc.node.Permission;
|
||||||
import org.bdware.sc.util.JsonUtil;
|
import org.bdware.sc.util.JsonUtil;
|
||||||
@ -27,7 +28,7 @@ public class DOIPUtil {
|
|||||||
private DOIPUtil(String url) {
|
private DOIPUtil(String url) {
|
||||||
this.url = url;
|
this.url = url;
|
||||||
this.doipClient = new DoipClientImpl();
|
this.doipClient = new DoipClientImpl();
|
||||||
doipClient.connect(url);
|
doipClient.connect(ClientConfig.fromUrl(url));
|
||||||
}
|
}
|
||||||
|
|
||||||
public static DOIPUtil createClient(String url) {
|
public static DOIPUtil createClient(String url) {
|
||||||
|
Loading…
Reference in New Issue
Block a user