Package com.avoka.tm.vo
Class RestCFG
java.lang.Object
com.avoka.tm.vo.RestCFG
Provide a Rest CFG value object class to map Json Object to HttpRequest.
- Since:
- 22.4.0
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classProvides an Authorisation.static classProvides a multi-part FileParam.static enumThe HTTP Methods.static classProvides a proxy.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionReturn the config authorisation.intreturn the connection timeout in milliseconds.getFiles()Return the list of multi-part FileParam.Return the config request headers.Get the POST or PUT message body.byte[]Get the POST or PUT message body.return the HTTP Method.return the request form parameters.getProxy()Return the proxy details.Return the request URL.intGet the socket timeout in milliseconds.voidsetAuthorisation(RestCFG.Authorisation authorisation) Set the config authorisation.voidsetConnectionTimeout(int connectionTimeout) Set the connection timeouts in milliseconds.voidsetFiles(List<RestCFG.FileParam> files) Set the List of multi-part FileParam.voidsetHeaders(Map<String, String> headers) Set the config request headers.voidsetMessage(String message) Set the POST or PUT message body.voidsetMessageData(byte[] messageData) Set the POST or PUT message body.voidsetMethodType(RestCFG.MethodType methodType) Set the HTTP Method.voidsetParameters(Map<String, String> parameters) Set the request form parameters.voidsetProxy(RestCFG.Proxy proxy) Set the proxy details.voidsetRestURL(String restURL) Set the request URL.voidsetSocketTimeout(int socketTimeout) Set the socket timeout in milliseconds.The default socket read timeout is 60 seconds.
- 
Constructor Details- 
RestCFGpublic RestCFG()
 
- 
- 
Method Details- 
getAuthorisationReturn the config authorisation.- Returns:
- the config authorisation
 
- 
setAuthorisationSet the config authorisation.- Parameters:
- authorisation- the config authorisation
- See Also:
 
- 
getConnectionTimeoutpublic int getConnectionTimeout()return the connection timeout in milliseconds.- Returns:
- the connection timeout
 
- 
setConnectionTimeoutpublic void setConnectionTimeout(int connectionTimeout) Set the connection timeouts in milliseconds.- Parameters:
- connectionTimeout- the connection timeouts
 
- 
getFilesReturn the list of multi-part FileParam.- Returns:
- the list of multi-part FileParam
 
- 
setFilesSet the List of multi-part FileParam.- Parameters:
- files- the List of multi-part FileParam
 
- 
getHeadersReturn the config request headers.- Returns:
- the map of request headers
 
- 
setHeadersSet the config request headers.- Parameters:
- headers- the map of request headers
 
- 
getMessageGet the POST or PUT message body.- Returns:
- the POST or PUT message body
 
- 
setMessageSet the POST or PUT message body. If specified the Content-Type will be set to 'plain/text'.- Parameters:
- message- the POST or PUT message body
 
- 
getMessageDatapublic byte[] getMessageData()Get the POST or PUT message body.- Returns:
- the POST or PUT message body
 
- 
setMessageDatapublic void setMessageData(byte[] messageData) Set the POST or PUT message body. If specified the Content-Type will be set to 'application/octet-stream'.- Parameters:
- messageData- the POST or PUT message body
 
- 
getMethodTypereturn the HTTP Method.- Returns:
- the HTTP Method
 
- 
setMethodTypeSet the HTTP Method.- Parameters:
- methodType- the HTTP Method
 
- 
getParametersreturn the request form parameters.- Returns:
- the request form parameters
 
- 
setParametersSet the request form parameters.- Parameters:
- parameters- the request form parameters
 
- 
getProxyReturn the proxy details.- Returns:
- the proxy details
- See Also:
 
- 
setProxySet the proxy details.- Parameters:
- proxy- the proxy details
 
- 
getRestURLReturn the request URL.- Returns:
- the request URL
 
- 
setRestURLSet the request URL.- Parameters:
- restURL- the request URL
 
- 
getSocketTimeoutpublic int getSocketTimeout()Get the socket timeout in milliseconds.- Returns:
- the socket timeout in milliseconds
 
- 
setSocketTimeoutpublic void setSocketTimeout(int socketTimeout) Set the socket timeout in milliseconds.The default socket read timeout is 60 seconds.- Parameters:
- socketTimeout- the socket timeout in milliseconds
 
 
-