Class SimpleHttpRequest.Builder<T>

java.lang.Object
org.opendaylight.aaa.shiro.realm.util.http.SimpleHttpRequest.Builder<T>
Enclosing class:
SimpleHttpRequest<T>

public static class SimpleHttpRequest.Builder<T> extends Object
  • Method Details

    • uri

      public SimpleHttpRequest.Builder<T> uri(URI uri)
      Sets the URI the request is made to.
      Parameters:
      uri - the URI.
      Returns:
      self, the request builder.
    • path

      public SimpleHttpRequest.Builder<T> path(String path)
      Sets the relative path the request is made to.
      Parameters:
      path - the path.
      Returns:
      self, the request builder.
    • method

      public SimpleHttpRequest.Builder<T> method(String method)
      Sets the method invoked in the request.
      Parameters:
      method - the method.
      Returns:
      self, the request builder.
    • mediaType

      public SimpleHttpRequest.Builder<T> mediaType(javax.ws.rs.core.MediaType mediaType)
      Sets the media type of the request payload.
      Parameters:
      mediaType - the media type.
      Returns:
      self, the request builder.
    • entity

      public SimpleHttpRequest.Builder<T> entity(Object input)
      Sets the input payload of the request.
      Parameters:
      input - the input payload.
      Returns:
      self, the request builder.
    • queryParam

      public SimpleHttpRequest.Builder<T> queryParam(String theQueryParam, String theParamValue)
      Add query parameters to the request. Can be called multiple times, to add multiple query parameters. Values are overwritten when assigned the same keys.
      Parameters:
      theQueryParam - the parameter name
      theParamValue - the parameter value
      Returns:
      self, the request builder
    • build

      public SimpleHttpRequest<T> build()
      Build the request.
      Returns:
      the request.