public abstract class AbstractWebApiRequest extends AbstractWebRequest
Abstract AbstractWebApiRequest class.
Modifier and Type | Field and Description |
---|---|
static org.slf4j.Logger |
log
Constant
log |
Constructor and Description |
---|
AbstractWebApiRequest(int apiVersion)
Constructor for AbstractWebApiRequest.
|
Modifier and Type | Method and Description |
---|---|
int |
apiVersion()
apiVersion.
|
void |
apiVersion(int apiVersion)
apiVersion.
|
String |
baseUrlFormat()
baseUrlFormat.
|
void |
baseUrlFormat(String baseUrlFormat)
baseUrlFormat.
|
org.asynchttpclient.Request |
getMessage()
getMessage.
|
protected boolean |
hasProperty(String property)
hasProperty.
|
protected String |
property(String property)
property.
|
protected void |
property(String property,
Object value)
property.
|
String |
resolveBaseUrl()
resolveBaseUrl.
|
protected String |
resolveProperties(String textWithVariables)
resolveProperties.
|
protected void |
urlParam(AbstractCriteriaBuilder criteria)
urlParam.
|
baseUrl, build, encode, encode, header, method, request, urlParam
buildToString, equals, hashCode, id, toString
public AbstractWebApiRequest(int apiVersion)
Constructor for AbstractWebApiRequest.
apiVersion
- a intprotected void urlParam(AbstractCriteriaBuilder criteria)
urlParam.
criteria
- a AbstractCriteriaBuilder
objectpublic int apiVersion()
apiVersion.
public void apiVersion(int apiVersion)
apiVersion.
apiVersion
- a intprotected boolean hasProperty(String property)
hasProperty.
property
- a String
objectpublic void baseUrlFormat(String baseUrlFormat)
baseUrlFormat.
baseUrlFormat
- a String
objectpublic org.asynchttpclient.Request getMessage()
getMessage.
getMessage
in class AbstractWebRequest
Request
objectCopyright © 2016–2024. All rights reserved.