public class RequestUtil extends Object
Modifier and Type | Field and Description |
---|---|
static String |
HEADER_ACCEPT |
static String |
HEADER_ACCEPT_ALL |
Constructor and Description |
---|
RequestUtil() |
Modifier and Type | Method and Description |
---|---|
static org.apache.http.client.methods.HttpUriRequest |
addDefaultHeaders(org.apache.http.client.methods.HttpUriRequest req) |
static String |
encode(String param) |
static org.apache.http.client.methods.HttpUriRequest |
newDelete(String url) |
static org.apache.http.client.methods.HttpUriRequest |
newGet(String url) |
static org.apache.http.client.methods.HttpUriRequest |
newPost(String url,
String body) |
public static final String HEADER_ACCEPT
public static final String HEADER_ACCEPT_ALL
public static org.apache.http.client.methods.HttpUriRequest newGet(String url)
public static org.apache.http.client.methods.HttpUriRequest newPost(String url, String body)
public static org.apache.http.client.methods.HttpUriRequest newDelete(String url)
public static org.apache.http.client.methods.HttpUriRequest addDefaultHeaders(org.apache.http.client.methods.HttpUriRequest req)
Copyright © 2020. All rights reserved.