Package org.probato.integration.manager
Class AbstractApiService
java.lang.Object
org.probato.integration.manager.AbstractApiService
- All Implemented Interfaces:
ExternalService
- Direct Known Subclasses:
DeleteExecutionDataFileService,HealthCheckApiService,LoadIncrementExecutionApiService,SubmitExecutionDataApiService
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Stringprotected <T> TconverterResponse(HttpResponse<String> response, Class<T> clazz) protected abstract voidexecute()protected Stringprotected Longprotected UUIDprotected Stringprotected Stringprotected Stringprotected booleanisSubmit()voidrun()protected HttpResponse<String> send(HttpRequest request) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.probato.integration.ExternalService
accepted, getExecutionPhase
-
Field Details
-
X_PROJECT_TOKEN
- See Also:
-
-
Constructor Details
-
AbstractApiService
public AbstractApiService()
-
-
Method Details
-
execute
- Throws:
Exception
-
run
public void run()- Specified by:
runin interfaceExternalService
-
getBaseUrl
-
isSubmit
protected boolean isSubmit() -
getProjectToken
-
getIncrement
-
getProjectId
-
getProjectVersion
-
getTempDir
-
buildUrl
-
send
- Throws:
IOExceptionInterruptedException
-
converterResponse
-