Interface RestRequestBuilder

  • All Superinterfaces:
    org.refcodes.mixin.Dumpable,<>,<,RestRequestBuilder>,<>,<>,<>,,,<RestRequestBuilder>,,,,<RestRequestBuilder>, RestRequest,,,
    All Known Implementing Classes:

    public interface RestRequestBuilder
    extends RestRequest,<RestRequestBuilder>,,<RestRequestBuilder>,<,RestRequestBuilder>
    An RestRequestBuilder extends an RestCaller with builder functionality and adds lambda support for handling the responses addressed to this RestCaller. The lambda defined as RestResponseObserver acts as the single listener to this RestCaller responsible for handling the responses for which this RestCaller is responsible. The locator to which a RestRequestBuilder targets for is defined by the UrlAccessor.getUrl() property.
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface<T extends<?,?>,B extends<T,B>>,<T extends<?,?>>,<T extends<?,?>>
      • Nested classes/interfaces inherited from interface<B extends<B>>,,
      • Nested classes/interfaces inherited from interface,,
    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      RestResponse toRestResponse()
      Sends the request and returns synchronously the according RestResponse.
      default RestRequestBuilder withHeaderFields​( aRequestHeaderFields)
      default RestRequestBuilder withHttpMethod​( aHttpMethod)
      default <REQ> RestRequestBuilder withRequest​(REQ aRequest)
      default RestRequestBuilder withUrl​( aUrl)
      • Methods inherited from interface org.refcodes.mixin.Dumpable

        toDump, toDump
      • Methods inherited from interface

      • Methods inherited from interface

      • Methods inherited from interface

        getRequest, setRequest, toHttpBody
      • Methods inherited from interface

      • Methods inherited from interface

      • Methods inherited from interface

        withAddToHeaderFields, withAddToHeaderFields, withAddToHeaderFields, withAddToHeaderFields, withAddToHeaderFields, withAddToQueryFields, withAddToQueryFields, withAddToQueryFields
      • Methods inherited from interface

      • Methods inherited from interface

    • Method Detail

      • toRestResponse

        RestResponse toRestResponse()
        Sends the request and returns synchronously the according RestResponse.
        the rest response
        Throws: - the http response exception
      • withUrl

        default RestRequestBuilder withUrl​( aUrl)
        Specified by:
        withUrl in interface
      • withHttpMethod

        default RestRequestBuilder withHttpMethod​( aHttpMethod)
        Specified by:
        withHttpMethod in interface<RestRequestBuilder>
      • withRequest

        default <REQ> RestRequestBuilder withRequest​(REQ aRequest)
        Specified by:
        withRequest in interface
      • withHeaderFields

        default RestRequestBuilder withHeaderFields​( aRequestHeaderFields)
        Specified by:
        withHeaderFields in interface<,RestRequestBuilder>