Class HttpCaller
java.lang.Object
org.bardframework.commons.web.utils.HttpCaller
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncall with custom headersintintbooleanbooleanvoidsetBodyTemplate(String bodyTemplate) voidsetConnectTimeoutSeconds(int connectTimeoutSeconds) voidsetDisable(boolean disable) voidsetHeaders(Map<String, String> headers) voidsetLogResponse(boolean logResponse) voidsetReadTimeoutSeconds(int readTimeoutSeconds)
-
Field Details
-
LOGGER
protected final org.slf4j.Logger LOGGER -
httpMethod
-
urlTemplate
-
bodyTemplate
-
connectTimeoutSeconds
protected int connectTimeoutSeconds -
readTimeoutSeconds
protected int readTimeoutSeconds -
logResponse
protected boolean logResponse -
disable
protected boolean disable -
headers
-
-
Constructor Details
-
HttpCaller
-
-
Method Details
-
call
- Throws:
IOException
-
call
call with custom headers- Throws:
IOException
-
getHttpMethod
-
getUrlTemplate
-
getBodyTemplate
-
setBodyTemplate
-
getHeaders
-
getConnectTimeoutSeconds
public int getConnectTimeoutSeconds() -
setConnectTimeoutSeconds
public void setConnectTimeoutSeconds(int connectTimeoutSeconds) -
getReadTimeoutSeconds
public int getReadTimeoutSeconds() -
setReadTimeoutSeconds
public void setReadTimeoutSeconds(int readTimeoutSeconds) -
setHeaders
-
isLogResponse
public boolean isLogResponse() -
setLogResponse
public void setLogResponse(boolean logResponse) -
isDisable
public boolean isDisable() -
setDisable
public void setDisable(boolean disable)
-