All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.aiwiown.face.ApiParser Maven / Gradle / Ivy

There is a newer version: 3.0.9
Show newest version
package com.aiwiown.face;

/**
 * 响应解释器接口。响应格式可以是JSON, XML等等。
 *
 * @author carver.gu
 * @since 1.0, Apr 11, 2010
 */
public interface ApiParser {

    /**
     * 把响应字符串解释成相应的领域对象。
     *
     * @param rsp 响应字符串
     * @return 领域对象
     */
    T parse(String rsp) throws ApiException;

    /**
     * 获取响应类类型。
     */
    Class getResponseClass() throws ApiException;

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy