
org.bdware.irp2.client.IrpClient Maven / Gradle / Ivy
package org.bdware.irp2.client;
import org.bdware.irp2.exception.IrpClientException;
import org.bdware.irp2.irplib.core.IrpMessageSigner;
import org.bdware.irp2.irplib.exception.IrpConnectException;
import org.bdware.irp2.stateinfo.StateInfoBase;
import java.util.List;
public interface IrpClient {
/**
* @param handle 为string类型,表示需要解析的DOID
* @return StateInfoBase类型,表示返回的解析结果
* @exception IrpClientException 当解析出错时,抛出异常
*/
StateInfoBase resolve(String handle) throws IrpClientException;
String register(StateInfoBase hr) throws IrpClientException;
String reRegister(StateInfoBase hr) throws IrpClientException;
String unRegister(String handle) throws IrpClientException;
List batchRegister(StateInfoBase hr, int count) throws IrpClientException;
void close();
void connect(String url);
void connect(String clientID, String LHSUrl, IrpMessageSigner signer);
void reconnect() throws IrpConnectException;
public boolean isConnected();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy