public class AmHttpUtils extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
AmHttpUtils.AmResponseInputStream |
| 限定符和类型 | 字段和说明 |
|---|---|
static Pattern |
FUNC_NAME_PATTERN |
| 构造器和说明 |
|---|
AmHttpUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static Object |
createAmResponse(int functionId,
InputStream inputStream) |
static Object |
createAmResponseFromJson(int functionId,
InputStream inputStream) |
static org.apache.http.client.entity.UrlEncodedFormEntity |
createUrlPostEntity(Object amRequest,
int dataResultType) |
static String |
getAuthorization(String auth) |
protected static Class<?> |
getReturnParameterizedType(int funcId) |
static Class<?> |
getReturnType(int funcId) |
protected static Object |
parseType0Result(org.dom4j.Element root,
int funcId) |
protected static Object |
parseType1Result(org.dom4j.Element root,
int funcId) |
static StringBuffer |
toString(Object amRequest) |
public static final Pattern FUNC_NAME_PATTERN
public static org.apache.http.client.entity.UrlEncodedFormEntity createUrlPostEntity(Object amRequest, int dataResultType) throws IllegalArgumentException, IllegalAccessException
public static StringBuffer toString(Object amRequest) throws IllegalArgumentException, IllegalAccessException
public static Object createAmResponseFromJson(int functionId, InputStream inputStream) throws com.fasterxml.jackson.core.JsonParseException, IOException, InstantiationException, IllegalAccessException
com.fasterxml.jackson.core.JsonParseExceptionIOExceptionInstantiationExceptionIllegalAccessExceptionpublic static Object createAmResponse(int functionId, InputStream inputStream) throws org.dom4j.DocumentException, InstantiationException, IllegalAccessException
org.dom4j.DocumentExceptionInstantiationExceptionIllegalAccessExceptionprotected static Object parseType0Result(org.dom4j.Element root, int funcId) throws InstantiationException, IllegalAccessException
protected static Object parseType1Result(org.dom4j.Element root, int funcId) throws InstantiationException, IllegalAccessException
public static Class<?> getReturnType(int funcId)
protected static Class<?> getReturnParameterizedType(int funcId)
Copyright © 2017. All rights reserved.