public class BaseEndpoint extends Object implements Endpoint
| Modifier and Type | Field and Description |
|---|---|
protected String |
apiVersion |
protected String |
httpMethod |
protected String |
path |
protected ConcurrentMap<String,String> |
postParameters |
protected ConcurrentMap<String,String> |
queryParameters |
| Constructor and Description |
|---|
BaseEndpoint(String path,
String httpMethod) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addDefaultParams() |
void |
addPostParameter(String param,
String value) |
void |
addQueryParameter(String param,
String value) |
protected String |
generateParamString(Map<String,String> params) |
String |
getHttpMethod() |
String |
getPath() |
String |
getPath(String apiVersion) |
String |
getPostParamString()
Returns the string format of the post parameters for this endpoint, if applicable
|
String |
getQueryParamString() |
String |
getURI() |
void |
removePostParameter(String param) |
void |
removeQueryParameter(String param) |
void |
setApiVersion(String apiVersion) |
protected final ConcurrentMap<String,String> queryParameters
protected final ConcurrentMap<String,String> postParameters
protected final String path
protected final String httpMethod
protected volatile String apiVersion
public final String getPath()
protected void addDefaultParams()
public String getQueryParamString()
getQueryParamString in interface Endpointpublic String getPostParamString()
EndpointgetPostParamString in interface Endpointpublic String getHttpMethod()
getHttpMethod in interface Endpointpublic void addPostParameter(String param, String value)
addPostParameter in interface Endpointpublic void removePostParameter(String param)
removePostParameter in interface Endpointpublic void addQueryParameter(String param, String value)
addQueryParameter in interface Endpointpublic void removeQueryParameter(String param)
removeQueryParameter in interface Endpointpublic void setApiVersion(String apiVersion)
Copyright © 2014. All Rights Reserved.