@Documented @MethodLifeCycle(value=PostRequestLifeCycle.class) @Retention(value=RUNTIME) @Target(value=METHOD) public @interface PostRequest
Modifier and Type | Optional Element and Description |
---|---|
boolean |
async
whether can use async http request or not
|
String |
charset
Charset, Default is UTF-8
|
String |
contentEncoding
Content Encoding
|
String |
contentType
Content Type
|
String[] |
data |
String |
dataType
type of response data:
text json xml default value is "auto" |
Class<?> |
decoder |
String[] |
headers
reqest headers:
use the key-value format: key: value |
Class<?>[] |
interceptor |
String |
keyStore
KeyStore Id
|
boolean |
logEnabled |
int |
maxRetryInterval |
long |
progressStep |
int |
retryCount
max count to retry
|
Class |
retryer
Class of retryer
|
String |
sslProtocol
SSL protocol
|
int |
timeout |
String |
url
目标请求URL [同value属性]
|
String |
userAgent
User Agent
|
String |
value
目标请求URL [同url属性]
|
public abstract String dataType
public abstract String sslProtocol
public abstract Class retryer
public abstract String contentType
public abstract String contentEncoding
public abstract String userAgent
public abstract String charset
public abstract String[] headers
headers = "Content-Type: application/json"multiple headers
headers = { "Content-Type: application/json", "Accept: text/plain" }variables and parameters
headers = {"Accept: ${value}"}
public abstract Class<?>[] interceptor
public abstract String[] data
public abstract Class<?> decoder
public abstract String keyStore
Copyright © 2020. All rights reserved.