public abstract class PVCAdapterImpl extends com.ibm.commerce.adapter.AbstractHttpAdapter implements PVCAdapter
<!-- The adapter can excludes listed commands-->
<ExcludeCommands>
<!-- The adapter can request user to reenter password to execute commands -->
<RelogonCommands>
<HttpAdapter>
... <!-- You can install multiple adapters --> </HttpAdapter> </HttpAdapters>UniqueIdentifier
Unique name to identify each adapters. Value must be shorter than length of the PVCSESSION.SESSIONTYPE column. DeviceFormatId Specify device format id of the adapter. The device format needs to be listed in the DEVICEFORMAT table. DeviceFormatType Specify name of the device format. DeviceFormatTypeId Specify the device format id of an adapter with which the adapter shares entries in the VIEWREG table. If you wish to separate entries in VIEWREG table with PC browser, you can specify same device format ID as PC browser. ClassNameOfTheAdapter Specify name of the adapter class. RegistrationMode Specify registration mode from followings.Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
IBM Copyright notice field.
|
protected static java.lang.String | DEFAULT_MODELNAME
The default name of the model.
|
protected java.lang.String | deviceModel
The device model.
|
protected PVCDeviceModelAccessBean | modelBean
The model of the device.
|
protected PVCAdapterDesc | pvcdesc |
protected java.lang.Long | pvcSessionId
The session identifier.
|
protected PVCSessionAccessBean | sessionAccessBean
The session information.
|
protected com.ibm.commerce.adapter.SessionContext | sessionContext
The session context.
|
protected PVCDeviceSpecAccessBean | specAccessBean
The specification of the device.
|
static java.lang.Integer | STATUS_LOGOFF
Value used in PVCSESSION to indicate that the PVC device user is logoff status.
|
static java.lang.Integer | STATUS_LOGON
Value used in PVCSESSION to indicate that the PVC device user is logon status.
|
protected java.lang.Integer | storeId
The store identifier.
|
protected java.lang.String | terminalId
The terminal identifier.
|
protected UserPVCDeviceAccessBean | userDeviceAccessBean
The user to PvC device information.
|
Constructor and Description |
---|
PVCAdapterImpl() |
Modifier and Type | Method and Description |
---|---|
com.ibm.commerce.adapter.HttpAdapter | createAdapter(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, TypedProperty prop)
Checks to see if the HttpServletRequest data is in this device format.
|
com.ibm.commerce.adapter.HttpAdapterDesc | getAdapterDesc()
Return the descriptor of the adapter.
|
java.lang.Integer | getBufferTimeout()
Gets buffer timeout value applied to the adapter from XML configuration file.
|
abstract java.lang.String | getDeviceModel()
Gets the model name from the request.
|
java.lang.String | getDocumentPathName(java.lang.String name)
Gets the actual output document name based on a base document name.
|
java.lang.Integer | getLogonTimeout()
Gets the timeout value applied for the adapter from XML configuration file.
|
PVCAdapterDesc | getPVCAdapterDesc()
Gets the descriptor of the PvC adapter
|
PVCDeviceModelAccessBean | getPVCDeviceModelAccessBean()
Returns the access bean which contains model information of the device.
|
PVCDeviceSpecAccessBean | getPVCDeviceSpecAccessBean()
Returns the access bean which contains spec information of the device.
|
PVCSessionAccessBean | getPVCSessionAccessBean()
Returns the access bean which contains session information of the device.
|
java.lang.Long | getPvcSessionId()
Returns session identifier used for session control using the adapter.
|
java.lang.String | getRegistrationMode()
Returns retgistrationMode of the adapter in XML configuration file.
|
com.ibm.commerce.adapter.SessionContext | getSessionContext()
Returns session context necessary for session control.
|
java.lang.Integer | getStoreId()
Returns the store identifier in the request.
|
abstract java.lang.String | getTerminalId()
Gets the terminal identifier sent by the wireless gateway.
|
UserPVCDeviceAccessBean | getUserPVCDeviceAccessBean()
Returns access bean of the client's device information in USERPVCDEV table.
|
boolean | httpsRedirection()
Checks to see if the adapter can support HTTP to HTTPS redirection.
|
void | initFactory(org.w3c.dom.Element node)
Initialize the Adapter based on the information defined in the node.
|
boolean | isExcludeCommand(java.lang.String value)
Returns true if the named command is excluded for this adapter.
|
boolean | isRelogonCommand(java.lang.String value)
Returns true if the named command required a relogon for this adapter.
|
void | postInvokeCommand(CommandContext commandContext)
Does necessary processes after invoking command.
|
boolean | preInvokeCommand(CommandContext commandContext)
Does necessary process before invoking command.
|
com.ibm.commerce.webcontroller.HttpControllerRequestObject | preprocessRequest()
This method preprocess the request and return a controller request object.
|
void | setDeviceModel(java.lang.String value)
Sets the model name of the device.
|
void | setPVCAdapterDesc(PVCAdapterDesc value)
Sets the descriptor of the PVCAdapter.
|
void | setPvcSessionId(java.lang.Long newPvcSessionId)
Sets the session identifier necessary for session control using PvC adapter.
|
void | setStoreId(java.lang.Integer storeId)
Sets the store identifier to the adapter.
|
void | setTerminalId(java.lang.String value)
Sets the terminal identifier sent by the carrier to the adapter.
|
boolean | userHasTimedout()
This method checks to see if a PvC user has timed out.
|
public static final java.lang.String COPYRIGHT
protected PVCAdapterDesc pvcdesc
protected java.lang.String deviceModel
protected java.lang.String terminalId
protected com.ibm.commerce.adapter.SessionContext sessionContext
protected PVCDeviceModelAccessBean modelBean
protected PVCDeviceSpecAccessBean specAccessBean
protected UserPVCDeviceAccessBean userDeviceAccessBean
protected java.lang.Integer storeId
protected java.lang.Long pvcSessionId
protected PVCSessionAccessBean sessionAccessBean
protected static java.lang.String DEFAULT_MODELNAME
public static final java.lang.Integer STATUS_LOGON
public static final java.lang.Integer STATUS_LOGOFF
public com.ibm.commerce.adapter.HttpAdapter createAdapter(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, TypedProperty prop)
public com.ibm.commerce.adapter.HttpAdapterDesc getAdapterDesc()
public java.lang.Integer getBufferTimeout()
public abstract java.lang.String getDeviceModel()
public java.lang.String getDocumentPathName(java.lang.String name)
public java.lang.Integer getLogonTimeout()
public final PVCAdapterDesc getPVCAdapterDesc()
public PVCDeviceModelAccessBean getPVCDeviceModelAccessBean()
public PVCDeviceSpecAccessBean getPVCDeviceSpecAccessBean()
public PVCSessionAccessBean getPVCSessionAccessBean()
public java.lang.Long getPvcSessionId()
public java.lang.String getRegistrationMode()
public com.ibm.commerce.adapter.SessionContext getSessionContext() throws ECException
public java.lang.Integer getStoreId()
public abstract java.lang.String getTerminalId()
public UserPVCDeviceAccessBean getUserPVCDeviceAccessBean()
public boolean httpsRedirection()
public void initFactory(org.w3c.dom.Element node) throws java.lang.Exception
public final boolean isExcludeCommand(java.lang.String value)
public final boolean isRelogonCommand(java.lang.String value) throws ECException
public void postInvokeCommand(CommandContext commandContext) throws ECException
public boolean preInvokeCommand(CommandContext commandContext) throws ECException
public com.ibm.commerce.webcontroller.HttpControllerRequestObject preprocessRequest()
public final void setDeviceModel(java.lang.String value)
public final void setPVCAdapterDesc(PVCAdapterDesc value)
public void setPvcSessionId(java.lang.Long newPvcSessionId)
public void setStoreId(java.lang.Integer storeId)
public final void setTerminalId(java.lang.String value)
public boolean userHasTimedout()