62,614
社区成员
发帖
与我相关
我的任务
分享
PDFDocumentSigner signers = PDFDocumentSigner.getInstance();
final PDFDocumentSignResult result = (PDFDocumentSignResult)signers.sign(request);
public abstract class AbstractDocumentSigner<Payload, BatchPayload, SignResult extends DocumentSignResult, BatchSignResult> implements DocumentSigner<Payload, BatchPayload, SignResult, BatchSignResult> {
public SignResult sign(Payload payload) {
final Throwable err = this.checkAndLoadLibrary();
if (err != null) {
return new DocumentSignResult() {
public Throwable getError() {
return new RuntimeException("装载Docsign SDK失败", err);
}
public int getResultCode() {
return -1;
}
};
}
} else {
return this.signInternal(payload);
}
}
}
public class PDFDocumentSigner extends AbstractDocumentSigner<PDFDocumentSignRequest, PDFDocumentSignBatchRequest, PDFDocumentSignResult, PDFDocumentBatchSignResult> {
protected PDFDocumentSignResult signInternal(PDFDocumentSignRequest payload){}
}