Class RequestBuilder

java.lang.Object
de.qytera.qtaf.http.RequestBuilder

public class RequestBuilder extends Object
A wrapper around Invocation.Builder used for building HTTP requests. The wrap is needed so that the request path (e.g. https://example.org/a/b/c?d=f) remains exposed, which is very useful for error messages.

Instances of RequestBuilder can be obtained using WebService.buildRequest(URI).

  • Method Details

    • getPath

      public URI getPath()
      The HTTP request's path (e.g. https://example.org/a/b.
    • getBuilder

      public jakarta.ws.rs.client.Invocation.Builder getBuilder()
      The HTTP builder object, which can be used to specify request headers or the request's content type.