com.alipay.api.internal.mapping.Converter Java Examples

The following examples show how to use com.alipay.api.internal.mapping.Converter. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ObjectJsonParser.java    From alipay-sdk with Apache License 2.0 5 votes vote down vote up
/** 
 * @see com.alipay.api.AlipayParser#encryptSourceData(com.alipay.api.AlipayRequest, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)
 */
public String encryptSourceData(AlipayRequest<?> request, String body, String format,
                                   String encryptType, String encryptKey, String charset)
                                                                                         throws AlipayApiException {

    Converter converter = new JsonConverter();

    return converter.encryptSourceData(request, body, format, encryptType, encryptKey,
        charset);
}
 
Example #2
Source File: ObjectXmlParser.java    From pay with Apache License 2.0 5 votes vote down vote up
/** 
 * @see com.alipay.api.AlipayParser#encryptSourceData(com.alipay.api.AlipayRequest, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)
 */
public String encryptSourceData(AlipayRequest<?> request, String body, String format,
                                   String encryptType, String encryptKey, String charset)
                                                                                         throws AlipayApiException {

    Converter converter = new XmlConverter();

    return converter.encryptSourceData(request, body, format, encryptType, encryptKey,
        charset);
}
 
Example #3
Source File: ObjectXmlParser.java    From pay with Apache License 2.0 5 votes vote down vote up
/** 
 * @see com.alipay.api.AlipayParser#getSignItem(com.alipay.api.AlipayRequest, String)
 */
public SignItem getSignItem(AlipayRequest<?> request, String responseBody)
                                                                          throws AlipayApiException {

    Converter converter = new XmlConverter();

    return converter.getSignItem(request, responseBody);
}
 
Example #4
Source File: ObjectJsonParser.java    From pay with Apache License 2.0 5 votes vote down vote up
/** 
 * @see com.alipay.api.AlipayParser#encryptSourceData(com.alipay.api.AlipayRequest, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)
 */
public String encryptSourceData(AlipayRequest<?> request, String body, String format,
                                   String encryptType, String encryptKey, String charset)
                                                                                         throws AlipayApiException {

    Converter converter = new JsonConverter();

    return converter.encryptSourceData(request, body, format, encryptType, encryptKey,
        charset);
}
 
Example #5
Source File: ObjectJsonParser.java    From pay with Apache License 2.0 5 votes vote down vote up
/** 
 * @see com.alipay.api.AlipayParser#getSignItem(com.alipay.api.AlipayRequest, String)
 */
public SignItem getSignItem(AlipayRequest<?> request, String responseBody)
                                                                          throws AlipayApiException {

    Converter converter = new JsonConverter();

    return converter.getSignItem(request, responseBody);
}
 
Example #6
Source File: ObjectXmlParser.java    From alipay-sdk with Apache License 2.0 5 votes vote down vote up
/** 
 * @see com.alipay.api.AlipayParser#encryptSourceData(com.alipay.api.AlipayRequest, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)
 */
public String encryptSourceData(AlipayRequest<?> request, String body, String format,
                                   String encryptType, String encryptKey, String charset)
                                                                                         throws AlipayApiException {

    Converter converter = new XmlConverter();

    return converter.encryptSourceData(request, body, format, encryptType, encryptKey,
        charset);
}
 
Example #7
Source File: ObjectXmlParser.java    From alipay-sdk with Apache License 2.0 5 votes vote down vote up
/** 
 * @see com.alipay.api.AlipayParser#getSignItem(com.alipay.api.AlipayRequest, String)
 */
public SignItem getSignItem(AlipayRequest<?> request, String responseBody)
                                                                          throws AlipayApiException {

    Converter converter = new XmlConverter();

    return converter.getSignItem(request, responseBody);
}
 
Example #8
Source File: ObjectJsonParser.java    From alipay-sdk with Apache License 2.0 5 votes vote down vote up
/** 
 * @see com.alipay.api.AlipayParser#getSignItem(com.alipay.api.AlipayRequest, String)
 */
