public class PVCAdapterDesc
extends com.ibm.commerce.adapter.HttpAdapterDesc
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
BUFFER_TIMEOUT
Name of the element in XML configuration file which defines timeout value of buffered parameters.
|
static java.lang.String |
COPYRIGHT
IBM Copyright notice field.
|
static java.lang.String |
LOGON_TIMEOUT
Name of the element in XML configuration file which defines logon timeout.
|
static java.lang.String |
REGMODE
Name of the element in XML configuration file which defines PvC registration mode.
|
Constructor and Description |
---|
PVCAdapterDesc() |
Modifier and Type | Method and Description |
---|---|
boolean |
checkGatewayIP(java.lang.String ip)
Compares specified IP address with possible client addresses listed in XML configuration file.
|
java.lang.Integer |
getBufferTimeout()
Gets buffer timeout value for the adapter.
|
java.util.Vector |
getIps()
Gets elements of IPCheck tag for the adapter in the XML configuration file.
|
java.lang.Integer |
getLogonTimeout()
Gets logon timeout value of the adapter.
|
java.lang.String |
getRegMode()
Gets registration mode of the adapter in the XML configuration file.
|
void |
init(org.w3c.dom.Element node)
Loads adapter configuration from HTTPAdapter tag in the XML configuration file.
|
void |
initialize(org.w3c.dom.Element adapterNode)
Loads PvC adapter description from specified node.
|
boolean |
isExcludeCommand(java.lang.String name)
Returns true if the named command is excluded for this adapter.
|
boolean |
isRelogonCommand(java.lang.String name)
Returns true if the named command required a relogon for this adapter.
|
void |
setBufferTimeout(java.lang.Integer newBufferTimeout)
Sets the timeout value for buffered parameters.
|
void |
setIps(java.util.Vector value)
Sets the list of possible client address.
|
void |
setLogonTimeout(java.lang.Integer newLogonTimeout)
Sets the logon timeout value.
|
void |
setRegMode(java.lang.String newRegMode)
Sets the registration mode of the adapter.
|
getDeviceFormatClass, getDeviceFormatId, getDeviceFormatName, getDeviceFormatType, getDeviceFormatTypeId, isEnabled, setDeviceFormatClass, setDeviceFormatId, setDeviceFormatName, setDeviceFormatType, setDeviceFormatTypeId, setIsEnabled
public static final java.lang.String COPYRIGHT
public static final java.lang.String REGMODE
public static final java.lang.String LOGON_TIMEOUT
public static final java.lang.String BUFFER_TIMEOUT
public boolean checkGatewayIP(java.lang.String ip)
ip
- the specified IP address to compare.public java.lang.Integer getBufferTimeout()
public java.util.Vector getIps()
public java.lang.Integer getLogonTimeout()
public java.lang.String getRegMode()
public void init(org.w3c.dom.Element node) throws java.lang.Exception
init
in class com.ibm.commerce.adapter.DeviceFormatAdapterDesc
node
- Node which contains adapter informationjava.lang.Exception
- if there is a problem initializing.public void initialize(org.w3c.dom.Element adapterNode) throws java.lang.Exception
adapterNode
- the adapter configuration.java.lang.Exception
- if there is a problem with initialization.public boolean isExcludeCommand(java.lang.String name)
name
- the name of the command.public boolean isRelogonCommand(java.lang.String name)
name
- the name of the command.public void setBufferTimeout(java.lang.Integer newBufferTimeout)
newBufferTimeout
- the buffer timeout value.public final void setIps(java.util.Vector value)
address
- list of valid client IP addresses.public void setLogonTimeout(java.lang.Integer newLogonTimeout)
newLogonTimeout
- the logon timeout value.public void setRegMode(java.lang.String newRegMode)
newRegMode
- the registration mode.