@Deprecated public interface IHttpClient extends IHttpStatusCodes
Modifier and Type | Field and Description |
---|---|
static char |
AMPERSAND
Deprecated.
|
static String |
AUTHORIZATION_BASIC
Deprecated.
|
static String |
AUTHORIZATION_BEARER
Deprecated.
|
static char |
COLON
Deprecated.
|
static char |
COMMA
Deprecated.
|
static int |
DEFAULT_READ_TIMEOUT
Deprecated.
|
static char |
EQUALS
Deprecated.
|
static String |
HTTP
Deprecated.
|
static String |
MEDIATYPE_APPLICATION_FORMURLENCODED
Deprecated.
|
static String |
MEDIATYPE_APPLICATION_JSON
Deprecated.
|
static String |
MEDIATYPE_APPLICATION_XML
Deprecated.
|
static int |
NO_TIMEOUT
Deprecated.
|
static String |
PROPERTY_ACCEPT
Deprecated.
|
static String |
PROPERTY_AUTHIV
Deprecated.
|
static String |
PROPERTY_AUTHKEY
Deprecated.
|
static String |
PROPERTY_AUTHORIZATION
Deprecated.
|
static String |
PROPERTY_CONTENT_TYPE
Deprecated.
|
static String |
PROPERTY_USER_AGENT
Deprecated.
|
static char |
QUESTION_MARK
Deprecated.
|
static char |
SEMICOLON
Deprecated.
|
static char |
SLASH
Deprecated.
|
static char |
SPACE
Deprecated.
|
static String |
SYSPROP_DEFAULT_CONNECT_TIMEOUT
Deprecated.
|
static String |
SYSPROP_DEFAULT_READ_TIMEOUT
Deprecated.
|
static String |
SYSPROP_OPENSHIFT_CONNECT_TIMEOUT
Deprecated.
|
static String |
SYSPROP_OPENSHIFT_READ_TIMEOUT
Deprecated.
|
static String |
VERSION
Deprecated.
|
STATUS_BAD_REQUEST, STATUS_FORBIDDEN, STATUS_INTERNAL_SERVER_ERROR, STATUS_NOT_FOUND, STATUS_OK, STATUS_UNAUTHORIZED
Modifier and Type | Method and Description |
---|---|
String |
delete(URL url,
int timeout)
Deprecated.
|
String |
get(URL url,
int timeout)
Deprecated.
|
String |
head(URL url,
int timeout)
Deprecated.
|
String |
post(URL url,
int timeout,
IResource resource)
Deprecated.
|
String |
put(URL url,
int timeout,
IResource resource)
Deprecated.
|
void |
setAcceptedMediaType(String acceptedMediaType)
Deprecated.
|
void |
setAcceptVersion(String version)
Deprecated.
|
void |
setAuthorizationStrategy(IAuthorizationStrategy strategy)
Deprecated.
|
void |
setUserAgent(String userAgent)
Deprecated.
|
static final String HTTP
static final String PROPERTY_CONTENT_TYPE
static final String PROPERTY_AUTHORIZATION
static final String PROPERTY_ACCEPT
static final String PROPERTY_USER_AGENT
static final String PROPERTY_AUTHKEY
static final String PROPERTY_AUTHIV
static final String MEDIATYPE_APPLICATION_JSON
static final String MEDIATYPE_APPLICATION_XML
static final String MEDIATYPE_APPLICATION_FORMURLENCODED
static final String AUTHORIZATION_BASIC
static final String AUTHORIZATION_BEARER
static final char SPACE
static final char COLON
static final char COMMA
static final char SEMICOLON
static final char AMPERSAND
static final char EQUALS
static final char SLASH
static final char QUESTION_MARK
static final String VERSION
static final String SYSPROP_OPENSHIFT_CONNECT_TIMEOUT
static final String SYSPROP_OPENSHIFT_READ_TIMEOUT
static final String SYSPROP_DEFAULT_CONNECT_TIMEOUT
static final String SYSPROP_DEFAULT_READ_TIMEOUT
static final int DEFAULT_READ_TIMEOUT
static final int NO_TIMEOUT
String get(URL url, int timeout) throws HttpClientException, SocketTimeoutException
String head(URL url, int timeout) throws HttpClientException, SocketTimeoutException
String post(URL url, int timeout, IResource resource) throws HttpClientException, SocketTimeoutException, EncodingException
String put(URL url, int timeout, IResource resource) throws HttpClientException, SocketTimeoutException, EncodingException
String delete(URL url, int timeout) throws HttpClientException, SocketTimeoutException, EncodingException
void setUserAgent(String userAgent)
void setAcceptVersion(String version)
void setAcceptedMediaType(String acceptedMediaType)
void setAuthorizationStrategy(IAuthorizationStrategy strategy)
Copyright © 2016 Red Hat, Inc. All rights reserved.