public class Request extends Object
Modifier and Type | Field and Description |
---|---|
static String |
DATE_FORMAT |
static Locale |
DATE_LOCALE |
static TimeZone |
TIME_ZONE |
public static final String DATE_FORMAT
public static final Locale DATE_LOCALE
public static final TimeZone TIME_ZONE
public Response execute() throws ClientProtocolException, IOException
ClientProtocolException
IOException
public void abort() throws UnsupportedOperationException
UnsupportedOperationException
@Deprecated public Request config(String param, Object object)
@Deprecated public Request removeConfig(String param)
public Request version(HttpVersion version)
@Deprecated public Request elementCharset(String charset)
public Request useExpectContinue()
public Request socketTimeout(int timeout)
public Request connectTimeout(int timeout)
public Request staleConnectionCheck(boolean b)
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, int off, int len)
public Request bodyStream(InputStream instream)
public Request bodyStream(InputStream instream, ContentType contentType)
Copyright © 1999–2013 The Apache Software Foundation. All rights reserved.