OpenShift Java Client 2.5.0.Final

com.openshift.internal.client
Interface IRestService

All Known Implementing Classes:
RestService

public interface IRestService

A rest service that executes request against the OpenShift server

Author:
Andre Dietisheim

Field Summary
static String SERVICE_PATH
           
static String SERVICE_VERSION
           
 
Method Summary
 String getPlatformUrl()
          Returns the OpenShift server.
 String getServiceUrl()
          Returns the url for the OpenShift service, the endpoint which this rest service class is talking to.
 RestResponse request(Link link, int timeout, IMediaType mediaType, Parameter... parameters)
          Requests the given link sending the given parameters while encoding the parameters with the given media type and respecting the given timeout.
 RestResponse request(Link link, int timeout, List<Parameter> urlParameters, IMediaType mediaType, Parameter... parameters)
           
 RestResponse request(Link link, int timeout, List<Parameter> urlParameters, Parameter... parameters)
           
 RestResponse request(Link link, int timeout, Parameter... parameters)
           
 RestResponse request(Link link, List<Parameter> urlParameters, Parameter... parameters)
           
 RestResponse request(Link link, Parameter... parameters)
           
 

Field Detail

SERVICE_VERSION

static final String SERVICE_VERSION
See Also:
Constant Field Values

SERVICE_PATH

static final String SERVICE_PATH
See Also:
Constant Field Values
Method Detail

request

RestResponse request(Link link,
                     Parameter... parameters)
                     throws OpenShiftException
Throws:
OpenShiftException

request

RestResponse request(Link link,
                     int timeout,
                     Parameter... parameters)
                     throws OpenShiftException
Throws:
OpenShiftException

request

RestResponse request(Link link,
                     int timeout,
                     IMediaType mediaType,
                     Parameter... parameters)
                     throws OpenShiftException
Requests the given link sending the given parameters while encoding the parameters with the given media type and respecting the given timeout.

Parameters:
link - the link to use
parameters - the parameters to send
Returns:
the rest response
Throws:
OpenShiftException
See Also:
Link, Parameter, IMediaType, IHttpClient.NO_TIMEOUT, IHttpClient.SYSPROP_DEFAULT_CONNECT_TIMEOUT, IHttpClient.SYSPROP_DEFAULT_READ_TIMEOUT, IHttpClient.SYSPROP_OPENSHIFT_CONNECT_TIMEOUT, IHttpClient.DEFAULT_CONNECT_TIMEOUT, IHttpClient.DEFAULT_READ_TIMEOUT

request

RestResponse request(Link link,
                     List<Parameter> urlParameters,
                     Parameter... parameters)
                     throws OpenShiftException
Throws:
OpenShiftException

request

RestResponse request(Link link,
                     int timeout,
                     List<Parameter> urlParameters,
                     Parameter... parameters)
                     throws OpenShiftException
Throws:
OpenShiftException

request

RestResponse request(Link link,
                     int timeout,
                     List<Parameter> urlParameters,
                     IMediaType mediaType,
                     Parameter... parameters)
                     throws OpenShiftException
Throws:
OpenShiftException

getServiceUrl

String getServiceUrl()
Returns the url for the OpenShift service, the endpoint which this rest service class is talking to.

Returns:
the url of the OpenShift service

getPlatformUrl

String getPlatformUrl()
Returns the OpenShift server.

Returns:

OpenShift Java Client 2.5.0.Final

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