public abstract class AbstractQTestApiRequestMarshaller<T extends ApiServiceRequest> extends java.lang.Object implements Marshaller<Request,T>
| Constructor and Description |
|---|
AbstractQTestApiRequestMarshaller() |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
createApiBasePathWithProject(java.lang.Long projectId) |
protected Request |
createJsonRequest(T requestType,
java.lang.String serviceName,
java.lang.String requestAction,
HttpMethod requestMethod)
Creates json request from the given request type, request action and request method.
|
protected java.lang.String |
getApiV3BasePath() |
protected static void |
validateId(java.lang.Long id,
java.lang.String message)
Validate entity identifier.
|
protected static void |
validateProjectId(java.lang.Long projectId)
Validate project identifier.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmarshallprotected static void validateProjectId(java.lang.Long projectId)
throws AuthClientException
projectId - the given project identifier to validate.AuthClientException - if an error occurs during validate project identifier.protected static void validateId(java.lang.Long id,
java.lang.String message)
throws AuthClientException
id - the given entity identifier.message - the given exception message.AuthClientException - if an error occurs during validate entity identifier.protected Request createJsonRequest(T requestType, java.lang.String serviceName, java.lang.String requestAction, HttpMethod requestMethod)
requestType - the given request type.serviceName - the given service name.requestAction - the given request action.requestMethod - the given request method.protected java.lang.String getApiV3BasePath()
protected java.lang.String createApiBasePathWithProject(java.lang.Long projectId)