public SignItem getSignItem(AlipayRequest<?> request, String responseBody)
                                                                          throws AlipayApiException {

    Converter converter = new JsonConverter();

    return converter.getSignItem(request, responseBody);
}
 
Example #9
Source File: ObjectXmlParser.java    From alipay-sdk-java-all with Apache License 2.0 5 votes vote down vote up
public String decryptSourceData(AlipayRequest<?> request, String body, String format,
                                Decryptor decryptor, String encryptType, String charset)
        throws AlipayApiException {

    Converter converter = new XmlConverter();

    return converter.decryptSourceData(request, body, format, decryptor, encryptType, charset);
}
 
Example #10
Source File: ObjectJsonParser.java    From alipay-sdk-java-all with Apache License 2.0 5 votes vote down vote up
public String decryptSourceData(AlipayRequest<?> request, String body, String format,
                                Decryptor decryptor, String encryptType, String charset)
        throws AlipayApiException {

    Converter converter = new JsonConverter();

    return converter.decryptSourceData(request, body, format, decryptor, encryptType, charset);
}
 
Example #11
Source File: ObjectJsonParser.java    From alipay-sdk with Apache License 2.0 4 votes vote down vote up
public T parse(String rsp) throws AlipayApiException {
    Converter converter = new JsonConverter();
    return converter.toResponse(rsp, clazz);
}
 
Example #12
Source File: ObjectJsonParser.java    From alipay-sdk-java-all with Apache License 2.0 4 votes vote down vote up
public T parse(String rsp) throws AlipayApiException {
    Converter converter = new JsonConverter();
    return converter.toResponse(rsp, clazz);
}
 
Example #13
Source File: ObjectXmlParser.java    From alipay-sdk with Apache License 2.0 4 votes vote down vote up
public T parse(String rsp) throws AlipayApiException {
    Converter converter = new XmlConverter();
    return converter.toResponse(rsp, clazz);
}
 
Example #14
Source File: ObjectJsonParser.java    From pay with Apache License 2.0 4 votes vote down vote up
public T parse(String rsp) throws AlipayApiException {
    Converter converter = new JsonConverter();
    return converter.toResponse(rsp, clazz);
}
 
Example #15
Source File: ObjectXmlParser.java    From alipay-sdk-java-all with Apache License 2.0 4 votes vote down vote up
public T parse(String rsp) throws AlipayApiException {
    Converter converter = new XmlConverter();
    return converter.toResponse(rsp, clazz);
}
 
Example #16
Source File: ObjectXmlParser.java    From pay with Apache License 2.0 4 votes vote down vote up
public T parse(String rsp) throws AlipayApiException {
    Converter converter = new XmlConverter();
    return converter.toResponse(rsp, clazz);
}
 
Example #17
Source File: ObjectXmlParser.java    From alipay-sdk-java-all with Apache License 2.0 3 votes vote down vote up
public CertItem getCertItem(AlipayRequest<?> request, String responseBody)
        throws AlipayApiException {

    Converter converter = new XmlConverter();

    return converter.getCertItem(request, responseBody);
}
 
Example #18
Source File: ObjectXmlParser.java    From alipay-sdk-java-all with Apache License 2.0 3 votes vote down vote up
public SignItem getSignItem(AlipayRequest<?> request, String responseBody)
        throws AlipayApiException {

    Converter converter = new XmlConverter();

    return converter.getSignItem(request, responseBody);
}
 
Example #19
Source File: ObjectJsonParser.java    From alipay-sdk-java-all with Apache License 2.0 3 votes vote down vote up
public CertItem getCertItem(AlipayRequest<?> request, String responseBody)
        throws AlipayApiException {

    Converter converter = new JsonConverter();

    return converter.getCertItem(request, responseBody);
}
 
Example #20
Source File: ObjectJsonParser.java    From alipay-sdk-java-all with Apache License 2.0 3 votes vote down vote up
public SignItem getSignItem(AlipayRequest<?> request, String responseBody)
        throws AlipayApiException {

    Converter converter = new JsonConverter();

    return converter.getSignItem(request, responseBody);
}