public class Request extends Object
Modifier and Type | Field and Description |
---|---|
static String |
DATE_FORMAT
Deprecated.
This attribute is no longer supported as a part of the public API.
|
static Locale |
DATE_LOCALE
Deprecated.
This attribute is no longer supported as a part of the public API.
|
static TimeZone |
TIME_ZONE
Deprecated.
This attribute is no longer supported as a part of the public API.
|
@Deprecated public static final String DATE_FORMAT
@Deprecated public static final Locale DATE_LOCALE
@Deprecated public static final TimeZone TIME_ZONE
public Response execute() throws IOException
IOException
public Response execute(CloseableHttpClient client) throws IOException
IOException
@Deprecated public Request setDate(Date date)
setDate(Instant)
@Deprecated public Request setIfModifiedSince(Date date)
setIfModifiedSince(Instant)
@Deprecated public Request setIfUnmodifiedSince(Date date)
setIfUnmodifiedSince(Instant)
public Request version(HttpVersion version)
public Request useExpectContinue()
public Request body(HttpEntity entity)
public Request bodyForm(Iterable<? extends NameValuePair> formParams, Charset charset)
public Request bodyForm(Iterable<? extends NameValuePair> formParams)
public Request bodyForm(NameValuePair... formParams)
public Request bodyString(String s, ContentType contentType)
public Request bodyFile(File file, ContentType contentType)
public Request bodyByteArray(byte[] b)
public Request bodyByteArray(byte[] b, ContentType contentType)
public Request bodyByteArray(byte[] b, int off, int len)
public Request bodyByteArray(byte[] b, int off, int len, ContentType contentType)
public Request bodyStream(InputStream inStream)
public Request bodyStream(InputStream inStream, ContentType contentType)
Copyright © 1999–2021 The Apache Software Foundation. All rights reserved.