public class CommonHTTPClientConfiguration extends Object implements HTTPClientConfiguration
Modifier and Type | Class and Description |
---|---|
static class |
CommonHTTPClientConfiguration.HTTPClientConfigurationConstants
This class holds the configuration constants.
|
Constructor and Description |
---|
CommonHTTPClientConfiguration()
This is the class constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
getHostName()
This function returns the host name.
|
HTTPClient.HTTPMethod |
getMethod(FaxActionType faxActionType)
This function returns the HTTP method based on the provided fax action type.
|
int |
getPort()
This function returns the port.
|
boolean |
isSSL()
This function returns the SSL flag value.
|
void |
setHostName(String hostName)
This function sets the host name.
|
void |
setMethod(FaxActionType faxActionType,
HTTPClient.HTTPMethod httpMethod)
This function sets the HTTP method based on the provided fax action type.
|
void |
setPort(int port)
This function sets the port.
|
void |
setSSL(boolean ssl)
This function sets the SSL flag value.
|
public CommonHTTPClientConfiguration()
public final String getHostName()
getHostName
in interface HTTPClientConfiguration
public final void setHostName(String hostName)
hostName
- The new value for the host namepublic final int getPort()
getPort
in interface HTTPClientConfiguration
public final void setPort(int port)
port
- The new value for the portpublic final boolean isSSL()
isSSL
in interface HTTPClientConfiguration
public final void setSSL(boolean ssl)
ssl
- The new value for the SSL flag valuepublic final HTTPClient.HTTPMethod getMethod(FaxActionType faxActionType)
getMethod
in interface HTTPClientConfiguration
faxActionType
- The fax action typepublic final void setMethod(FaxActionType faxActionType, HTTPClient.HTTPMethod httpMethod)
faxActionType
- The fax action typehttpMethod
- The HTTP methodCopyright © 2009–2020 fax4j. All rights reserved.