OpenShift Java Client 2.5.0.Final

com.openshift.client
Interface IHttpClient

All Known Implementing Classes:
UrlConnectionHttpClient

public interface IHttpClient

Author:
André Dietisheim, Nicolas Spano

Field Summary
static char AMPERSAND
           
static String AUTHORIZATION_BASIC
           
static char COLON
           
static char COMMA
           
static int DEFAULT_CONNECT_TIMEOUT
           
static int DEFAULT_READ_TIMEOUT
           
static char EQUALS
           
static String HTTP
           
static String MEDIATYPE_APPLICATION_FORMURLENCODED
           
static String MEDIATYPE_APPLICATION_JSON
           
static String MEDIATYPE_APPLICATION_XML
           
static int NO_TIMEOUT
           
static String PROPERTY_ACCEPT
           
static String PROPERTY_AUTHIV
           
static String PROPERTY_AUTHKEY
           
static String PROPERTY_AUTHORIZATION
           
static String PROPERTY_CONTENT_TYPE
           
static String PROPERTY_USER_AGENT
           
static char QUESTION_MARK
           
static char SEMICOLON
           
static char SLASH
           
static char SPACE
           
static int STATUS_BAD_REQUEST
           
static int STATUS_INTERNAL_SERVER_ERROR
           
static int STATUS_NOT_FOUND
           
static int STATUS_OK
           
static int STATUS_UNAUTHORIZED
           
static String SYSPROP_DEFAULT_CONNECT_TIMEOUT
           
static String SYSPROP_DEFAULT_READ_TIMEOUT
           
static String SYSPROP_OPENSHIFT_CONNECT_TIMEOUT
           
static String SYSPROP_OPENSHIFT_READ_TIMEOUT
           
static String VERSION
           
 
Method Summary
 String delete(URL url, IMediaType mediaType, int timeout, Parameter... parameters)
           
 String delete(URL url, int timeout)
           
 String get(URL url, int timeout)
           
 String head(URL url, int timeout)
           
 String patch(URL url, IMediaType mediaType, int timeout, Parameter... parameters)
           
 String post(URL url, IMediaType mediaType, int timeout, Parameter... parameters)
           
 String put(URL url, IMediaType mediaType, int timeout, Parameter... parameters)
           
 void setAcceptedMediaType(String acceptedMediaType)
           
 void setAcceptVersion(String version)
           
 void setUserAgent(String userAgent)
           
 

Field Detail

HTTP

static final String HTTP
See Also:
Constant Field Values

PROPERTY_CONTENT_TYPE

static final String PROPERTY_CONTENT_TYPE
See Also:
Constant Field Values

PROPERTY_AUTHORIZATION

static final String PROPERTY_AUTHORIZATION
See Also:
Constant Field Values

PROPERTY_ACCEPT

static final String PROPERTY_ACCEPT
See Also:
Constant Field Values

PROPERTY_USER_AGENT

static final String PROPERTY_USER_AGENT
See Also:
Constant Field Values

PROPERTY_AUTHKEY

static final String PROPERTY_AUTHKEY
See Also:
Constant Field Values

PROPERTY_AUTHIV

static final String PROPERTY_AUTHIV
See Also:
Constant Field Values

MEDIATYPE_APPLICATION_JSON

static final String MEDIATYPE_APPLICATION_JSON
See Also:
Constant Field Values

MEDIATYPE_APPLICATION_XML

static final String MEDIATYPE_APPLICATION_XML
See Also:
Constant Field Values

MEDIATYPE_APPLICATION_FORMURLENCODED

static final String MEDIATYPE_APPLICATION_FORMURLENCODED
See Also:
Constant Field Values

AUTHORIZATION_BASIC

static final String AUTHORIZATION_BASIC
See Also:
Constant Field Values

STATUS_OK

static final int STATUS_OK
See Also:
Constant Field Values

STATUS_INTERNAL_SERVER_ERROR

