Package org.refcodes.rest
Interface RestRequestClient
-
- All Known Subinterfaces:
HttpDiscoveryRestClient<B>,HttpRestClient,LoopbackRestClient,RestClient,RestDeleteClient,RestGetClient,RestPostClient,RestPutClient
- All Known Implementing Classes:
AbstractHttpDiscoveryRestClientDecorator,AbstractHttpRestClientDecorator,AbstractRestClient,HttpRestClientImpl,HttpRestClientSingleton,LoopbackRestClientImpl,LoopbackRestClientSingleton
public interface RestRequestClientHelper interface to keep the huge amount of convenience methods under control.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default RestRequestBuilderbuildRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aUrl)Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilderinstance.default RestRequestBuilderbuildRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aUrl, java.lang.Object aRequest)Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilderinstance.default RestRequestBuilderbuildRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, int aPort, java.lang.String aPath)Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilderinstance.default RestRequestBuilderbuildRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, int aPort, java.lang.String aPath, java.lang.Object aRequest)Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilderinstance.default RestRequestBuilderbuildRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields)Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilderinstance.default RestRequestBuilderbuildRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, java.lang.Object aRequest)Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilderinstance.default RestRequestBuilderbuildRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest)Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilderinstance.default RestRequestBuilderbuildRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest)Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilderinstance.default RestRequestBuilderbuildRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, java.lang.String aPath)Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilderinstance.default RestRequestBuilderbuildRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, java.lang.String aPath, java.lang.Object aRequest)Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilderinstance.default RestRequestBuilderbuildRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields)Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilderinstance.default RestRequestBuilderbuildRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, java.lang.Object aRequest)Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilderinstance.default RestRequestBuilderbuildRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest)Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilderinstance.default RestRequestBuilderbuildRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest)Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilderinstance.default RestRequestBuilderbuildRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aLocator, org.refcodes.net.FormFields aQueryFields)Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilderinstance.default RestRequestBuilderbuildRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aLocator, org.refcodes.net.FormFields aQueryFields, java.lang.Object aRequest)Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilderinstance.default RestRequestBuilderbuildRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aLocator, org.refcodes.net.FormFields aQueryFields, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest)Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilderinstance.default RestRequestBuilderbuildRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aUrl, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest)Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilderinstance.default RestRequestBuilderbuildRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, int aPort, java.lang.String aPath)Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilderinstance.default RestRequestBuilderbuildRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, int aPort, java.lang.String aPath, java.lang.Object aRequest)Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilderinstance.default RestRequestBuilderbuildRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields)Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilderinstance.default RestRequestBuilderbuildRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, java.lang.Object aRequest)Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilderinstance.default RestRequestBuilderbuildRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest)Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilderinstance.default RestRequestBuilderbuildRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest)Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilderinstance.default RestRequestBuilderbuildRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, java.lang.String aPath)Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilderinstance.default RestRequestBuilderbuildRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, java.lang.String aPath, java.lang.Object aRequest)Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilderinstance.default RestRequestBuilderbuildRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields)Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilderinstance.default RestRequestBuilderbuildRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, java.lang.Object aRequest)Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilderinstance.default RestRequestBuilderbuildRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest)Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilderinstance.default RestRequestBuilderbuildRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest)Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilderinstance.default RestRequestBuilderbuildRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.net.Url aUrl)Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilderinstance.default RestRequestBuilderbuildRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.net.Url aUrl, org.refcodes.net.RequestHeaderFields aHeaderFields)Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilderinstance.default RestRequestBuilderbuildRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.net.Url aUrl, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest)Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilderinstance.RestRequestBuilderbuildRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.net.Url aUrl, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest, int aRedirectCount)Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilderinstance.default RestResponsedoRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aUrl)Sends a request with the possible attributes and returns the according request'sRestResponseinstance synchronously.default RestResponsedoRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aUrl, java.lang.Object aRequest)Sends a request with the possible attributes and returns the according request'sRestResponseinstance synchronously.default RestCallerBuilderdoRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aUrl, java.lang.Object aRequest, RestResponseObserver aResponseObserver)Creates a request with the possible attributes and returns the accordingRestCallerBuilderinstance used for the request.default RestResponsedoRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, int aPort, java.lang.String aPath)Sends a request with the possible attributes and returns the according request'sRestResponseinstance synchronously.default RestResponsedoRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, int aPort, java.lang.String aPath, java.lang.Object aRequest)Sends a request with the possible attributes and returns the according request'sRestResponseinstance synchronously.default RestCallerBuilderdoRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, int aPort, java.lang.String aPath, java.lang.Object aRequest, RestResponseObserver aResponseObserver)Creates a request with the possible attributes and returns the accordingRestCallerBuilderinstance used for the request.default RestResponsedoRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields)Sends a request with the possible attributes and returns the according request'sRestResponseinstance synchronously.default RestResponsedoRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, java.lang.Object aRequest)Sends a request with the possible attributes and returns the according request'sRestResponseinstance synchronously.default RestCallerBuilderdoRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, java.lang.Object aRequest, RestResponseObserver aResponseObserver)Creates a request with the possible attributes and returns the accordingRestCallerBuilderinstance used for the request.default RestResponsedoRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, org.refcodes.net.RequestHeaderFields aHeaderFields)Sends a request with the possible attributes and returns the according request'sRestResponseinstance synchronously.default RestResponsedoRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest)Sends a request with the possible attributes and returns the according request'sRestResponseinstance synchronously.default RestCallerBuilderdoRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest, RestResponseObserver aResponseObserver)Creates a request with the possible attributes and returns the accordingRestCallerBuilderinstance used for the request.default RestCallerBuilderdoRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, org.refcodes.net.RequestHeaderFields aHeaderFields, RestResponseObserver aResponseObserver)Creates a request with the possible attributes and returns the accordingRestCallerBuilderinstance used for the request.default RestCallerBuilderdoRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, RestResponseObserver aResponseObserver)Creates a request with the possible attributes and returns the accordingRestCallerBuilderinstance used for the request.default RestResponsedoRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.RequestHeaderFields aHeaderFields)Sends a request with the possible attributes and returns the according request'sRestResponseinstance synchronously.default RestResponsedoRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest)Sends a request with the possible attributes and returns the according request'sRestResponseinstance synchronously.default RestCallerBuilderdoRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest, RestResponseObserver aResponseObserver)Creates a request with the possible attributes and returns the accordingRestCallerBuilderinstance used for the request.default RestCallerBuilderdoRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.RequestHeaderFields aHeaderFields, RestResponseObserver aResponseObserver)Creates a request with the possible attributes and returns the accordingRestCallerBuilderinstance used for the request.default RestCallerBuilderdoRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, int aPort, java.lang.String aPath, RestResponseObserver aResponseObserver)Creates a request with the possible attributes and returns the accordingRestCallerBuilderinstance used for the request.default RestResponsedoRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, java.lang.String aPath)Sends a request with the possible attributes and returns the according request'sRestResponseinstance synchronously.default RestResponsedoRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, java.lang.String aPath, java.lang.Object aRequest)Sends a request with the possible attributes and returns the according request'sRestResponseinstance synchronously.default RestCallerBuilderdoRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, java.lang.String aPath, java.lang.Object aRequest, RestResponseObserver aResponseObserver)Creates a request with the possible attributes and returns the accordingRestCallerBuilderinstance used for the request.default RestResponsedoRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields)Sends a request with the possible attributes and returns the according request'sRestResponseinstance synchronously.default RestResponsedoRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, java.lang.Object aRequest)Sends a request with the possible attributes and returns the according request'sRestResponseinstance synchronously.default RestCallerBuilderdoRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, java.lang.Object aRequest, RestResponseObserver aResponseObserver)Creates a request with the possible attributes and returns the accordingRestCallerBuilderinstance used for the request.default RestResponsedoRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, org.refcodes.net.RequestHeaderFields aHeaderFields)Sends a request with the possible attributes and returns the according request'sRestResponseinstance synchronously.default RestResponsedoRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest)Sends a request with the possible attributes and returns the according request'sRestResponseinstance synchronously.default RestCallerBuilderdoRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest, RestResponseObserver aResponseObserver)Creates a request with the possible attributes and returns the accordingRestCallerBuilderinstance used for the request.default RestCallerBuilderdoRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, org.refcodes.net.RequestHeaderFields aHeaderFields, RestResponseObserver aResponseObserver)Creates a request with the possible attributes and returns the accordingRestCallerBuilderinstance used for the request.default RestCallerBuilderdoRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, RestResponseObserver aResponseObserver)Creates a request with the possible attributes and returns the accordingRestCallerBuilderinstance used for the request.default RestResponsedoRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.RequestHeaderFields aHeaderFields)Sends a request with the possible attributes and returns the according request'sRestResponseinstance synchronously.default RestResponsedoRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest)Sends a request with the possible attributes and returns the according request'sRestResponseinstance synchronously.default RestCallerBuilderdoRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest, RestResponseObserver aResponseObserver)Creates a request with the possible attributes and returns the accordingRestCallerBuilderinstance used for the request.default RestCallerBuilderdoRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.RequestHeaderFields aHeaderFields, RestResponseObserver aResponseObserver)Creates a request with the possible attributes and returns the accordingRestCallerBuilderinstance used for the request.default RestCallerBuilderdoRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, java.lang.String aPath, RestResponseObserver aResponseObserver)Creates a request with the possible attributes and returns the accordingRestCallerBuilderinstance used for the request.default RestResponsedoRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aLocator, org.refcodes.net.FormFields aQueryFields)Sends a request with the possible attributes and returns the according request'sRestResponseinstance synchronously.default RestResponsedoRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aLocator, org.refcodes.net.FormFields aQueryFields, java.lang.Object aRequest)Sends a request with the possible attributes and returns the according request'sRestResponseinstance synchronously.default RestCallerBuilderdoRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aLocator, org.refcodes.net.FormFields aQueryFields, java.lang.Object aRequest, RestResponseObserver aResponseObserver)Creates a request with the possible attributes and returns the accordingRestCallerBuilderinstance used for the request.default RestResponsedoRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aLocator, org.refcodes.net.FormFields aQueryFields, org.refcodes.net.RequestHeaderFields aHeaderFields)Sends a request with the possible attributes and returns the according request'sRestResponseinstance synchronously.default RestResponsedoRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aLocator, org.refcodes.net.FormFields aQueryFields, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest)Sends a request with the possible attributes and returns the according request'sRestResponseinstance synchronously.default RestCallerBuilderdoRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aLocator, org.refcodes.net.FormFields aQueryFields, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest, RestResponseObserver aResponseObserver)Creates a request with the possible attributes and returns the accordingRestCallerBuilderinstance used for the request.default RestCallerBuilderdoRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aLocator, org.refcodes.net.FormFields aQueryFields, org.refcodes.net.RequestHeaderFields aHeaderFields, RestResponseObserver aResponseObserver)Creates a request with the possible attributes and returns the accordingRestCallerBuilderinstance used for the request.default RestCallerBuilderdoRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aLocator, org.refcodes.net.FormFields aQueryFields, RestResponseObserver aResponseObserver)Creates a request with the possible attributes and returns the accordingRestCallerBuilderinstance used for the request.default RestResponsedoRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aUrl, org.refcodes.net.RequestHeaderFields aHeaderFields)Sends a request with the possible attributes and returns the according request'sRestResponseinstance synchronously.default RestResponsedoRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aUrl, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest)Sends a request with the possible attributes and returns the according request'sRestResponseinstance synchronously.default RestCallerBuilderdoRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aUrl, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest, RestResponseObserver aResponseObserver)Creates a request with the possible attributes and returns the accordingRestCallerBuilderinstance used for the request.default RestCallerBuilderdoRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aUrl, org.refcodes.net.RequestHeaderFields aHeaderFields, RestResponseObserver aResponseObserver)Creates a request with the possible attributes and returns the accordingRestCallerBuilderinstance used for the request.default RestCallerBuilderdoRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aUrl, RestResponseObserver aResponseObserver)Creates a request with the possible attributes and returns the accordingRestCallerBuilderinstance used for the request.default RestResponsedoRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, int aPort, java.lang.String aPath)Sends a request with the possible attributes and returns the according request'sRestResponseinstance synchronously.default RestResponsedoRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, int aPort, java.lang.String aPath, java.lang.Object aRequest)Sends a request with the possible attributes and returns the according request'sRestResponseinstance synchronously.default RestCallerBuilderdoRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, int aPort, java.lang.String aPath, java.lang.Object aRequest, RestResponseObserver aResponseObserver)Creates a request with the possible attributes and returns the accordingRestCallerBuilderinstance used for the request.default RestResponsedoRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields)Sends a request with the possible attributes and returns the according request'sRestResponseinstance synchronously.default RestResponsedoRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, java.lang.Object aRequest)Sends a request with the possible attributes and returns the according request'sRestResponseinstance synchronously.default RestCallerBuilderdoRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, java.lang.Object aRequest, RestResponseObserver aResponseObserver)Creates a request with the possible attributes and returns the accordingRestCallerBuilderinstance used for the request.default RestResponsedoRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, org.refcodes.net.RequestHeaderFields aHeaderFields)Sends a request with the possible attributes and returns the according request'sRestResponseinstance synchronously.default RestResponsedoRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest)Sends a request with the possible attributes and returns the according request'sRestResponseinstance synchronously.default RestCallerBuilderdoRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest, RestResponseObserver aResponseObserver)Creates a request with the possible attributes and returns the accordingRestCallerBuilderinstance used for the request.default RestCallerBuilderdoRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, org.refcodes.net.RequestHeaderFields aHeaderFields, RestResponseObserver aResponseObserver)Creates a request with the possible attributes and returns the accordingRestCallerBuilderinstance used for the request.default RestCallerBuilderdoRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, RestResponseObserver aResponseObserver)Creates a request with the possible attributes and returns the accordingRestCallerBuilderinstance used for the request.default RestResponsedoRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.RequestHeaderFields aHeaderFields)Sends a request with the possible attributes and returns the according request'sRestResponseinstance synchronously.default RestResponsedoRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest)Sends a request with the possible attributes and returns the according request'sRestResponseinstance synchronously.default RestCallerBuilderdoRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest, RestResponseObserver aResponseObserver)Creates a request with the possible attributes and returns the accordingRestCallerBuilderinstance used for the request.default RestCallerBuilderdoRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.RequestHeaderFields aHeaderFields, RestResponseObserver aResponseObserver)Creates a request with the possible attributes and returns the accordingRestCallerBuilderinstance used for the request.default RestCallerBuilderdoRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, int aPort, java.lang.String aPath, RestResponseObserver aResponseObserver)Creates a request with the possible attributes and returns the accordingRestCallerBuilderinstance used for the request.default RestResponsedoRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, java.lang.String aPath)Sends a request with the possible attributes and returns the according request'sRestResponseinstance synchronously.default RestResponsedoRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, java.lang.String aPath, java.lang.Object aRequest)Sends a request with the possible attributes and returns the according request'sRestResponseinstance synchronously.default RestCallerBuilderdoRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, java.lang.String aPath, java.lang.Object aRequest, RestResponseObserver aResponseObserver)Creates a request with the possible attributes and returns the accordingRestCallerBuilderinstance used for the request.default RestResponsedoRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields)Sends a request with the possible attributes and returns the according request'sRestResponseinstance synchronously.default RestResponsedoRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, java.lang.Object aRequest)Sends a request with the possible attributes and returns the according request'sRestResponseinstance synchronously.default RestCallerBuilderdoRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, java.lang.Object aRequest, RestResponseObserver aResponseObserver)Creates a request with the possible attributes and returns the accordingRestCallerBuilderinstance used for the request.default RestResponsedoRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, org.refcodes.net.RequestHeaderFields aHeaderFields)Sends a request with the possible attributes and returns the according request'sRestResponseinstance synchronously.default RestResponsedoRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest)Sends a request with the possible attributes and returns the according request'sRestResponseinstance synchronously.default RestCallerBuilderdoRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest, RestResponseObserver aResponseObserver)Creates a request with the possible attributes and returns the accordingRestCallerBuilderinstance used for the request.default RestCallerBuilderdoRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, org.refcodes.net.RequestHeaderFields aHeaderFields, RestResponseObserver aResponseObserver)Creates a request with the possible attributes and returns the accordingRestCallerBuilderinstance used for the request.default RestCallerBuilderdoRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, RestResponseObserver aResponseObserver)Creates a request with the possible attributes and returns the accordingRestCallerBuilderinstance used for the request.default RestResponsedoRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.RequestHeaderFields aHeaderFields)Sends a request with the possible attributes and returns the according request'sRestResponseinstance synchronously.default RestResponsedoRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest)Sends a request with the possible attributes and returns the according request'sRestResponseinstance synchronously.default RestCallerBuilderdoRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest, RestResponseObserver aResponseObserver)Creates a request with the possible attributes and returns the accordingRestCallerBuilderinstance used for the request.default RestCallerBuilderdoRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.RequestHeaderFields aHeaderFields, RestResponseObserver aResponseObserver)Creates a request with the possible attributes and returns the accordingRestCallerBuilderinstance used for the request.default RestCallerBuilderdoRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, java.lang.String aPath, RestResponseObserver aResponseObserver)Creates a request with the possible attributes and returns the accordingRestCallerBuilderinstance used for the request.default RestResponsedoRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.net.Url aUrl)Sends a request with the possible attributes and returns the according request'sRestResponseinstance synchronously.default RestResponsedoRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.net.Url aUrl, java.lang.Object aRequest)Sends a request with the possible attributes and returns the according request'sRestResponseinstance synchronously.default RestCallerBuilderdoRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.net.Url aUrl, java.lang.Object aRequest, RestResponseObserver aResponseObserver)Creates a request with the possible attributes and returns the accordingRestCallerBuilderinstance used for the request.default RestResponsedoRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.net.Url aUrl, org.refcodes.net.RequestHeaderFields aHeaderFields)Sends a request with the possible attributes and returns the according request'sRestResponseinstance synchronously.default RestResponsedoRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.net.Url aUrl, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest)Sends a request with the possible attributes and returns the according request'sRestResponseinstance synchronously.RestResponsedoRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.net.Url aUrl, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest, int aRedirectDepth)Sends a request with the possible attributes and returns the according request'sRestResponseinstance synchronously.RestCallerBuilderdoRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.net.Url aUrl, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest, int aRedirectDepth, RestResponseObserver aResponseObserver)Creates a request with the possible attributes and returns the accordingRestCallerBuilderinstance used for the request.default RestCallerBuilderdoRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.net.Url aUrl, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest, RestResponseObserver aResponseObserver)Creates a request with the possible attributes and returns the accordingRestCallerBuilderinstance used for the request.default RestCallerBuilderdoRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.net.Url aUrl, org.refcodes.net.RequestHeaderFields aHeaderFields, RestResponseObserver aResponseObserver)Creates a request with the possible attributes and returns the accordingRestCallerBuilderinstance used for the request.default RestResponsedoRequest(RestRequest aRequest)Sends a request with the possible attributes and returns the according request'sRestResponseinstance synchronously.
-
-
-
Method Detail
-
buildRequest
default RestRequestBuilder buildRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, int aPort, java.lang.String aPath)
Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilderinstance. InvokingRestRequestBuilder.toRestResponse()starts the request and synchronously returns the response.- Parameters:
aHttpMethod- The HTTP-Method for the request.aScheme- TheScheme(e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPort- The port to be used when connecting to the host.aPath- The path on the host to which the base destination URL is to point to.- Returns:
- The
RestRequestBuilderwhich is used to prepare and synchronously issue the request.
-
buildRequest
default RestRequestBuilder buildRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields)
Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilderinstance. InvokingRestRequestBuilder.toRestResponse()starts the request and synchronously returns the response.- Parameters:
aHttpMethod- The HTTP-Method for the request.aScheme- TheScheme(e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPort- The port to be used when connecting to the host.aPath- The path on the host to which the base destination URL is to point to.aQueryFields- The Query-Fields to be used for the HTTP Query-String.- Returns:
- The
RestRequestBuilderwhich is used to prepare and synchronously issue the request.
-
buildRequest
default RestRequestBuilder buildRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, java.lang.Object aRequest)
Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilderinstance. InvokingRestRequestBuilder.toRestResponse()starts the request and synchronously returns the response.- Parameters:
aHttpMethod- The HTTP-Method for the request.aScheme- TheScheme(e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPort- The port to be used when connecting to the host.aPath- The path on the host to which the base destination URL is to point to.aQueryFields- The Query-Fields to be used for the HTTP Query-String.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.POSTrequest.- Returns:
- The
RestRequestBuilderwhich is used to prepare and synchronously issue the request.
-
buildRequest
default RestRequestBuilder buildRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest)
Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilderinstance. InvokingRestRequestBuilder.toRestResponse()starts the request and synchronously returns the response.- Parameters:
aHttpMethod- The HTTP-Method for the request.aScheme- TheScheme(e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPort- The port to be used when connecting to the host.aPath- The path on the host to which the base destination URL is to point to.aQueryFields- The Query-Fields to be used for the HTTP Query-String.aHeaderFields- The HTTP-Header's fields to be used for the request.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.POSTrequest.- Returns:
- The
RestRequestBuilderat this request.
-
buildRequest
default RestRequestBuilder buildRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, int aPort, java.lang.String aPath, java.lang.Object aRequest)
Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilderinstance. InvokingRestRequestBuilder.toRestResponse()starts the request and synchronously returns the response.- Parameters:
aHttpMethod- The HTTP-Method for the request.aScheme- TheScheme(e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPort- The port to be used when connecting to the host.aPath- The path on the host to which the base destination URL is to point to.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.POSTrequest.- Returns:
- The
RestRequestBuilderwhich is used to prepare and synchronously issue the request.
-
buildRequest
default RestRequestBuilder buildRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest)
Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilderinstance. InvokingRestRequestBuilder.toRestResponse()starts the request and synchronously returns the response.- Parameters:
aHttpMethod- The HTTP-Method for the request.aScheme- TheScheme(e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPort- The port to be used when connecting to the host.aPath- The path on the host to which the base destination URL is to point to.aHeaderFields- The HTTP-Header's fields to be used for the request.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.POSTrequest.- Returns:
- The
RestRequestBuilderwhich is used to prepare and synchronously issue the request.
-
buildRequest
default RestRequestBuilder buildRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, java.lang.String aPath)
Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilderinstance. InvokingRestRequestBuilder.toRestResponse()starts the request and synchronously returns the response.- Parameters:
aHttpMethod- The HTTP-Method for the request.aScheme- TheScheme(e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPath- The path on the host to which the base destination URL is to point to.- Returns:
- The
RestRequestBuilderwhich is used to prepare and synchronously issue the request.
-
buildRequest
default RestRequestBuilder buildRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields)
Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilderinstance. InvokingRestRequestBuilder.toRestResponse()starts the request and synchronously returns the response.- Parameters:
aHttpMethod- The HTTP-Method for the request.aScheme- TheScheme(e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPath- The path on the host to which the base destination URL is to point to.aQueryFields- The Query-Fields to be used for the HTTP Query-String.- Returns:
- The
RestRequestBuilderwhich is used to prepare and synchronously issue the request.
-
buildRequest
default RestRequestBuilder buildRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, java.lang.Object aRequest)
Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilderinstance. InvokingRestRequestBuilder.toRestResponse()starts the request and synchronously returns the response.- Parameters:
aHttpMethod- The HTTP-Method for the request.aScheme- TheScheme(e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPath- The path on the host to which the base destination URL is to point to.aQueryFields- The Query-Fields to be used for the HTTP Query-String.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.POSTrequest.- Returns:
- The
RestRequestBuilderwhich is used to prepare and synchronously issue the request.
-
buildRequest
default RestRequestBuilder buildRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest)
Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilderinstance. InvokingRestRequestBuilder.toRestResponse()starts the request and synchronously returns the response.- Parameters:
aHttpMethod- The HTTP-Method for the request.aScheme- TheScheme(e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPath- The path on the host to which the base destination URL is to point to.aQueryFields- The Query-Fields to be used for the HTTP Query-String.aHeaderFields- The HTTP-Header's fields to be used for the request.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.POSTrequest.- Returns:
- The
RestRequestBuilderat this request.
-
buildRequest
default RestRequestBuilder buildRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, java.lang.String aPath, java.lang.Object aRequest)
Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilderinstance. InvokingRestRequestBuilder.toRestResponse()starts the request and synchronously returns the response.- Parameters:
aHttpMethod- The HTTP-Method for the request.aScheme- TheScheme(e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPath- The path on the host to which the base destination URL is to point to.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.POSTrequest.- Returns:
- The
RestRequestBuilderwhich is used to prepare and synchronously issue the request.
-
buildRequest
default RestRequestBuilder buildRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest)
Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilderinstance. InvokingRestRequestBuilder.toRestResponse()starts the request and synchronously returns the response.- Parameters:
aHttpMethod- The HTTP-Method for the request.aScheme- TheScheme(e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPath- The path on the host to which the base destination URL is to point to.aHeaderFields- The HTTP-Header's fields to be used for the request.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.POSTrequest.- Returns:
- The
RestRequestBuilderwhich is used to prepare and synchronously issue the request.
-
buildRequest
default RestRequestBuilder buildRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aUrl) throws java.net.MalformedURLException
Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilderinstance. InvokingRestRequestBuilder.toRestResponse()starts the request and synchronously returns the response.- Parameters:
aHttpMethod- The HTTP-Method for the request.aUrl- The targeted URL locating the addressed resource.- Returns:
- The
RestRequestBuilderwhich is used to prepare and synchronously issue the request. - Throws:
java.net.MalformedURLException- in case the provided URL is considered being malformed.
-
buildRequest
default RestRequestBuilder buildRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aLocator, org.refcodes.net.FormFields aQueryFields) throws java.net.MalformedURLException
Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilderinstance. InvokingRestRequestBuilder.toRestResponse()starts the request and synchronously returns the response.- Parameters:
aHttpMethod- The HTTP-Method for the request.aLocator- The targeted locator, usually the part of the URL till (excluding) the query fields and the fragment.aQueryFields- The Query-Fields to be used for the HTTP Query-String.- Returns:
- The
RestRequestBuilderwhich is used to prepare and synchronously issue the request. - Throws:
java.net.MalformedURLException- in case the provided URL is considered being malformed.
-
buildRequest
default RestRequestBuilder buildRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aLocator, org.refcodes.net.FormFields aQueryFields, java.lang.Object aRequest) throws java.net.MalformedURLException
Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilderinstance. InvokingRestRequestBuilder.toRestResponse()starts the request and synchronously returns the response.- Parameters:
aHttpMethod- The HTTP-Method for the request.aLocator- The local targetd locator.aQueryFields- The Query-Fields to be used for the HTTP Query-String.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.POSTrequest.- Returns:
- The
RestRequestBuilderwhich is used to prepare and synchronously issue the request. - Throws:
java.net.MalformedURLException- in case the provided URL is considered being malformed.
-
buildRequest
default RestRequestBuilder buildRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aLocator, org.refcodes.net.FormFields aQueryFields, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest) throws java.net.MalformedURLException
Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilderinstance. InvokingRestRequestBuilder.toRestResponse()starts the request and synchronously returns the response.- Parameters:
aHttpMethod- The HTTP-Method for the request.aLocator- The targeted locator, usually the part of the URL till (excluding) the query fields and the fragment.aQueryFields- The Query-Fields to be used for the HTTP Query-String.aHeaderFields- The HTTP-Header's fields to be used for the request.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.POSTrequest.- Returns:
- The
RestRequestBuilderat this request. - Throws:
java.net.MalformedURLException- in case the provided URL is considered being malformed.
-
buildRequest
default RestRequestBuilder buildRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aUrl, java.lang.Object aRequest) throws java.net.MalformedURLException
Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilderinstance. InvokingRestRequestBuilder.toRestResponse()starts the request and synchronously returns the response.- Parameters:
aHttpMethod- The HTTP-Method for the request.aUrl- The targeted locator.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.POSTrequest.- Returns:
- The
RestRequestBuilderwhich is used to prepare and synchronously issue the request. - Throws:
java.net.MalformedURLException- in case the provided URL is considered being malformed.
-
buildRequest
default RestRequestBuilder buildRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aUrl, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest) throws java.net.MalformedURLException
Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilderinstance. InvokingRestRequestBuilder.toRestResponse()starts the request and synchronously returns the response.- Parameters:
aHttpMethod- The HTTP-Method for the request.aUrl- The targeted URL locating the addressed resource.aHeaderFields- The HTTP-Header's fields to be used for the request.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.POSTrequest.- Returns:
- The
RestRequestBuilderwhich is used to prepare and synchronously issue the request. - Throws:
java.net.MalformedURLException- in case the provided URL is considered being malformed.
-
buildRequest
default RestRequestBuilder buildRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, int aPort, java.lang.String aPath)
Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilderinstance. InvokingRestRequestBuilder.toRestResponse()starts the request and synchronously returns the response.- Parameters:
aHttpMethod- The HTTP-Method for the request.aProtocol- The protocol (e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPort- The port to be used when connecting to the host.aPath- The path on the host to which the base destination URL is to point to.- Returns:
- The
RestRequestBuilderwhich is used to prepare and synchronously issue the request.
-
buildRequest
default RestRequestBuilder buildRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields)
Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilderinstance. InvokingRestRequestBuilder.toRestResponse()starts the request and synchronously returns the response.- Parameters:
aHttpMethod- The HTTP-Method for the request.aProtocol- The protocol (e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPort- The port to be used when connecting to the host.aPath- The path on the host to which the base destination URL is to point to.aQueryFields- The Query-Fields to be used for the HTTP Query-String.- Returns:
- The
RestRequestBuilderwhich is used to prepare and synchronously issue the request.
-
buildRequest
default RestRequestBuilder buildRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, java.lang.Object aRequest)
Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilderinstance. InvokingRestRequestBuilder.toRestResponse()starts the request and synchronously returns the response.- Parameters:
aHttpMethod- The HTTP-Method for the request.aProtocol- The protocol (e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPort- The port to be used when connecting to the host.aPath- The path on the host to which the base destination URL is to point to.aQueryFields- The Query-Fields to be used for the HTTP Query-String.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.POSTrequest.- Returns:
- The
RestRequestBuilderwhich is used to prepare and synchronously issue the request.
-
buildRequest
default RestRequestBuilder buildRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest)
Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilderinstance. InvokingRestRequestBuilder.toRestResponse()starts the request and synchronously returns the response.- Parameters:
aHttpMethod- The HTTP-Method for the request.aProtocol- The protocol (e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPort- The port to be used when connecting to the host.aPath- The path on the host to which the base destination URL is to point to.aQueryFields- The Query-Fields to be used for the HTTP Query-String.aHeaderFields- The HTTP-Header's fields to be used for the request.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.POSTrequest.- Returns:
- The
RestRequestBuilderat this request.
-
buildRequest
default RestRequestBuilder buildRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, int aPort, java.lang.String aPath, java.lang.Object aRequest)
Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilderinstance. InvokingRestRequestBuilder.toRestResponse()starts the request and synchronously returns the response.- Parameters:
aHttpMethod- The HTTP-Method for the request.aProtocol- The protocol (e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPort- The port to be used when connecting to the host.aPath- The path on the host to which the base destination URL is to point to.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.POSTrequest.- Returns:
- The
RestRequestBuilderwhich is used to prepare and synchronously issue the request.
-
buildRequest
default RestRequestBuilder buildRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest)
Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilderinstance. InvokingRestRequestBuilder.toRestResponse()starts the request and synchronously returns the response.- Parameters:
aHttpMethod- The HTTP-Method for the request.aProtocol- The protocol (e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPort- The port to be used when connecting to the host.aPath- The path on the host to which the base destination URL is to point to.aHeaderFields- The HTTP-Header's fields to be used for the request.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.POSTrequest.- Returns:
- The
RestRequestBuilderwhich is used to prepare and synchronously issue the request.
-
buildRequest
default RestRequestBuilder buildRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, java.lang.String aPath)
Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilderinstance. InvokingRestRequestBuilder.toRestResponse()starts the request and synchronously returns the response.- Parameters:
aHttpMethod- The HTTP-Method for the request.aProtocol- The protocol (e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPath- The path on the host to which the base destination URL is to point to.- Returns:
- The
RestRequestBuilderwhich is used to prepare and synchronously issue the request.
-
buildRequest
default RestRequestBuilder buildRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields)
Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilderinstance. InvokingRestRequestBuilder.toRestResponse()starts the request and synchronously returns the response.- Parameters:
aHttpMethod- The HTTP-Method for the request.aProtocol- The protocol (e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPath- The path on the host to which the base destination URL is to point to.aQueryFields- The Query-Fields to be used for the HTTP Query-String.- Returns:
- The
RestRequestBuilderwhich is used to prepare and synchronously issue the request.
-
buildRequest
default RestRequestBuilder buildRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, java.lang.Object aRequest)
Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilderinstance. InvokingRestRequestBuilder.toRestResponse()starts the request and synchronously returns the response.- Parameters:
aHttpMethod- The HTTP-Method for the request.aProtocol- The protocol (e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPath- The path on the host to which the base destination URL is to point to.aQueryFields- The Query-Fields to be used for the HTTP Query-String.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.POSTrequest.- Returns:
- The
RestRequestBuilderwhich is used to prepare and synchronously issue the request.
-
buildRequest
default RestRequestBuilder buildRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest)
Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilderinstance. InvokingRestRequestBuilder.toRestResponse()starts the request and synchronously returns the response.- Parameters:
aHttpMethod- The HTTP-Method for the request.aProtocol- The protocol (e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPath- The path on the host to which the base destination URL is to point to.aQueryFields- The Query-Fields to be used for the HTTP Query-String.aHeaderFields- The HTTP-Header's fields to be used for the request.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.POSTrequest.- Returns:
- The
RestRequestBuilderat this request.
-
buildRequest
default RestRequestBuilder buildRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, java.lang.String aPath, java.lang.Object aRequest)
Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilderinstance. InvokingRestRequestBuilder.toRestResponse()starts the request and synchronously returns the response.- Parameters:
aHttpMethod- The HTTP-Method for the request.aProtocol- The protocol (e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPath- The path on the host to which the base destination URL is to point to.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.POSTrequest.- Returns:
- The
RestRequestBuilderwhich is used to prepare and synchronously issue the request.
-
buildRequest
default RestRequestBuilder buildRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest)
Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilderinstance. InvokingRestRequestBuilder.toRestResponse()starts the request and synchronously returns the response.- Parameters:
aHttpMethod- The HTTP-Method for the request.aProtocol- The protocol (e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPath- The path on the host to which the base destination URL is to point to.aHeaderFields- The HTTP-Header's fields to be used for the request.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.POSTrequest.- Returns:
- The
RestRequestBuilderwhich is used to prepare and synchronously issue the request.
-
buildRequest
default RestRequestBuilder buildRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.net.Url aUrl)
Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilderinstance. InvokingRestRequestBuilder.toRestResponse()starts the request and synchronously returns the response.- Parameters:
aHttpMethod- The HTTP-Method for the request.aUrl- TheUrlfrom which to take the URL specific data.- Returns:
- The
RestRequestBuilderwhich is used to prepare and synchronously issue the request.
-
buildRequest
default RestRequestBuilder buildRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.net.Url aUrl, org.refcodes.net.RequestHeaderFields aHeaderFields)
Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilderinstance. InvokingRestRequestBuilder.toRestResponse()starts the request and synchronously returns the response.- Parameters:
aHttpMethod- The HTTP-Method for the request.aUrl- TheUrlfrom which to take the URL specific data.aHeaderFields- The HTTP-Header's fields to be used for the request.- Returns:
- The
RestRequestBuilderat this request.
-
buildRequest
default RestRequestBuilder buildRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.net.Url aUrl, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest)
Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilderinstance. InvokingRestRequestBuilder.toRestResponse()starts the request and synchronously returns the response.- Parameters:
aHttpMethod- The HTTP-Method for the request.aUrl- TheUrlfrom which to take the URL specific data.aHeaderFields- The HTTP-Header's fields to be used for the request.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.POSTrequest.- Returns:
- The
RestRequestBuilderat this request.
-
buildRequest
RestRequestBuilder buildRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.net.Url aUrl, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest, int aRedirectCount)
Prepares a request builder with the possible attributes and returns the according request'sRestRequestBuilderinstance. InvokingRestRequestBuilder.toRestResponse()starts the request and synchronously returns the response.- Parameters:
aHttpMethod- The HTTP-Method for the request.aUrl- TheUrlfrom which to take the URL specific data.aHeaderFields- The HTTP-Header's fields to be used for the request.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.POSTrequest.- Returns:
- The
RestRequestBuilderat this request.
-
doRequest
default RestResponse doRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, int aPort, java.lang.String aPath) throws org.refcodes.net.HttpResponseException
Sends a request with the possible attributes and returns the according request'sRestResponseinstance synchronously.- Parameters:
aHttpMethod- The HTTP-Method for the request.aScheme- TheScheme(e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPort- The port to be used when connecting to the host.aPath- The path on the host to which the base destination URL is to point to.- Returns:
- The
RestResponseas of your request. - Throws:
org.refcodes.net.HttpResponseException- thrown in case of some unexpected response.
-
doRequest
default RestResponse doRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields) throws org.refcodes.net.HttpResponseException
Sends a request with the possible attributes and returns the according request'sRestResponseinstance synchronously.- Parameters:
aHttpMethod- The HTTP-Method for the request.aScheme- TheScheme(e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPort- The port to be used when connecting to the host.aPath- The path on the host to which the base destination URL is to point to.aQueryFields- The Query-Fields to be used for the HTTP Query-String.- Returns:
- The
RestResponseas of your request. - Throws:
org.refcodes.net.HttpResponseException- thrown in case of some unexpected response.
-
doRequest
default RestResponse doRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, java.lang.Object aRequest) throws org.refcodes.net.HttpResponseException
Sends a request with the possible attributes and returns the according request'sRestResponseinstance synchronously.- Parameters:
aHttpMethod- The HTTP-Method for the request.aScheme- TheScheme(e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPort- The port to be used when connecting to the host.aPath- The path on the host to which the base destination URL is to point to.aQueryFields- The Query-Fields to be used for the HTTP Query-String.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.POSTrequest.- Returns:
- The
RestResponseas of your request. - Throws:
org.refcodes.net.HttpResponseException- thrown in case of some unexpected response.
-
doRequest
default RestCallerBuilder doRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, java.lang.Object aRequest, RestResponseObserver aResponseObserver)
Creates a request with the possible attributes and returns the accordingRestCallerBuilderinstance used for the request. The HTTP-Request is actually sent not earlier than you callingOpenable.open()on the returnedRestCallerBuilderas theRestCallerBuilderstill may be modified after invoking this method!- Parameters:
aHttpMethod- The HTTP-Method for the request.aScheme- TheScheme(e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPort- The port to be used when connecting to the host.aPath- The path on the host to which the base destination URL is to point to.aQueryFields- The Query-Fields to be used for the HTTP Query-String.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.POSTrequest.aResponseObserver- The listener processing a response targeted at thisRestCallerBuilder.- Returns:
- The
RestCallerBuilderwhich is used by the request.
-
doRequest
default RestResponse doRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, org.refcodes.net.RequestHeaderFields aHeaderFields) throws org.refcodes.net.HttpResponseException
Sends a request with the possible attributes and returns the according request'sRestResponseinstance synchronously.- Parameters:
aHttpMethod- The HTTP-Method for the request.aScheme- TheScheme(e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPort- The port to be used when connecting to the host.aPath- The path on the host to which the base destination URL is to point to.aQueryFields- The Query-Fields to be used for the HTTP Query-String.aHeaderFields- The HTTP-Header's fields to be used for the request.- Returns:
- The
RestResponseas of your request. - Throws:
org.refcodes.net.HttpResponseException- thrown in case of some unexpected response.
-
doRequest
default RestResponse doRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest) throws org.refcodes.net.HttpResponseException
Sends a request with the possible attributes and returns the according request'sRestResponseinstance synchronously.- Parameters:
aHttpMethod- The HTTP-Method for the request.aScheme- TheScheme(e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPort- The port to be used when connecting to the host.aPath- The path on the host to which the base destination URL is to point to.aQueryFields- The Query-Fields to be used for the HTTP Query-String.aHeaderFields- The HTTP-Header's fields to be used for the request.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.POSTrequest.- Returns:
- The
RestResponsefor this request. - Throws:
org.refcodes.net.HttpResponseException- thrown in case of some unexpected response.
-
doRequest
default RestCallerBuilder doRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest, RestResponseObserver aResponseObserver)
Creates a request with the possible attributes and returns the accordingRestCallerBuilderinstance used for the request. The HTTP-Request is actually sent not earlier than you callingOpenable.open()on the returnedRestCallerBuilderas theRestCallerBuilderstill may be modified after invoking this method!- Parameters:
aHttpMethod- The HTTP-Method for the request.aScheme- TheScheme(e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPort- The port to be used when connecting to the host.aPath- The path on the host to which the base destination URL is to point to.aQueryFields- The Query-Fields to be used for the HTTP Query-String.aHeaderFields- The HTTP-Header's fields to be used for the request.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.POSTrequest.aResponseObserver- The listener processing a response targeted at thisRestCallerBuilder.- Returns:
- The
RestCallerBuilderwhich is used by the request.
-
doRequest
default RestCallerBuilder doRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, org.refcodes.net.RequestHeaderFields aHeaderFields, RestResponseObserver aResponseObserver)
Creates a request with the possible attributes and returns the accordingRestCallerBuilderinstance used for the request. The HTTP-Request is actually sent not earlier than you callingOpenable.open()on the returnedRestCallerBuilderas theRestCallerBuilderstill may be modified after invoking this method!- Parameters:
aHttpMethod- The HTTP-Method for the request.aScheme- TheScheme(e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPort- The port to be used when connecting to the host.aPath- The path on the host to which the base destination URL is to point to.aQueryFields- The Query-Fields to be used for the HTTP Query-String.aHeaderFields- The HTTP-Header's fields to be used for the request.aResponseObserver- The listener processing a response targeted at thisRestCallerBuilder.- Returns:
- The
RestCallerBuilderwhich is used by the request.
-
doRequest
default RestCallerBuilder doRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, RestResponseObserver aResponseObserver)
Creates a request with the possible attributes and returns the accordingRestCallerBuilderinstance used for the request. The HTTP-Request is actually sent not earlier than you callingOpenable.open()on the returnedRestCallerBuilderas theRestCallerBuilderstill may be modified after invoking this method!- Parameters:
aHttpMethod- The HTTP-Method for the request.aScheme- TheScheme(e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPort- The port to be used when connecting to the host.aPath- The path on the host to which the base destination URL is to point to.aQueryFields- The Query-Fields to be used for the HTTP Query-String.aResponseObserver- The listener processing a response targeted at thisRestCallerBuilder.- Returns:
- The
RestCallerBuilderwhich is used by the request.
-
doRequest
default RestResponse doRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, int aPort, java.lang.String aPath, java.lang.Object aRequest) throws org.refcodes.net.HttpResponseException
Sends a request with the possible attributes and returns the according request'sRestResponseinstance synchronously.- Parameters:
aHttpMethod- The HTTP-Method for the request.aScheme- TheScheme(e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPort- The port to be used when connecting to the host.aPath- The path on the host to which the base destination URL is to point to.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.POSTrequest.- Returns:
- The
RestResponseas of your request. - Throws:
org.refcodes.net.HttpResponseException- thrown in case of some unexpected response.
-
doRequest
default RestCallerBuilder doRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, int aPort, java.lang.String aPath, java.lang.Object aRequest, RestResponseObserver aResponseObserver)
Creates a request with the possible attributes and returns the accordingRestCallerBuilderinstance used for the request. The HTTP-Request is actually sent not earlier than you callingOpenable.open()on the returnedRestCallerBuilderas theRestCallerBuilderstill may be modified after invoking this method!- Parameters:
aHttpMethod- The HTTP-Method for the request.aScheme- TheScheme(e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPort- The port to be used when connecting to the host.aPath- The path on the host to which the base destination URL is to point to.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.POSTrequest.aResponseObserver- The listener processing a response targeted at thisRestCallerBuilder.- Returns:
- The
RestCallerBuilderwhich is used by the request.
-
doRequest
default RestResponse doRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.RequestHeaderFields aHeaderFields) throws org.refcodes.net.HttpResponseException
Sends a request with the possible attributes and returns the according request'sRestResponseinstance synchronously.- Parameters:
aHttpMethod- The HTTP-Method for the request.aScheme- TheScheme(e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPort- The port to be used when connecting to the host.aPath- The path on the host to which the base destination URL is to point to.aHeaderFields- The HTTP-Header's fields to be used for the request.- Returns:
- The
RestResponseas of your request. - Throws:
org.refcodes.net.HttpResponseException- thrown in case of some unexpected response.
-
doRequest
default RestResponse doRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest) throws org.refcodes.net.HttpResponseException
Sends a request with the possible attributes and returns the according request'sRestResponseinstance synchronously.- Parameters:
aHttpMethod- The HTTP-Method for the request.aScheme- TheScheme(e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPort- The port to be used when connecting to the host.aPath- The path on the host to which the base destination URL is to point to.aHeaderFields- The HTTP-Header's fields to be used for the request.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.POSTrequest.- Returns:
- The
RestResponseas of your request. - Throws:
org.refcodes.net.HttpResponseException- thrown in case of some unexpected response.
-
doRequest
default RestCallerBuilder doRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest, RestResponseObserver aResponseObserver)
Creates a request with the possible attributes and returns the accordingRestCallerBuilderinstance used for the request. The HTTP-Request is actually sent not earlier than you callingOpenable.open()on the returnedRestCallerBuilderas theRestCallerBuilderstill may be modified after invoking this method!- Parameters:
aHttpMethod- The HTTP-Method for the request.aScheme- TheScheme(e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPort- The port to be used when connecting to the host.aPath- The path on the host to which the base destination URL is to point to.aHeaderFields- The HTTP-Header's fields to be used for the request.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.POSTrequest.aResponseObserver- The listener processing a response targeted at thisRestCallerBuilder.- Returns:
- The
RestCallerBuilderwhich is used by the request.
-
doRequest
default RestCallerBuilder doRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.RequestHeaderFields aHeaderFields, RestResponseObserver aResponseObserver)
Creates a request with the possible attributes and returns the accordingRestCallerBuilderinstance used for the request. The HTTP-Request is actually sent not earlier than you callingOpenable.open()on the returnedRestCallerBuilderas theRestCallerBuilderstill may be modified after invoking this method!- Parameters:
aHttpMethod- The HTTP-Method for the request.aScheme- TheScheme(e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPort- The port to be used when connecting to the host.aPath- The path on the host to which the base destination URL is to point to.aHeaderFields- The HTTP-Header's fields to be used for the request.aResponseObserver- The listener processing a response targeted at thisRestCallerBuilder.- Returns:
- The
RestCallerBuilderwhich is used by the request.
-
doRequest
default RestCallerBuilder doRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, int aPort, java.lang.String aPath, RestResponseObserver aResponseObserver)
Creates a request with the possible attributes and returns the accordingRestCallerBuilderinstance used for the request. The HTTP-Request is actually sent not earlier than you callingOpenable.open()on the returnedRestCallerBuilderas theRestCallerBuilderstill may be modified after invoking this method!- Parameters:
aHttpMethod- The HTTP-Method for the request.aScheme- TheScheme(e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPort- The port to be used when connecting to the host.aPath- The path on the host to which the base destination URL is to point to.aResponseObserver- The listener processing a response targeted at thisRestCallerBuilder.- Returns:
- The
RestCallerBuilderwhich is used by the request.
-
doRequest
default RestResponse doRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, java.lang.String aPath) throws org.refcodes.net.HttpResponseException
Sends a request with the possible attributes and returns the according request'sRestResponseinstance synchronously.- Parameters:
aHttpMethod- The HTTP-Method for the request.aScheme- TheScheme(e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPath- The path on the host to which the base destination URL is to point to.- Returns:
- The
RestResponseas of your request. - Throws:
org.refcodes.net.HttpResponseException- thrown in case of some unexpected response.
-
doRequest
default RestResponse doRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields) throws org.refcodes.net.HttpResponseException
Sends a request with the possible attributes and returns the according request'sRestResponseinstance synchronously.- Parameters:
aHttpMethod- The HTTP-Method for the request.aScheme- TheScheme(e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPath- The path on the host to which the base destination URL is to point to.aQueryFields- The Query-Fields to be used for the HTTP Query-String.- Returns:
- The
RestResponseas of your request. - Throws:
org.refcodes.net.HttpResponseException- thrown in case of some unexpected response.
-
doRequest
default RestResponse doRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, java.lang.Object aRequest) throws org.refcodes.net.HttpResponseException
Sends a request with the possible attributes and returns the according request'sRestResponseinstance synchronously.- Parameters:
aHttpMethod- The HTTP-Method for the request.aScheme- TheScheme(e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPath- The path on the host to which the base destination URL is to point to.aQueryFields- The Query-Fields to be used for the HTTP Query-String.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.POSTrequest.- Returns:
- The
RestResponseas of your request. - Throws:
org.refcodes.net.HttpResponseException- thrown in case of some unexpected response.
-
doRequest
default RestCallerBuilder doRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, java.lang.Object aRequest, RestResponseObserver aResponseObserver)
Creates a request with the possible attributes and returns the accordingRestCallerBuilderinstance used for the request. The HTTP-Request is actually sent not earlier than you callingOpenable.open()on the returnedRestCallerBuilderas theRestCallerBuilderstill may be modified after invoking this method!- Parameters:
aHttpMethod- The HTTP-Method for the request.aScheme- TheScheme(e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPath- The path on the host to which the base destination URL is to point to.aQueryFields- The Query-Fields to be used for the HTTP Query-String.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.POSTrequest.aResponseObserver- The listener processing a response targeted at thisRestCallerBuilder.- Returns:
- The
RestCallerBuilderwhich is used by the request.
-
doRequest
default RestResponse doRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, org.refcodes.net.RequestHeaderFields aHeaderFields) throws org.refcodes.net.HttpResponseException
Sends a request with the possible attributes and returns the according request'sRestResponseinstance synchronously.- Parameters:
aHttpMethod- The HTTP-Method for the request.aScheme- TheScheme(e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPath- The path on the host to which the base destination URL is to point to.aQueryFields- The Query-Fields to be used for the HTTP Query-String.aHeaderFields- The HTTP-Header's fields to be used for the request.- Returns:
- The
RestResponseas of your request. - Throws:
org.refcodes.net.HttpResponseException- thrown in case of some unexpected response.
-
doRequest
default RestResponse doRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest) throws org.refcodes.net.HttpResponseException
Sends a request with the possible attributes and returns the according request'sRestResponseinstance synchronously.- Parameters:
aHttpMethod- The HTTP-Method for the request.aScheme- TheScheme(e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPath- The path on the host to which the base destination URL is to point to.aQueryFields- The Query-Fields to be used for the HTTP Query-String.aHeaderFields- The HTTP-Header's fields to be used for the request.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.POSTrequest.- Returns:
- The
RestResponsefor this request. - Throws:
org.refcodes.net.HttpResponseException- thrown in case of some unexpected response.
-
doRequest
default RestCallerBuilder doRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest, RestResponseObserver aResponseObserver)
Creates a request with the possible attributes and returns the accordingRestCallerBuilderinstance used for the request. The HTTP-Request is actually sent not earlier than you callingOpenable.open()on the returnedRestCallerBuilderas theRestCallerBuilderstill may be modified after invoking this method!- Parameters:
aHttpMethod- The HTTP-Method for the request.aScheme- TheScheme(e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPath- The path on the host to which the base destination URL is to point to.aQueryFields- The Query-Fields to be used for the HTTP Query-String.aHeaderFields- The HTTP-Header's fields to be used for the request.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.POSTrequest.aResponseObserver- The listener processing a response targeted at thisRestCallerBuilder.- Returns:
- The
RestCallerBuilderwhich is used by the request.
-
doRequest
default RestCallerBuilder doRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, org.refcodes.net.RequestHeaderFields aHeaderFields, RestResponseObserver aResponseObserver)
Creates a request with the possible attributes and returns the accordingRestCallerBuilderinstance used for the request. The HTTP-Request is actually sent not earlier than you callingOpenable.open()on the returnedRestCallerBuilderas theRestCallerBuilderstill may be modified after invoking this method!- Parameters:
aHttpMethod- The HTTP-Method for the request.aScheme- TheScheme(e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPath- The path on the host to which the base destination URL is to point to.aQueryFields- The Query-Fields to be used for the HTTP Query-String.aHeaderFields- The HTTP-Header's fields to be used for the request.aResponseObserver- The listener processing a response targeted at thisRestCallerBuilder.- Returns:
- The
RestCallerBuilderwhich is used by the request.
-
doRequest
default RestCallerBuilder doRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, RestResponseObserver aResponseObserver)
Creates a request with the possible attributes and returns the accordingRestCallerBuilderinstance used for the request. The HTTP-Request is actually sent not earlier than you callingOpenable.open()on the returnedRestCallerBuilderas theRestCallerBuilderstill may be modified after invoking this method!- Parameters:
aHttpMethod- The HTTP-Method for the request.aScheme- TheScheme(e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPath- The path on the host to which the base destination URL is to point to.aQueryFields- The Query-Fields to be used for the HTTP Query-String.aResponseObserver- The listener processing a response targeted at thisRestCallerBuilder.- Returns:
- The
RestCallerBuilderwhich is used by the request.
-
doRequest
default RestResponse doRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, java.lang.String aPath, java.lang.Object aRequest) throws org.refcodes.net.HttpResponseException
Sends a request with the possible attributes and returns the according request'sRestResponseinstance synchronously.- Parameters:
aHttpMethod- The HTTP-Method for the request.aScheme- TheScheme(e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPath- The path on the host to which the base destination URL is to point to.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.POSTrequest.- Returns:
- The
RestResponseas of your request. - Throws:
org.refcodes.net.HttpResponseException- thrown in case of some unexpected response.
-
doRequest
default RestCallerBuilder doRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, java.lang.String aPath, java.lang.Object aRequest, RestResponseObserver aResponseObserver)
Creates a request with the possible attributes and returns the accordingRestCallerBuilderinstance used for the request. The HTTP-Request is actually sent not earlier than you callingOpenable.open()on the returnedRestCallerBuilderas theRestCallerBuilderstill may be modified after invoking this method!- Parameters:
aHttpMethod- The HTTP-Method for the request.aScheme- TheScheme(e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPath- The path on the host to which the base destination URL is to point to.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.POSTrequest.aResponseObserver- The listener processing a response targeted at thisRestCallerBuilder.- Returns:
- The
RestCallerBuilderwhich is used by the request.
-
doRequest
default RestResponse doRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.RequestHeaderFields aHeaderFields) throws org.refcodes.net.HttpResponseException
Sends a request with the possible attributes and returns the according request'sRestResponseinstance synchronously.- Parameters:
aHttpMethod- The HTTP-Method for the request.aScheme- TheScheme(e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPath- The path on the host to which the base destination URL is to point to.aHeaderFields- The HTTP-Header's fields to be used for the request.- Returns:
- The
RestResponseas of your request. - Throws:
org.refcodes.net.HttpResponseException- thrown in case of some unexpected response.
-
doRequest
default RestResponse doRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest) throws org.refcodes.net.HttpResponseException
Sends a request with the possible attributes and returns the according request'sRestResponseinstance synchronously.- Parameters:
aHttpMethod- The HTTP-Method for the request.aScheme- TheScheme(e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPath- The path on the host to which the base destination URL is to point to.aHeaderFields- The HTTP-Header's fields to be used for the request.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.POSTrequest.- Returns:
- The
RestResponseas of your request. - Throws:
org.refcodes.net.HttpResponseException- thrown in case of some unexpected response.
-
doRequest
default RestCallerBuilder doRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest, RestResponseObserver aResponseObserver)
Creates a request with the possible attributes and returns the accordingRestCallerBuilderinstance used for the request. The HTTP-Request is actually sent not earlier than you callingOpenable.open()on the returnedRestCallerBuilderas theRestCallerBuilderstill may be modified after invoking this method!- Parameters:
aHttpMethod- The HTTP-Method for the request.aScheme- TheScheme(e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPath- The path on the host to which the base destination URL is to point to.aHeaderFields- The HTTP-Header's fields to be used for the request.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.POSTrequest.aResponseObserver- The listener processing a response targeted at thisRestCallerBuilder.- Returns:
- The
RestCallerBuilderwhich is used by the request.
-
doRequest
default RestCallerBuilder doRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.RequestHeaderFields aHeaderFields, RestResponseObserver aResponseObserver)
Creates a request with the possible attributes and returns the accordingRestCallerBuilderinstance used for the request. The HTTP-Request is actually sent not earlier than you callingOpenable.open()on the returnedRestCallerBuilderas theRestCallerBuilderstill may be modified after invoking this method!- Parameters:
aHttpMethod- The HTTP-Method for the request.aScheme- TheScheme(e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPath- The path on the host to which the base destination URL is to point to.aHeaderFields- The HTTP-Header's fields to be used for the request.aResponseObserver- The listener processing a response targeted at thisRestCallerBuilder.- Returns:
- The
RestCallerBuilderwhich is used by the request.
-
doRequest
default RestCallerBuilder doRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.data.Scheme aScheme, java.lang.String aHost, java.lang.String aPath, RestResponseObserver aResponseObserver)
Creates a request with the possible attributes and returns the accordingRestCallerBuilderinstance used for the request. The HTTP-Request is actually sent not earlier than you callingOpenable.open()on the returnedRestCallerBuilderas theRestCallerBuilderstill may be modified after invoking this method!- Parameters:
aHttpMethod- The HTTP-Method for the request.aScheme- TheScheme(e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPath- The path on the host to which the base destination URL is to point to.aResponseObserver- The listener processing a response targeted at thisRestCallerBuilder.- Returns:
- The
RestCallerBuilderwhich is used by the request.
-
doRequest
default RestResponse doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aUrl) throws org.refcodes.net.HttpResponseException, java.net.MalformedURLException
Sends a request with the possible attributes and returns the according request'sRestResponseinstance synchronously.- Parameters:
aHttpMethod- The HTTP-Method for the request.aUrl- The targeted URL locating the addressed resource.- Returns:
- The
RestResponseas of your request. - Throws:
org.refcodes.net.HttpResponseException- thrown in case of some unexpected response.java.net.MalformedURLException- in case the provided URL is considered being malformed.
-
doRequest
default RestResponse doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aLocator, org.refcodes.net.FormFields aQueryFields) throws org.refcodes.net.HttpResponseException, java.net.MalformedURLException
Sends a request with the possible attributes and returns the according request'sRestResponseinstance synchronously.- Parameters:
aHttpMethod- The HTTP-Method for the request.aLocator- The targeted locator, usually the part of the URL till (excluding) the query fields and the fragment.aQueryFields- The Query-Fields to be used for the HTTP Query-String.- Returns:
- The
RestResponseas of your request. - Throws:
org.refcodes.net.HttpResponseException- thrown in case of some unexpected response.java.net.MalformedURLException- in case the provided URL is considered being malformed.
-
doRequest
default RestResponse doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aLocator, org.refcodes.net.FormFields aQueryFields, java.lang.Object aRequest) throws org.refcodes.net.HttpResponseException, java.net.MalformedURLException
Sends a request with the possible attributes and returns the according request'sRestResponseinstance synchronously.- Parameters:
aHttpMethod- The HTTP-Method for the request.aLocator- The targeted locator, usually the part of the URL till (excluding) the query fields and the fragment.aQueryFields- The Query-Fields to be used for the HTTP Query-String.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.POSTrequest.- Returns:
- The
RestResponseas of your request. - Throws:
org.refcodes.net.HttpResponseException- thrown in case of some unexpected response.java.net.MalformedURLException- in case the provided URL is considered being malformed.
-
doRequest
default RestCallerBuilder doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aLocator, org.refcodes.net.FormFields aQueryFields, java.lang.Object aRequest, RestResponseObserver aResponseObserver) throws java.net.MalformedURLException
Creates a request with the possible attributes and returns the accordingRestCallerBuilderinstance used for the request. The HTTP-Request is actually sent not earlier than you callingOpenable.open()on the returnedRestCallerBuilderas theRestCallerBuilderstill may be modified after invoking this method!- Parameters:
aHttpMethod- The HTTP-Method for the request.aLocator- The targeted locator, usually the part of the URL till (excluding) the query fields and the fragment.aQueryFields- The Query-Fields to be used for the HTTP Query-String.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.POSTrequest.aResponseObserver- The listener processing a response targeted at thisRestCallerBuilder.- Returns:
- The
RestCallerBuilderwhich is used by the request. - Throws:
java.net.MalformedURLException- in case the provided URL is considered being malformed.
-
doRequest
default RestResponse doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aLocator, org.refcodes.net.FormFields aQueryFields, org.refcodes.net.RequestHeaderFields aHeaderFields) throws org.refcodes.net.HttpResponseException, java.net.MalformedURLException
Sends a request with the possible attributes and returns the according request'sRestResponseinstance synchronously.- Parameters:
aHttpMethod- The HTTP-Method for the request.aLocator- The targeted locator, usually the part of the URL till (excluding) the query fields and the fragment.aQueryFields- The Query-Fields to be used for the HTTP Query-String.aHeaderFields- The HTTP-Header's fields to be used for the request.- Returns:
- The
RestResponseas of your request. - Throws:
org.refcodes.net.HttpResponseException- thrown in case of some unexpected response.java.net.MalformedURLException- in case the provided URL is considered being malformed.
-
doRequest
default RestResponse doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aLocator, org.refcodes.net.FormFields aQueryFields, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest) throws org.refcodes.net.HttpResponseException, java.net.MalformedURLException
Sends a request with the possible attributes and returns the according request'sRestResponseinstance synchronously.- Parameters:
aHttpMethod- The HTTP-Method for the request.aLocator- The targeted locator, usually the part of the URL till (excluding) the query fields and the fragment.aQueryFields- The Query-Fields to be used for the HTTP Query-String.aHeaderFields- The HTTP-Header's fields to be used for the request.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.POSTrequest.- Returns:
- The
RestResponsefor this request. - Throws:
org.refcodes.net.HttpResponseException- thrown in case of some unexpected response.java.net.MalformedURLException- in case the provided URL is considered being malformed.
-
doRequest
default RestCallerBuilder doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aLocator, org.refcodes.net.FormFields aQueryFields, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest, RestResponseObserver aResponseObserver) throws java.net.MalformedURLException
Creates a request with the possible attributes and returns the accordingRestCallerBuilderinstance used for the request. The HTTP-Request is actually sent not earlier than you callingOpenable.open()on the returnedRestCallerBuilderas theRestCallerBuilderstill may be modified after invoking this method!- Parameters:
aHttpMethod- The HTTP-Method for the request.aLocator- The targeted locator, usually the part of the URL till (excluding) the query fields and the fragment.aQueryFields- The Query-Fields to be used for the HTTP Query-String.aHeaderFields- The HTTP-Header's fields to be used for the request.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.POSTrequest.aResponseObserver- The listener processing a response targeted at thisRestCallerBuilder.- Returns:
- The
RestCallerBuilderwhich is used by the request. - Throws:
java.net.MalformedURLException- in case the provided URL is considered being malformed.
-
doRequest
default RestCallerBuilder doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aLocator, org.refcodes.net.FormFields aQueryFields, org.refcodes.net.RequestHeaderFields aHeaderFields, RestResponseObserver aResponseObserver) throws java.net.MalformedURLException
Creates a request with the possible attributes and returns the accordingRestCallerBuilderinstance used for the request. The HTTP-Request is actually sent not earlier than you callingOpenable.open()on the returnedRestCallerBuilderas theRestCallerBuilderstill may be modified after invoking this method!- Parameters:
aHttpMethod- The HTTP-Method for the request.aLocator- The targeted locator, usually the part of the URL till (excluding) the query fields and the fragment.aQueryFields- The Query-Fields to be used for the HTTP Query-String.aHeaderFields- The HTTP-Header's fields to be used for the request.aResponseObserver- The listener processing a response targeted at thisRestCallerBuilder.- Returns:
- The
RestCallerBuilderwhich is used by the request. - Throws:
java.net.MalformedURLException- in case the provided URL is considered being malformed.
-
doRequest
default RestCallerBuilder doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aLocator, org.refcodes.net.FormFields aQueryFields, RestResponseObserver aResponseObserver) throws java.net.MalformedURLException
Creates a request with the possible attributes and returns the accordingRestCallerBuilderinstance used for the request. The HTTP-Request is actually sent not earlier than you callingOpenable.open()on the returnedRestCallerBuilderas theRestCallerBuilderstill may be modified after invoking this method!- Parameters:
aHttpMethod- The HTTP-Method for the request.aLocator- The targeted locator, usually the part of the URL till (excluding) the query fields and the fragment.aQueryFields- The Query-Fields to be used for the HTTP Query-String.aResponseObserver- The listener processing a response targeted at thisRestCallerBuilder.- Returns:
- The
RestCallerBuilderwhich is used by the request. - Throws:
java.net.MalformedURLException- in case the provided URL is considered being malformed.
-
doRequest
default RestResponse doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aUrl, java.lang.Object aRequest) throws org.refcodes.net.HttpResponseException, java.net.MalformedURLException
Sends a request with the possible attributes and returns the according request'sRestResponseinstance synchronously.- Parameters:
aHttpMethod- The HTTP-Method for the request.aUrl- The targeted URL locating the addressed resource.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.POSTrequest.- Returns:
- The
RestResponseas of your request. - Throws:
org.refcodes.net.HttpResponseException- thrown in case of some unexpected response.java.net.MalformedURLException- in case the provided URL is considered being malformed.
-
doRequest
default RestCallerBuilder doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aUrl, java.lang.Object aRequest, RestResponseObserver aResponseObserver) throws java.net.MalformedURLException
Creates a request with the possible attributes and returns the accordingRestCallerBuilderinstance used for the request. The HTTP-Request is actually sent not earlier than you callingOpenable.open()on the returnedRestCallerBuilderas theRestCallerBuilderstill may be modified after invoking this method!- Parameters:
aHttpMethod- The HTTP-Method for the request.aUrl- The targeted URL locating the addressed resource.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.POSTrequest.aResponseObserver- The listener processing a response targeted at thisRestCallerBuilder.- Returns:
- The
RestCallerBuilderwhich is used by the request. - Throws:
java.net.MalformedURLException- in case the provided URL is considered being malformed.
-
doRequest
default RestResponse doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aUrl, org.refcodes.net.RequestHeaderFields aHeaderFields) throws org.refcodes.net.HttpResponseException, java.net.MalformedURLException
Sends a request with the possible attributes and returns the according request'sRestResponseinstance synchronously.- Parameters:
aHttpMethod- The HTTP-Method for the request.aUrl- The targeted URL locating the addressed resource.aHeaderFields- The HTTP-Header's fields to be used for the request.- Returns:
- The
RestResponseas of your request. - Throws:
org.refcodes.net.HttpResponseException- thrown in case of some unexpected response.java.net.MalformedURLException- in case the provided URL is considered being malformed.
-
doRequest
default RestResponse doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aUrl, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest) throws org.refcodes.net.HttpResponseException, java.net.MalformedURLException
Sends a request with the possible attributes and returns the according request'sRestResponseinstance synchronously.- Parameters:
aHttpMethod- The HTTP-Method for the request.aUrl- The targeted URL locating the addressed resource.aHeaderFields- The HTTP-Header's fields to be used for the request.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.POSTrequest.- Returns:
- The
RestResponseas of your request. - Throws:
org.refcodes.net.HttpResponseException- thrown in case of some unexpected response.java.net.MalformedURLException- in case the provided URL is considered being malformed.
-
doRequest
default RestCallerBuilder doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aUrl, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest, RestResponseObserver aResponseObserver) throws java.net.MalformedURLException
Creates a request with the possible attributes and returns the accordingRestCallerBuilderinstance used for the request. The HTTP-Request is actually sent not earlier than you callingOpenable.open()on the returnedRestCallerBuilderas theRestCallerBuilderstill may be modified after invoking this method!- Parameters:
aHttpMethod- The HTTP-Method for the request.aUrl- The targeted URL locating the addressed resource.aHeaderFields- The HTTP-Header's fields to be used for the request.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.POSTrequest.aResponseObserver- The listener processing a response targeted at thisRestCallerBuilder.- Returns:
- The
RestCallerBuilderwhich is used by the request. - Throws:
java.net.MalformedURLException- in case the provided URL is considered being malformed.
-
doRequest
default RestCallerBuilder doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aUrl, org.refcodes.net.RequestHeaderFields aHeaderFields, RestResponseObserver aResponseObserver) throws java.net.MalformedURLException
Creates a request with the possible attributes and returns the accordingRestCallerBuilderinstance used for the request. The HTTP-Request is actually sent not earlier than you callingOpenable.open()on the returnedRestCallerBuilderas theRestCallerBuilderstill may be modified after invoking this method!- Parameters:
aHttpMethod- The HTTP-Method for the request.aUrl- The targeted URL locating the addressed resource.aHeaderFields- The HTTP-Header's fields to be used for the request.aResponseObserver- The listener processing a response targeted at thisRestCallerBuilder.- Returns:
- The
RestCallerBuilderwhich is used by the request. - Throws:
java.net.MalformedURLException- in case the provided URL is considered being malformed.
-
doRequest
default RestCallerBuilder doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aUrl, RestResponseObserver aResponseObserver) throws java.net.MalformedURLException
Creates a request with the possible attributes and returns the accordingRestCallerBuilderinstance used for the request. The HTTP-Request is actually sent not earlier than you callingOpenable.open()on the returnedRestCallerBuilderas theRestCallerBuilderstill may be modified after invoking this method!- Parameters:
aHttpMethod- The HTTP-Method for the request.aUrl- The targeted URL locating the addressed resource.aResponseObserver- The listener processing a response targeted at thisRestCallerBuilder.- Returns:
- The
RestCallerBuilderwhich is used by the request. - Throws:
java.net.MalformedURLException- in case the provided URL is considered being malformed.
-
doRequest
default RestResponse doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, int aPort, java.lang.String aPath) throws org.refcodes.net.HttpResponseException
Sends a request with the possible attributes and returns the according request'sRestResponseinstance synchronously.- Parameters:
aHttpMethod- The HTTP-Method for the request.aProtocol- The protocol (e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPort- The port to be used when connecting to the host.aPath- The path on the host to which the base destination URL is to point to.- Returns:
- The
RestResponseas of your request. - Throws:
org.refcodes.net.HttpResponseException- thrown in case of some unexpected response.
-
doRequest
default RestResponse doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields) throws org.refcodes.net.HttpResponseException
Sends a request with the possible attributes and returns the according request'sRestResponseinstance synchronously.- Parameters:
aHttpMethod- The HTTP-Method for the request.aProtocol- The protocol (e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPort- The port to be used when connecting to the host.aPath- The path on the host to which the base destination URL is to point to.aQueryFields- The Query-Fields to be used for the HTTP Query-String.- Returns:
- The
RestResponseas of your request. - Throws:
org.refcodes.net.HttpResponseException- thrown in case of some unexpected response.
-
doRequest
default RestResponse doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, java.lang.Object aRequest) throws org.refcodes.net.HttpResponseException
Sends a request with the possible attributes and returns the according request'sRestResponseinstance synchronously.- Parameters:
aHttpMethod- The HTTP-Method for the request.aProtocol- The protocol (e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPort- The port to be used when connecting to the host.aPath- The path on the host to which the base destination URL is to point to.aQueryFields- The Query-Fields to be used for the HTTP Query-String.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.POSTrequest.- Returns:
- The
RestResponseas of your request. - Throws:
org.refcodes.net.HttpResponseException- thrown in case of some unexpected response.
-
doRequest
default RestCallerBuilder doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, java.lang.Object aRequest, RestResponseObserver aResponseObserver)
Creates a request with the possible attributes and returns the accordingRestCallerBuilderinstance used for the request. The HTTP-Request is actually sent not earlier than you callingOpenable.open()on the returnedRestCallerBuilderas theRestCallerBuilderstill may be modified after invoking this method!- Parameters:
aHttpMethod- The HTTP-Method for the request.aProtocol- The protocol (e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPort- The port to be used when connecting to the host.aPath- The path on the host to which the base destination URL is to point to.aQueryFields- The Query-Fields to be used for the HTTP Query-String.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.POSTrequest.aResponseObserver- The listener processing a response targeted at thisRestCallerBuilder.- Returns:
- The
RestCallerBuilderwhich is used by the request.
-
doRequest
default RestResponse doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, org.refcodes.net.RequestHeaderFields aHeaderFields) throws org.refcodes.net.HttpResponseException
Sends a request with the possible attributes and returns the according request'sRestResponseinstance synchronously.- Parameters:
aHttpMethod- The HTTP-Method for the request.aProtocol- The protocol (e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPort- The port to be used when connecting to the host.aPath- The path on the host to which the base destination URL is to point to.aQueryFields- The Query-Fields to be used for the HTTP Query-String.aHeaderFields- The HTTP-Header's fields to be used for the request.- Returns:
- The
RestResponseas of your request. - Throws:
org.refcodes.net.HttpResponseException- thrown in case of some unexpected response.
-
doRequest
default RestResponse doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest) throws org.refcodes.net.HttpResponseException
Sends a request with the possible attributes and returns the according request'sRestResponseinstance synchronously.- Parameters:
aHttpMethod- The HTTP-Method for the request.aProtocol- The protocol (e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPort- The port to be used when connecting to the host.aPath- The path on the host to which the base destination URL is to point to.aQueryFields- The Query-Fields to be used for the HTTP Query-String.aHeaderFields- The HTTP-Header's fields to be used for the request.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.POSTrequest.- Returns:
- The
RestResponsefor this request. - Throws:
org.refcodes.net.HttpResponseException- thrown in case of some unexpected response.
-
doRequest
default RestCallerBuilder doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest, RestResponseObserver aResponseObserver)
Creates a request with the possible attributes and returns the accordingRestCallerBuilderinstance used for the request. The HTTP-Request is actually sent not earlier than you callingOpenable.open()on the returnedRestCallerBuilderas theRestCallerBuilderstill may be modified after invoking this method!- Parameters:
aHttpMethod- The HTTP-Method for the request.aProtocol- The protocol (e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPort- The port to be used when connecting to the host.aPath- The path on the host to which the base destination URL is to point to.aQueryFields- The Query-Fields to be used for the HTTP Query-String.aHeaderFields- The HTTP-Header's fields to be used for the request.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.POSTrequest.aResponseObserver- The listener processing a response targeted at thisRestCallerBuilder.- Returns:
- The
RestCallerBuilderwhich is used by the request.
-
doRequest
default RestCallerBuilder doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, org.refcodes.net.RequestHeaderFields aHeaderFields, RestResponseObserver aResponseObserver)
Creates a request with the possible attributes and returns the accordingRestCallerBuilderinstance used for the request. The HTTP-Request is actually sent not earlier than you callingOpenable.open()on the returnedRestCallerBuilderas theRestCallerBuilderstill may be modified after invoking this method!- Parameters:
aHttpMethod- The HTTP-Method for the request.aProtocol- The protocol (e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPort- The port to be used when connecting to the host.aPath- The path on the host to which the base destination URL is to point to.aQueryFields- The Query-Fields to be used for the HTTP Query-String.aHeaderFields- The HTTP-Header's fields to be used for the request.aResponseObserver- The listener processing a response targeted at thisRestCallerBuilder.- Returns:
- The
RestCallerBuilderwhich is used by the request.
-
doRequest
default RestCallerBuilder doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, RestResponseObserver aResponseObserver)
Creates a request with the possible attributes and returns the accordingRestCallerBuilderinstance used for the request. The HTTP-Request is actually sent not earlier than you callingOpenable.open()on the returnedRestCallerBuilderas theRestCallerBuilderstill may be modified after invoking this method!- Parameters:
aHttpMethod- The HTTP-Method for the request.aProtocol- The protocol (e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPort- The port to be used when connecting to the host.aPath- The path on the host to which the base destination URL is to point to.aQueryFields- The Query-Fields to be used for the HTTP Query-String.aResponseObserver- The listener processing a response targeted at thisRestCallerBuilder.- Returns:
- The
RestCallerBuilderwhich is used by the request.
-
doRequest
default RestResponse doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, int aPort, java.lang.String aPath, java.lang.Object aRequest) throws org.refcodes.net.HttpResponseException
Sends a request with the possible attributes and returns the according request'sRestResponseinstance synchronously.- Parameters:
aHttpMethod- The HTTP-Method for the request.aProtocol- The protocol (e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPort- The port to be used when connecting to the host.aPath- The path on the host to which the base destination URL is to point to.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.POSTrequest.- Returns:
- The
RestResponseas of your request. - Throws:
org.refcodes.net.HttpResponseException- thrown in case of some unexpected response.
-
doRequest
default RestCallerBuilder doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, int aPort, java.lang.String aPath, java.lang.Object aRequest, RestResponseObserver aResponseObserver)
Creates a request with the possible attributes and returns the accordingRestCallerBuilderinstance used for the request. The HTTP-Request is actually sent not earlier than you callingOpenable.open()on the returnedRestCallerBuilderas theRestCallerBuilderstill may be modified after invoking this method!- Parameters:
aHttpMethod- The HTTP-Method for the request.aProtocol- The protocol (e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPort- The port to be used when connecting to the host.aPath- The path on the host to which the base destination URL is to point to.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.POSTrequest.aResponseObserver- The listener processing a response targeted at thisRestCallerBuilder.- Returns:
- The
RestCallerBuilderwhich is used by the request.
-
doRequest
default RestResponse doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.RequestHeaderFields aHeaderFields) throws org.refcodes.net.HttpResponseException
Sends a request with the possible attributes and returns the according request'sRestResponseinstance synchronously.- Parameters:
aHttpMethod- The HTTP-Method for the request.aProtocol- The protocol (e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPort- The port to be used when connecting to the host.aPath- The path on the host to which the base destination URL is to point to.aHeaderFields- The HTTP-Header's fields to be used for the request.- Returns:
- The
RestResponseas of your request. - Throws:
org.refcodes.net.HttpResponseException- thrown in case of some unexpected response.
-
doRequest
default RestResponse doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest) throws org.refcodes.net.HttpResponseException
Sends a request with the possible attributes and returns the according request'sRestResponseinstance synchronously.- Parameters:
aHttpMethod- The HTTP-Method for the request.aProtocol- The protocol (e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPort- The port to be used when connecting to the host.aPath- The path on the host to which the base destination URL is to point to.aHeaderFields- The HTTP-Header's fields to be used for the request.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.POSTrequest.- Returns:
- The
RestResponseas of your request. - Throws:
org.refcodes.net.HttpResponseException- thrown in case of some unexpected response.
-
doRequest
default RestCallerBuilder doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest, RestResponseObserver aResponseObserver)
Creates a request with the possible attributes and returns the accordingRestCallerBuilderinstance used for the request. The HTTP-Request is actually sent not earlier than you callingOpenable.open()on the returnedRestCallerBuilderas theRestCallerBuilderstill may be modified after invoking this method!- Parameters:
aHttpMethod- The HTTP-Method for the request.aProtocol- The protocol (e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPort- The port to be used when connecting to the host.aPath- The path on the host to which the base destination URL is to point to.aHeaderFields- The HTTP-Header's fields to be used for the request.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.POSTrequest.aResponseObserver- The listener processing a response targeted at thisRestCallerBuilder.- Returns:
- The
RestCallerBuilderwhich is used by the request.
-
doRequest
default RestCallerBuilder doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, int aPort, java.lang.String aPath, org.refcodes.net.RequestHeaderFields aHeaderFields, RestResponseObserver aResponseObserver)
Creates a request with the possible attributes and returns the accordingRestCallerBuilderinstance used for the request. The HTTP-Request is actually sent not earlier than you callingOpenable.open()on the returnedRestCallerBuilderas theRestCallerBuilderstill may be modified after invoking this method!- Parameters:
aHttpMethod- The HTTP-Method for the request.aProtocol- The protocol (e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPort- The port to be used when connecting to the host.aPath- The path on the host to which the base destination URL is to point to.aHeaderFields- The HTTP-Header's fields to be used for the request.aResponseObserver- The listener processing a response targeted at thisRestCallerBuilder.- Returns:
- The
RestCallerBuilderwhich is used by the request.
-
doRequest
default RestCallerBuilder doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, int aPort, java.lang.String aPath, RestResponseObserver aResponseObserver)
Creates a request with the possible attributes and returns the accordingRestCallerBuilderinstance used for the request. The HTTP-Request is actually sent not earlier than you callingOpenable.open()on the returnedRestCallerBuilderas theRestCallerBuilderstill may be modified after invoking this method!- Parameters:
aHttpMethod- The HTTP-Method for the request.aProtocol- The protocol (e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPort- The port to be used when connecting to the host.aPath- The path on the host to which the base destination URL is to point to.aResponseObserver- The listener processing a response targeted at thisRestCallerBuilder.- Returns:
- The
RestCallerBuilderwhich is used by the request.
-
doRequest
default RestResponse doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, java.lang.String aPath) throws org.refcodes.net.HttpResponseException
Sends a request with the possible attributes and returns the according request'sRestResponseinstance synchronously.- Parameters:
aHttpMethod- The HTTP-Method for the request.aProtocol- The protocol (e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPath- The path on the host to which the base destination URL is to point to.- Returns:
- The
RestResponseas of your request. - Throws:
org.refcodes.net.HttpResponseException- thrown in case of some unexpected response.
-
doRequest
default RestResponse doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields) throws org.refcodes.net.HttpResponseException
Sends a request with the possible attributes and returns the according request'sRestResponseinstance synchronously.- Parameters:
aHttpMethod- The HTTP-Method for the request.aProtocol- The protocol (e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPath- The path on the host to which the base destination URL is to point to.aQueryFields- The Query-Fields to be used for the HTTP Query-String.- Returns:
- The
RestResponseas of your request. - Throws:
org.refcodes.net.HttpResponseException- thrown in case of some unexpected response.
-
doRequest
default RestResponse doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, java.lang.Object aRequest) throws org.refcodes.net.HttpResponseException
Sends a request with the possible attributes and returns the according request'sRestResponseinstance synchronously.- Parameters:
aHttpMethod- The HTTP-Method for the request.aProtocol- The protocol (e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPath- The path on the host to which the base destination URL is to point to.aQueryFields- The Query-Fields to be used for the HTTP Query-String.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.POSTrequest.- Returns:
- The
RestResponseas of your request. - Throws:
org.refcodes.net.HttpResponseException- thrown in case of some unexpected response.
-
doRequest
default RestCallerBuilder doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, java.lang.Object aRequest, RestResponseObserver aResponseObserver)
Creates a request with the possible attributes and returns the accordingRestCallerBuilderinstance used for the request. The HTTP-Request is actually sent not earlier than you callingOpenable.open()on the returnedRestCallerBuilderas theRestCallerBuilderstill may be modified after invoking this method!- Parameters:
aHttpMethod- The HTTP-Method for the request.aProtocol- The protocol (e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPath- The path on the host to which the base destination URL is to point to.aQueryFields- The Query-Fields to be used for the HTTP Query-String.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.POSTrequest.aResponseObserver- The listener processing a response targeted at thisRestCallerBuilder.- Returns:
- The
RestCallerBuilderwhich is used by the request.
-
doRequest
default RestResponse doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, org.refcodes.net.RequestHeaderFields aHeaderFields) throws org.refcodes.net.HttpResponseException
Sends a request with the possible attributes and returns the according request'sRestResponseinstance synchronously.- Parameters:
aHttpMethod- The HTTP-Method for the request.aProtocol- The protocol (e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPath- The path on the host to which the base destination URL is to point to.aQueryFields- The Query-Fields to be used for the HTTP Query-String.aHeaderFields- The HTTP-Header's fields to be used for the request.- Returns:
- The
RestResponseas of your request. - Throws:
org.refcodes.net.HttpResponseException- thrown in case of some unexpected response.
-
doRequest
default RestResponse doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest) throws org.refcodes.net.HttpResponseException
Sends a request with the possible attributes and returns the according request'sRestResponseinstance synchronously.- Parameters:
aHttpMethod- The HTTP-Method for the request.aProtocol- The protocol (e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPath- The path on the host to which the base destination URL is to point to.aQueryFields- The Query-Fields to be used for the HTTP Query-String.aHeaderFields- The HTTP-Header's fields to be used for the request.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.POSTrequest.- Returns:
- The
RestResponsefor this request. - Throws:
org.refcodes.net.HttpResponseException- thrown in case of some unexpected response.
-
doRequest
default RestCallerBuilder doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest, RestResponseObserver aResponseObserver)
Creates a request with the possible attributes and returns the accordingRestCallerBuilderinstance used for the request. The HTTP-Request is actually sent not earlier than you callingOpenable.open()on the returnedRestCallerBuilderas theRestCallerBuilderstill may be modified after invoking this method!- Parameters:
aHttpMethod- The HTTP-Method for the request.aProtocol- The protocol (e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPath- The path on the host to which the base destination URL is to point to.aQueryFields- The Query-Fields to be used for the HTTP Query-String.aHeaderFields- The HTTP-Header's fields to be used for the request.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.POSTrequest.aResponseObserver- The listener processing a response targeted at thisRestCallerBuilder.- Returns:
- The
RestCallerBuilderwhich is used by the request.
-
doRequest
default RestCallerBuilder doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, org.refcodes.net.RequestHeaderFields aHeaderFields, RestResponseObserver aResponseObserver)
Creates a request with the possible attributes and returns the accordingRestCallerBuilderinstance used for the request. The HTTP-Request is actually sent not earlier than you callingOpenable.open()on the returnedRestCallerBuilderas theRestCallerBuilderstill may be modified after invoking this method!- Parameters:
aHttpMethod- The HTTP-Method for the request.aProtocol- The protocol (e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPath- The path on the host to which the base destination URL is to point to.aQueryFields- The Query-Fields to be used for the HTTP Query-String.aHeaderFields- The HTTP-Header's fields to be used for the request.aResponseObserver- The listener processing a response targeted at thisRestCallerBuilder.- Returns:
- The
RestCallerBuilderwhich is used by the request.
-
doRequest
default RestCallerBuilder doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.FormFields aQueryFields, RestResponseObserver aResponseObserver)
Creates a request with the possible attributes and returns the accordingRestCallerBuilderinstance used for the request. The HTTP-Request is actually sent not earlier than you callingOpenable.open()on the returnedRestCallerBuilderas theRestCallerBuilderstill may be modified after invoking this method!- Parameters:
aHttpMethod- The HTTP-Method for the request.aProtocol- The protocol (e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPath- The path on the host to which the base destination URL is to point to.aQueryFields- The Query-Fields to be used for the HTTP Query-String.aResponseObserver- The listener processing a response targeted at thisRestCallerBuilder.- Returns:
- The
RestCallerBuilderwhich is used by the request.
-
doRequest
default RestResponse doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, java.lang.String aPath, java.lang.Object aRequest) throws org.refcodes.net.HttpResponseException
Sends a request with the possible attributes and returns the according request'sRestResponseinstance synchronously.- Parameters:
aHttpMethod- The HTTP-Method for the request.aProtocol- The protocol (e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPath- The path on the host to which the base destination URL is to point to.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.POSTrequest.- Returns:
- The
RestResponseas of your request. - Throws:
org.refcodes.net.HttpResponseException- thrown in case of some unexpected response.
-
doRequest
default RestCallerBuilder doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, java.lang.String aPath, java.lang.Object aRequest, RestResponseObserver aResponseObserver)
Creates a request with the possible attributes and returns the accordingRestCallerBuilderinstance used for the request. The HTTP-Request is actually sent not earlier than you callingOpenable.open()on the returnedRestCallerBuilderas theRestCallerBuilderstill may be modified after invoking this method!- Parameters:
aHttpMethod- The HTTP-Method for the request.aProtocol- The protocol (e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPath- The path on the host to which the base destination URL is to point to.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.POSTrequest.aResponseObserver- The listener processing a response targeted at thisRestCallerBuilder.- Returns:
- The
RestCallerBuilderwhich is used by the request.
-
doRequest
default RestResponse doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.RequestHeaderFields aHeaderFields) throws org.refcodes.net.HttpResponseException
Sends a request with the possible attributes and returns the according request'sRestResponseinstance synchronously.- Parameters:
aHttpMethod- The HTTP-Method for the request.aProtocol- The protocol (e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPath- The path on the host to which the base destination URL is to point to.aHeaderFields- The HTTP-Header's fields to be used for the request.- Returns:
- The
RestResponseas of your request. - Throws:
org.refcodes.net.HttpResponseException- thrown in case of some unexpected response.
-
doRequest
default RestResponse doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest) throws org.refcodes.net.HttpResponseException
Sends a request with the possible attributes and returns the according request'sRestResponseinstance synchronously.- Parameters:
aHttpMethod- The HTTP-Method for the request.aProtocol- The protocol (e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPath- The path on the host to which the base destination URL is to point to.aHeaderFields- The HTTP-Header's fields to be used for the request.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.POSTrequest.- Returns:
- The
RestResponseas of your request. - Throws:
org.refcodes.net.HttpResponseException- thrown in case of some unexpected response.
-
doRequest
default RestCallerBuilder doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest, RestResponseObserver aResponseObserver)
Creates a request with the possible attributes and returns the accordingRestCallerBuilderinstance used for the request. The HTTP-Request is actually sent not earlier than you callingOpenable.open()on the returnedRestCallerBuilderas theRestCallerBuilderstill may be modified after invoking this method!- Parameters:
aHttpMethod- The HTTP-Method for the request.aProtocol- The protocol (e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPath- The path on the host to which the base destination URL is to point to.aHeaderFields- The HTTP-Header's fields to be used for the request.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.POSTrequest.aResponseObserver- The listener processing a response targeted at thisRestCallerBuilder.- Returns:
- The
RestCallerBuilderwhich is used by the request.
-
doRequest
default RestCallerBuilder doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, java.lang.String aPath, org.refcodes.net.RequestHeaderFields aHeaderFields, RestResponseObserver aResponseObserver)
Creates a request with the possible attributes and returns the accordingRestCallerBuilderinstance used for the request. The HTTP-Request is actually sent not earlier than you callingOpenable.open()on the returnedRestCallerBuilderas theRestCallerBuilderstill may be modified after invoking this method!- Parameters:
aHttpMethod- The HTTP-Method for the request.aProtocol- The protocol (e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPath- The path on the host to which the base destination URL is to point to.aHeaderFields- The HTTP-Header's fields to be used for the request.aResponseObserver- The listener processing a response targeted at thisRestCallerBuilder.- Returns:
- The
RestCallerBuilderwhich is used by the request.
-
doRequest
default RestCallerBuilder doRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aProtocol, java.lang.String aHost, java.lang.String aPath, RestResponseObserver aResponseObserver)
Creates a request with the possible attributes and returns the accordingRestCallerBuilderinstance used for the request. The HTTP-Request is actually sent not earlier than you callingOpenable.open()on the returnedRestCallerBuilderas theRestCallerBuilderstill may be modified after invoking this method!- Parameters:
aHttpMethod- The HTTP-Method for the request.aProtocol- The protocol (e.g. HTTP or HTTPS) to be used for the destination URL.aHost- The host to which the destination URL is to point to.aPath- The path on the host to which the base destination URL is to point to.aResponseObserver- The listener processing a response targeted at thisRestCallerBuilder.- Returns:
- The
RestCallerBuilderwhich is used by the request.
-
doRequest
default RestResponse doRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.net.Url aUrl) throws org.refcodes.net.HttpResponseException
Sends a request with the possible attributes and returns the according request'sRestResponseinstance synchronously.- Parameters:
aHttpMethod- The HTTP-Method for the request.aUrl- TheUrlfrom which to take the URL specific data.- Returns:
- The
RestResponsefor this request. - Throws:
org.refcodes.net.HttpResponseException- thrown in case of some unexpected response.
-
doRequest
default RestResponse doRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.net.Url aUrl, java.lang.Object aRequest) throws org.refcodes.net.HttpResponseException
Sends a request with the possible attributes and returns the according request'sRestResponseinstance synchronously.- Parameters:
aHttpMethod- The HTTP-Method for the request.aUrl- TheUrlfrom which to take the URL specific data.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.POSTrequest.- Returns:
- The
RestResponsefor this request. - Throws:
org.refcodes.net.HttpResponseException- thrown in case of some unexpected response.
-
doRequest
default RestCallerBuilder doRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.net.Url aUrl, java.lang.Object aRequest, RestResponseObserver aResponseObserver)
Creates a request with the possible attributes and returns the accordingRestCallerBuilderinstance used for the request. The HTTP-Request is actually sent not earlier than you callingOpenable.open()on the returnedRestCallerBuilderas theRestCallerBuilderstill may be modified after invoking this method!- Parameters:
aHttpMethod- The HTTP-Method for the request.aUrl- TheUrlfrom which to take the URL specific data.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.POSTrequest.aResponseObserver- The listener processing a response targeted at thisRestCallerBuilder.- Returns:
- The
RestCallerBuilderwhich is used by the request.
-
doRequest
default RestResponse doRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.net.Url aUrl, org.refcodes.net.RequestHeaderFields aHeaderFields) throws org.refcodes.net.HttpResponseException
Sends a request with the possible attributes and returns the according request'sRestResponseinstance synchronously.- Parameters:
aHttpMethod- The HTTP-Method for the request.aUrl- TheUrlfrom which to take the URL specific data.aHeaderFields- The HTTP-Header's fields to be used for the request.- Returns:
- The
RestResponsefor this request. - Throws:
org.refcodes.net.HttpResponseException- thrown in case of some unexpected response.
-
doRequest
default RestResponse doRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.net.Url aUrl, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest) throws org.refcodes.net.HttpResponseException
Sends a request with the possible attributes and returns the according request'sRestResponseinstance synchronously.- Parameters:
aHttpMethod- The HTTP-Method for the request.aUrl- TheUrlfrom which to take the URL specific data.aHeaderFields- The HTTP-Header's fields to be used for the request.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.POSTrequest.- Returns:
- The
RestResponsefor this request. - Throws:
org.refcodes.net.HttpResponseException- thrown in case of some unexpected response.
-
doRequest
RestResponse doRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.net.Url aUrl, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest, int aRedirectDepth) throws org.refcodes.net.HttpResponseException
Sends a request with the possible attributes and returns the according request'sRestResponseinstance synchronously.- Parameters:
aHttpMethod- The HTTP-Method for the request.aUrl- TheUrlfrom which to take the URL specific data.aHeaderFields- The HTTP-Header's fields to be used for the request.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.POSTrequest.aRedirectDepth- The redirect depth provides the count of HTTP-Request and HTTP-Response cycles where the response represents a redirect as ofHttpStatusCode.isRedirectStatus(). A value of -1 represents the default behavior, e.g. usingHttpURLConnection's redirection means.- Returns:
- The
RestResponsefor this request. - Throws:
org.refcodes.net.HttpResponseException- thrown in case of some unexpected response.
-
doRequest
default RestCallerBuilder doRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.net.Url aUrl, org.refcodes.net.RequestHeaderFields aHeaderFields, RestResponseObserver aResponseObserver)
Creates a request with the possible attributes and returns the accordingRestCallerBuilderinstance used for the request. The HTTP-Request is actually sent not earlier than you callingOpenable.open()on the returnedRestCallerBuilderas theRestCallerBuilderstill may be modified after invoking this method!- Parameters:
aHttpMethod- The HTTP-Method for the request.aUrl- TheUrlfrom which to take the URL specific data.aHeaderFields- The HTTP-Header's fields to be used for the request.aResponseObserver- The listener processing a response targeted at thisRestCallerBuilder.- Returns:
- The
RestCallerBuilderwhich is used by the request.
-
doRequest
default RestResponse doRequest(RestRequest aRequest) throws org.refcodes.net.HttpResponseException, java.net.MalformedURLException
Sends a request with the possible attributes and returns the according request'sRestResponseinstance synchronously.- Parameters:
aRequest- TheRestRequestencapsulating all necessary attributes to issue the request.- Returns:
- The
RestResponsefor this request. - Throws:
org.refcodes.net.HttpResponseException- thrown in case of some unexpected response.java.net.MalformedURLException- in case the provided URL is considered being malformed.
-
doRequest
default RestCallerBuilder doRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.net.Url aUrl, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest, RestResponseObserver aResponseObserver)
Creates a request with the possible attributes and returns the accordingRestCallerBuilderinstance used for the request. The HTTP-Request is actually sent not earlier than you callingOpenable.open()on the returnedRestCallerBuilderas theRestCallerBuilderstill may be modified after invoking this method!- Parameters:
aHttpMethod- The HTTP-Method for the request.aUrl- TheUrlfrom which to take the URL specific data.aHeaderFields- The HTTP-Header's fields to be used for the request.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.POSTrequest.aResponseObserver- The listener processing a response targeted at thisRestCallerBuilder.- Returns:
- The
RestCallerBuilderwhich is used by the request.
-
doRequest
RestCallerBuilder doRequest(org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.net.Url aUrl, org.refcodes.net.RequestHeaderFields aHeaderFields, java.lang.Object aRequest, int aRedirectDepth, RestResponseObserver aResponseObserver)
Creates a request with the possible attributes and returns the accordingRestCallerBuilderinstance used for the request. The HTTP-Request is actually sent not earlier than you callingOpenable.open()on the returnedRestCallerBuilderas theRestCallerBuilderstill may be modified after invoking this method!- Parameters:
aHttpMethod- The HTTP-Method for the request.aUrl- TheUrlfrom which to take the URL specific data.aHeaderFields- The HTTP-Header's fields to be used for the request.aRequest- The body to be sent with the request (e.g. when doing aHttpMethod.POSTrequest.aRedirectDepth- The redirect depth provides the count of HTTP-Request and HTTP-Response cycles where the response represents a redirect as ofHttpStatusCode.isRedirectStatus(). A value of -1 represents the default behavior, e.g. usingHttpURLConnection's redirection means.aResponseObserver- The listener processing a response targeted at thisRestCallerBuilder.- Returns:
- The
RestCallerBuilderwhich is used by the request.
-
-