Class RequestBuilder<T extends RequestBuilder>

    • Field Detail

      • headers

        protected final javax.ws.rs.core.MultivaluedMap<String,​Object> headers
        Arbitrary request headers.
      • queryParams

        protected final javax.ws.rs.core.MultivaluedMap<String,​Object> queryParams
        Arbitrary query parameters.
    • Method Detail

      • header

        public T header​(String name,
                        Object... value)
        Add an arbitrary HTTP header to the request.
        Parameters:
        name - The header name.
        value - The header value(s).
        Returns:
        This builder.
      • contentType

        public T contentType​(String contentType)
        Sets the media type for any content sent to the server. The default value is ApiConstants.MEDIA_TYPE_SCIM ("application/scim+json").
        Parameters:
        contentType - a string describing the media type of content sent to the server.
        Returns:
        This builder.
      • accept

        public T accept​(String... acceptStrings)
        Sets the media type(s) that are acceptable as a return from the server. The default accepted media types are ApiConstants.MEDIA_TYPE_SCIM ("application/scim+json") and MediaType.APPLICATION_JSON ("application/json")
        Parameters:
        acceptStrings - a string (or strings) describing the media type that will be accepted from the server. This parameter may not be null.
        Returns:
        This builder.
      • queryParam

        public T queryParam​(String name,
                            Object... value)
        Add an arbitrary query parameter to the request.
        Parameters:
        name - The query parameter name.
        value - The query parameter value(s).
        Returns:
        This builder.
      • target

        protected javax.ws.rs.client.WebTarget target()
        Returns the unbuilt WebTarget for the request. In most cases, buildTarget() should be used instead.
        Returns:
        The WebTarget for the request.
      • getContentType

        protected String getContentType()
        Gets the media type for any content sent to the server.
        Returns:
        the media type for any content sent to the server.
      • getAccept

        protected List<StringgetAccept()
        Gets the media type(s) that are acceptable as a return from the server.
        Returns:
        the media type(s) that are acceptable as a return from the server.