Class SimpleHttpRequest.Builder<T>
java.lang.Object
org.opendaylight.aaa.shiro.realm.util.http.SimpleHttpRequest.Builder<T>
- Enclosing class:
- SimpleHttpRequest<T>
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build the request.Sets the input payload of the request.mediaType
(javax.ws.rs.core.MediaType mediaType) Sets the media type of the request payload.Sets the method invoked in the request.Sets the relative path the request is made to.queryParam
(String theQueryParam, String theParamValue) Add query parameters to the request.Sets the URI the request is made to.
-
Method Details
-
uri
Sets the URI the request is made to.- Parameters:
uri
- the URI.- Returns:
- self, the request builder.
-
path
Sets the relative path the request is made to.- Parameters:
path
- the path.- Returns:
- self, the request builder.
-
method
Sets the method invoked in the request.- Parameters:
method
- the method.- Returns:
- self, the request builder.
-
mediaType
Sets the media type of the request payload.- Parameters:
mediaType
- the media type.- Returns:
- self, the request builder.
-
entity
Sets the input payload of the request.- Parameters:
input
- the input payload.- Returns:
- self, the request builder.
-
queryParam
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 nametheParamValue
- the parameter value- Returns:
- self, the request builder
-
build
Build the request.- Returns:
- the request.
-