限定符和类型 | 方法和说明 |
---|---|
List<?> |
Reader.getListObjects(Object listName,
Object itemName,
Class<?> subType)
读取多个对象的值。
|
Object |
Reader.getObject(Object name,
Class<?> type)
读取单个自定义对象。
|
T |
WXPayParser.parse(String resp)
把响应字段解析为对应的协议对象
|
<T extends WXPayResponse> |
Converter.toResponse(String resp,
Class<T> clazz)
响应字符串转响应对象类型
|
限定符和类型 | 方法和说明 |
---|---|
<T> T |
JsonConverter.fromJson(Map<?,?> json,
Class<T> clazz)
把JSON格式的数据转换为对象
|
T |
ObjectJsonParser.parse(String resp) |
<T extends WXPayResponse> |
JsonConverter.toResponse(String resp,
Class<T> clazz) |
限定符和类型 | 方法和说明 |
---|---|
T |
ObjectXmlParser.parse(String resp) |
<T extends WXPayResponse> |
XmlConverter.toResponse(String resp,
Class<T> clazz) |
限定符和类型 | 方法和说明 |
---|---|
static String |
XmlUtils.childNodeToString(Node node)
Converts the Node/Element instance to XML payload.
|
static <T> T |
Converters.convert(Class<T> clazz,
Reader reader)
使用指定 的读取器去转换字符串为对象。
|
static Element |
XmlUtils.createRootElement(String tagName)
Creates a root element as well as a new document with specific tag name.
|
static String |
XmlUtils.encodeXml(String payload)
Encode the XML payload to legality character.
|
static Document |
XmlUtils.getDocument(File file)
Parses the content of the given XML file as an XML document.
|
static Document |
XmlUtils.getDocument(InputStream in)
Parses the content of the given stream as an XML document.
|
static Element |
XmlUtils.getRootElementFromFile(File file)
Gets the root element from given XML file.
|
static Element |
XmlUtils.getRootElementFromStream(InputStream in)
Gets the root element from input stream.
|
static Element |
XmlUtils.getRootElementFromString(String payload)
Gets the root element from the given XML payload.
|
static String |
MapUtils.map2XmlString(Map<String,String> map)
map转xml element
|
static String |
WXPaySignUtils.md5Sign(String signContent,
String key,
String charset)
返回md5签名后的值
|
static Document |
XmlUtils.newDocument()
Creates a new document instance.
|
static String |
XmlUtils.nodeToString(Node node)
Converts the Node/Document/Element instance to XML payload.
|
static void |
XmlUtils.saveToXml(Node doc,
File file)
Saves the node/document/element as XML file.
|
static void |
XmlUtils.validateXml(Node doc,
File schemaFile)
Validates the element tree context via given XML schema file.
|
static void |
XmlUtils.validateXml(Node doc,
InputStream schemaStream)
Validates the element tree context via given XML schema file.
|
static String |
XmlUtils.xmlToHtml(String payload,
File xsltFile)
Transforms the XML content to XHTML/HTML format string with the XSL.
|
static String |
XmlUtils.xmlToString(File file)
Converts the an XML file to XML payload.
|
static String |
XmlUtils.xmlToString(InputStream in)
Converts the an XML file input stream to XML payload.
|
限定符和类型 | 方法和说明 |
---|---|
<T extends WXPayResponse> |
WXPayClient.execute(WXPayRequest<T> request) |
<T extends WXPayResponse> |
IWXPayClient.execute(WXPayRequest<T> request)
执行api调用
|
<T extends WXPayResponse> |
WXPayClient.parseNotify(String notifyData,
Class<T> clazz) |
<T extends WXPayResponse> |
IWXPayClient.parseNotify(String notifyData,
Class<T> clazz)
解析微信支付异步通知数据
|
Copyright © 2017. All rights reserved.