public abstract class OkHttpRequestTask extends OkHttpTask
HTTP Request.| Constructor and Description |
|---|
OkHttpRequestTask() |
| Modifier and Type | Method and Description |
|---|---|
okhttp3.Request.Builder |
buildRequest(okhttp3.Request.Builder builder) |
void |
executeRequest() |
abstract org.gradle.api.provider.MapProperty<String,String> |
getHeaders() |
abstract org.gradle.api.provider.Property<String> |
getPassword() |
protected abstract org.gradle.internal.logging.progress.ProgressLoggerFactory |
getProgressLoggerFactory() |
abstract org.gradle.api.provider.Property<String> |
getUrl() |
abstract org.gradle.api.provider.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, setImpliesSubProjects@Inject protected abstract org.gradle.internal.logging.progress.ProgressLoggerFactory getProgressLoggerFactory()
@Input public abstract org.gradle.api.provider.Property<String> getUrl()
@Input @Optional public abstract org.gradle.api.provider.Property<String> getUsername()
@Input @Optional public abstract org.gradle.api.provider.Property<String> getPassword()
public void executeRequest()
throws IOException
IOExceptionpublic okhttp3.Request.Builder buildRequest(okhttp3.Request.Builder builder)
public void handleResponse(okhttp3.Response response)
throws IOException
IOException