public abstract class GiphySearchStepExecution<T>
extends org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution<T>
| Constructor and Description |
|---|
GiphySearchStepExecution(GiphySearchStep giphyStep,
org.jenkinsci.plugins.workflow.steps.StepContext context)
Constructor for StepExecution
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
getGiphyHost()
We can now override it in the tests and test the api calls to giphy without actually calling giphy each time
|
protected String |
getScheme()
We can now override it in the tests and test the api calls to giphy without actually calling giphy each time
TODO: make mockServer work with https and then remove this method
|
protected abstract T |
handleGiphySearchResponse(GiphySearchStep step,
org.json.simple.JSONObject json)
method that responsible to what should we do with the response from giphy
|
protected T |
run()
Meat of the execution.
|
getStatus, onResume, start, stoppublic GiphySearchStepExecution(GiphySearchStep giphyStep, org.jenkinsci.plugins.workflow.steps.StepContext context)
giphyStep - the step runningcontext - step contextprotected T run() throws Exception
protected String getScheme()
protected String getGiphyHost()
protected abstract T handleGiphySearchResponse(GiphySearchStep step, org.json.simple.JSONObject json)
step - the step with all the values from the userjson - the response from giphy with JSON formatCopyright © 2016–2018. All rights reserved.