public abstract class OkHttpRequestTask extends OkHttpTask
HTTP Request.Task.NamerTASK_ACTION, TASK_CONSTRUCTOR_ARGS, TASK_DEPENDS_ON, TASK_DESCRIPTION, TASK_GROUP, TASK_NAME, TASK_OVERWRITE, TASK_TYPE| Constructor and Description |
|---|
OkHttpRequestTask() |
| Modifier and Type | Method and Description |
|---|---|
okhttp3.Request.Builder |
buildRequest(okhttp3.Request.Builder builder) |
void |
executeRequest() |
abstract MapProperty<String,String> |
getHeaders() |
abstract Property<String> |
getPassword() |
protected abstract org.gradle.internal.logging.progress.ProgressLoggerFactory |
getProgressLoggerFactory() |
abstract Property<String> |
getUrl() |
abstract Property<String> |
getUsername() |
void |
handleResponse(okhttp3.Response response) |
buildOkHttpClient, getCacheDir, getCacheSize, getForceCache, getForceNetwork, getLoggingLevel, getOkHttpClientcompareTo, configure, dependsOn, doFirst, doFirst, doFirst, doLast, doLast, doLast, finalizedBy, getActions, getAnt, getDependsOn, getDescription, getDestroyables, getDidWork, getEnabled, getExtensions, getFinalizedBy, getGroup, getInputs, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getOutputs, getPath, getProject, getShouldRunAfter, getState, getTaskDependencies, getTemporaryDir, getTimeout, hasProperty, mustRunAfter, onlyIf, onlyIf, onlyIf, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setMustRunAfter, setOnlyIf, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, usesServiceacceptServiceReferences, appendParallelSafeAction, doNotTrackState, getAsDynamicObject, getConvention, getIdentityPath, getImpliesSubProjects, getLifecycleDependencies, getOnlyIf, getReasonNotToTrackState, getReasonTaskIsIncompatibleWithConfigurationCache, getRequiredServices, getServices, getSharedResources, getStandardOutputCapture, getTaskActions, getTaskIdentity, getTemporaryDirFactory, hasTaskActions, injectIntoNewInstance, isCompatibleWithConfigurationCache, isEnabled, isHasCustomActions, notCompatibleWithConfigurationCache, prependParallelSafeAction, setImpliesSubProjectsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdoNotTrackState, getConvention, notCompatibleWithConfigurationCache@Inject protected abstract org.gradle.internal.logging.progress.ProgressLoggerFactory getProgressLoggerFactory()
@Input public abstract MapProperty<String,String> getHeaders()
public void executeRequest()
throws IOException
IOExceptionpublic okhttp3.Request.Builder buildRequest(okhttp3.Request.Builder builder)
public void handleResponse(okhttp3.Response response)
throws IOException
IOException