public enum EResponseHandler extends Enum<EResponseHandler>
Enum Constant and Description |
---|
InputStreamResponse
将获取的http response body转换为本地输入流(inputstream,在本地操作系统临时文件缓存)
|
StringResponse
将获取的http response body转换为字符串(string)
|
Modifier and Type | Method and Description |
---|---|
org.apache.http.client.ResponseHandler<?> |
getResponseHandler() |
static EResponseHandler |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EResponseHandler[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EResponseHandler StringResponse
public static final EResponseHandler InputStreamResponse
public static EResponseHandler[] values()
for (EResponseHandler c : EResponseHandler.values()) System.out.println(c);
public static EResponseHandler valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic org.apache.http.client.ResponseHandler<?> getResponseHandler()
Copyright © 2020. All rights reserved.