Class BmcRequest<B>

  • Type Parameters:
    B - type of the body parameter

    public class BmcRequest<B>
    extends Object
    Request base class.
    • Constructor Detail

      • BmcRequest

        public BmcRequest()
    • Method Detail

      • getBody$

        public B getBody$()
        Alternative accessor for the body parameter, if this request supports a body.

        If this request does not support a body, an IllegalStateException is thrown.

        Returns:
        body parameter
        Throws:
        IllegalStateException - if this request does not support a body
      • supportsExpect100Continue

        public boolean supportsExpect100Continue()
        Returns true if this operation supports Expect: 100-Continue.
        Returns:
        true if this operation supports Expect: 100-Continue.
      • equals

        public boolean equals​(Object o)
        Uses getInvocationCallback and getRetryConfiguration to determine if passed request is equal to ‘this’.
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Uses invocationCallback and retryConfiguration to generate a hash.
        Overrides:
        hashCode in class Object
      • setInvocationCallback

        public void setInvocationCallback​(Consumer<javax.ws.rs.client.Invocation.Builder> invocationCallback)
        Optional consumer that will be invoked before the actual REST call is made.

        Allows callers to alter/add any parameters that were not directly configurable otherwise. Attempting to invoke or build the builder in any way will result in an exception.

        For the Invocation.Builder.headers(MultivaluedMap) method, note that modifying the passed in headers map after the call does not have any effect on headers set.

      • getInvocationCallback

        public Consumer<javax.ws.rs.client.Invocation.Builder> getInvocationCallback()
        Optional consumer that will be invoked before the actual REST call is made.

        Allows callers to alter/add any parameters that were not directly configurable otherwise. Attempting to invoke or build the builder in any way will result in an exception.

        For the Invocation.Builder.headers(MultivaluedMap) method, note that modifying the passed in headers map after the call does not have any effect on headers set.