public abstract class AbstractRequestBuilder
extends java.lang.Object
Constructor and Description |
---|
AbstractRequestBuilder(java.lang.String baseUrl)
Instantiates a new abstract request builder.
|
Modifier and Type | Method and Description |
---|---|
void |
appendEndpoint(java.lang.String endpoint)
Append endpoint.
|
void |
appendJSONBodyJSONProperty(java.lang.String bodyKey,
com.google.gson.JsonElement bodyValue)
Append body json property.
|
void |
appendJSONBodyProperty(java.lang.String bodyKey,
java.lang.String bodyValue)
Append json body property.
|
void |
appendURLParameter(java.lang.String urlKey,
java.lang.String urlValue)
Append URL parameter.
|
java.lang.String |
getBody()
Gets the body.
|
java.lang.String |
getURL()
Gets the url.
|
void |
setCustomBody(java.lang.String customBody)
Sets custom body.
|
public AbstractRequestBuilder(java.lang.String baseUrl)
baseUrl
- the base urlpublic void appendEndpoint(java.lang.String endpoint)
endpoint
- the endpointpublic void appendURLParameter(java.lang.String urlKey, java.lang.String urlValue)
urlKey
- the url keyurlValue
- the url valuepublic void appendJSONBodyProperty(java.lang.String bodyKey, java.lang.String bodyValue)
bodyKey
- the body keybodyValue
- the body valuepublic void appendJSONBodyJSONProperty(java.lang.String bodyKey, com.google.gson.JsonElement bodyValue)
bodyKey
- the body keybodyValue
- the body valuepublic java.lang.String getURL()
public java.lang.String getBody()
public void setCustomBody(java.lang.String customBody)
customBody
- the custom body