public interface WebUtil
WebUtil provides utility functions for performing HTTP operations
against the Foreman API.| Modifier and Type | Method and Description |
|---|---|
Optional<String> |
get(String uri)
Performs a
GET operation against the provided URI. |
Optional<String> |
get(String uri,
boolean auth)
Performs a
GET operation against the provided URI. |
Optional<String> |
get(String uri,
Map<String,String> params)
Performs a
GET operation against the provided URI. |
Optional<String> |
post(String uri)
Performs a
POST operation against the provided URI. |
Optional<String> |
post(String uri,
String body)
Performs a
POST operation against the provided URI with
content. |
Optional<String> |
put(String uri,
String body)
Performs a
PUT operation against the provided URI. |
Optional<String> get(String uri)
GET operation against the provided URI.uri - The URI.Optional<String> get(String uri, boolean auth)
GET operation against the provided URI.uri - The URI.auth - Whether or not to auth.Optional<String> get(String uri, Map<String,String> params)
GET operation against the provided URI.uri - The URI.params - The parameters.Optional<String> post(String uri)
POST operation against the provided URI.uri - The URI.Optional<String> post(String uri, String body)
POST operation against the provided URI with
content.uri - The URI.body - The content.Copyright © 2024 OBM, LLC. All rights reserved.