static final int STATUS_INTERNAL_SERVER_ERROR
See Also:
Constant Field Values

STATUS_BAD_REQUEST

static final int STATUS_BAD_REQUEST
See Also:
Constant Field Values

STATUS_UNAUTHORIZED

static final int STATUS_UNAUTHORIZED
See Also:
Constant Field Values

STATUS_NOT_FOUND

static final int STATUS_NOT_FOUND
See Also:
Constant Field Values

SPACE

static final char SPACE
See Also:
Constant Field Values

COLON

static final char COLON
See Also:
Constant Field Values

COMMA

static final char COMMA
See Also:
Constant Field Values

SEMICOLON

static final char SEMICOLON
See Also:
Constant Field Values

AMPERSAND

static final char AMPERSAND
See Also:
Constant Field Values

EQUALS

static final char EQUALS
See Also:
Constant Field Values

SLASH

static final char SLASH
See Also:
Constant Field Values

QUESTION_MARK

static final char QUESTION_MARK
See Also:
Constant Field Values

VERSION

static final String VERSION
See Also:
Constant Field Values

SYSPROP_OPENSHIFT_CONNECT_TIMEOUT

static final String SYSPROP_OPENSHIFT_CONNECT_TIMEOUT
See Also:
Constant Field Values

SYSPROP_OPENSHIFT_READ_TIMEOUT

static final String SYSPROP_OPENSHIFT_READ_TIMEOUT
See Also:
Constant Field Values

SYSPROP_DEFAULT_CONNECT_TIMEOUT

static final String SYSPROP_DEFAULT_CONNECT_TIMEOUT
See Also:
Constant Field Values

SYSPROP_DEFAULT_READ_TIMEOUT

static final String SYSPROP_DEFAULT_READ_TIMEOUT
See Also:
Constant Field Values

DEFAULT_CONNECT_TIMEOUT

static final int DEFAULT_CONNECT_TIMEOUT
See Also:
Constant Field Values

DEFAULT_READ_TIMEOUT

static final int DEFAULT_READ_TIMEOUT
See Also:
Constant Field Values

NO_TIMEOUT

static final int NO_TIMEOUT
See Also:
Constant Field Values
Method Detail

get

String get(URL url,
           int timeout)
           throws HttpClientException,
                  SocketTimeoutException
Throws:
HttpClientException
SocketTimeoutException

head

String head(URL url,
            int timeout)
            throws HttpClientException,
                   SocketTimeoutException
Throws:
HttpClientException
SocketTimeoutException

post

String post(URL url,
            IMediaType mediaType,
            int timeout,
            Parameter... parameters)
            throws HttpClientException,
                   SocketTimeoutException,
                   EncodingException
Throws:
HttpClientException
SocketTimeoutException
EncodingException

put

String put(URL url,
           IMediaType mediaType,
           int timeout,
           Parameter... parameters)
           throws HttpClientException,
                  SocketTimeoutException,
                  EncodingException
Throws:
HttpClientException
SocketTimeoutException
EncodingException

patch

String patch(URL url,
             IMediaType mediaType,
             int timeout,
             Parameter... parameters)
             throws HttpClientException,
                    SocketTimeoutException,
                    EncodingException
Throws:
HttpClientException
SocketTimeoutException
EncodingException

delete

String delete(URL url,
              IMediaType mediaType,
              int timeout,
              Parameter... parameters)
              throws HttpClientException,
                     SocketTimeoutException,
                     EncodingException
Throws:
HttpClientException
SocketTimeoutException
EncodingException

delete

String delete(URL url,
              int timeout)
              throws HttpClientException,
                     SocketTimeoutException,
                     EncodingException
Throws:
HttpClientException
SocketTimeoutException
EncodingException

setUserAgent

void setUserAgent(String userAgent)

setAcceptVersion

void setAcceptVersion(String version)

setAcceptedMediaType

void setAcceptedMediaType(String acceptedMediaType)

OpenShift Java Client 2.5.0.Final

Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved.