public class HttpRequest
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
HttpRequest.ResponseJava
Static class that captures the http responses
|
| Constructor and Description |
|---|
HttpRequest() |
| Modifier and Type | Method and Description |
|---|---|
Response |
doPostGeneric(java.lang.String urlStr,
java.lang.String headerAuth)
Performs an empty POST rest call to to the given end point using authorization header
|
Response |
doPostGeneric(java.lang.String urlStr,
java.lang.String content,
java.lang.String headerAuth,
java.lang.String headerContentType)
Performs a POST rest call to the given end point with content, authorization header and type header
|
Response |
doPostGeneric(java.lang.String urlStr,
java.lang.String content,
java.lang.String headerAuth,
java.lang.String headerContentType,
java.lang.String operation)
Performs the rest call provided by 'operation' to the given end point with content, authorization header and
type header
|
public Response doPostGeneric(java.lang.String urlStr, java.lang.String headerAuth) throws java.io.IOException
urlStr - The urlheaderAuth - The authorization headerjava.io.IOException - In case input/output errorpublic Response doPostGeneric(java.lang.String urlStr, java.lang.String content, java.lang.String headerAuth, java.lang.String headerContentType) throws java.io.IOException
urlStr - The urlcontent - The contentheaderAuth - The authorization headerheaderContentType - The Content type headerjava.io.IOException - In case input/output errorpublic Response doPostGeneric(java.lang.String urlStr, java.lang.String content, java.lang.String headerAuth, java.lang.String headerContentType, java.lang.String operation) throws java.io.IOException
urlStr - The urlcontent - The contentheaderAuth - The authorization headerheaderContentType - The Content type headeroperation - The operation type: POST | GET | DELETEjava.io.IOException - In case input/output error