|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.ibm.commerce.command.AbstractECTargetableCommand | +--com.ibm.commerce.command.ControllerCommandImpl | +--com.ibm.commerce.pvc.commands.PVCBufferUrlCmdImpl
Buffers parameters in the request and executes target command with buffered parameters. This command is provided for cecular phones which have limitation in length of HTTP request header. The command enables to input long value of parameters by buffering parameters in database.
Behaviour
Field Summary | |
static java.lang.String |
COPYRIGHT
|
static java.lang.String |
ERRTASK_NAME
|
Fields inherited from class com.ibm.commerce.command.ControllerCommandImpl |
requestProperties, responseProperties, retriable, viewReqProperties |
Fields inherited from class com.ibm.commerce.command.AbstractECTargetableCommand |
commandContext |
Fields inherited from interface com.ibm.commerce.pvc.commands.PVCBufferUrlCmd |
defaultCommandClassName, NAME |
Constructor Summary | |
PVCBufferUrlCmdImpl()
|
Method Summary | |
java.lang.String |
buildParameters(java.lang.String bufParams,
java.lang.String inParams)
Merges parameters stored in PVCBUFFER.PARAMETERS2K and parameters sent to the command. |
java.lang.String |
changeReqPropToString(TypedProperty reqProp)
Convert name and value pairs in TypedProperty object to string format. |
TypedProperty |
changeStringToReqProp(java.lang.String strParm)
Convert parameter string to TypedProperty object. |
boolean |
checkTimeout(java.sql.Timestamp now,
java.sql.Timestamp create)
Check if data in buffer has expired. |
PVCAdapter |
getAdapter()
Get PVC adapter set in command context. |
java.lang.String |
getB_exec()
Get the value of the b_exec parameter. |
java.lang.String |
getB_new()
Get the value of the b_new parameter. |
java.lang.String |
getB_update()
Get the value of the b_update parameter. |
java.lang.String |
getErrUrl()
Get the redirect view name, if an error occurs while processing this command. |
java.lang.String |
getNo()
Get the string of b_no parameter value. |
java.lang.String[] |
getNoArray()
Get the string array of the b_no parameters string. |
java.lang.String |
getParameters()
Set the parameters string. |
java.lang.String |
getPostUrl()
Get the redirect URL of this command. |
long |
getTimeout()
Get the buffer timeout value. |
java.lang.String |
getUrl()
Get the URL of the target command. |
java.lang.Long |
getUserId()
Get the user ID. |
boolean |
isGeneric()
Check to see if this is a generic command. |
boolean |
isRetriable()
Check to see if this command is retriable on transaction rollback exception. |
void |
performExecute()
The business logic for this command. |
void |
setAdapter(PVCAdapter newAdapter)
Set the PVC adapter object. |
void |
setB_exec(java.lang.String newB_exec)
Set the value of the b_exec parameter. |
void |
setB_new(java.lang.String newB_new)
Set the value of the b_new parameter. |
void |
setB_update(java.lang.String newB_update)
Set the value of the b_update paramter. |
void |
setErrUrl(java.lang.String newErrUrl)
Set the redirect view name. |
void |
setNo(java.lang.String newNo)
Set the string of b_no parameter value. |
void |
setParameters(java.lang.String newParameters)
Set the parameters string. |
void |
setPostUrl(java.lang.String newPostUrl)
Set the redirect URL of this command. |
void |
setRequestProperties(TypedProperty hshReqParameters)
Extracts parameter from request properties. |
void |
setTimeout(long newTimeout)
Set the buffer timeout value. |
void |
setUrl(java.lang.String newUrl)
Set the redirect URL of the targetale command. |
void |
setUserId(java.lang.Long newUserId)
Set the user ID. |
void |
validateParameters()
Check valicidy of parameters sent to this command. |
Methods inherited from class com.ibm.commerce.command.ControllerCommandImpl |
fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputProperties |
Methods inherited from class com.ibm.commerce.command.AbstractECTargetableCommand |
accessControlCheck, checkIsAllowed, checkResourcePermission, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties |
Methods inherited from interface com.ibm.commerce.command.ControllerCommand |
execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, mergeProperties, setGeneric, setRetriable, setViewInputProperties |
Methods inherited from interface com.ibm.commerce.command.AccCommand |
accessControlCheck, getAccCheck, getForUserId, setAccCheck, setForUserId, setOwner |
Methods inherited from interface com.ibm.commerce.command.ECCommand |
checkIsAllowed, checkResourcePermission, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, setCommandContext, setCommandIfName, setDefaultProperties |
Methods inherited from interface com.ibm.commerce.security.Protectable |
fulfills, getOwner |
Field Detail |
public static final java.lang.String COPYRIGHT
public static final java.lang.String ERRTASK_NAME
Constructor Detail |
public PVCBufferUrlCmdImpl()
Method Detail |
public java.lang.String buildParameters(java.lang.String bufParams, java.lang.String inParams)
bufParams
- Buffered parameters in PVCBUFFER.PARAMETER2KinParams
- Parameters sent to the commandpublic java.lang.String changeReqPropToString(TypedProperty reqProp)
Name
- and value pairspublic TypedProperty changeStringToReqProp(java.lang.String strParm)
strParam
- URL encoded parameter stringpublic boolean checkTimeout(java.sql.Timestamp now, java.sql.Timestamp create)
now
- Current timestampcreate
- Creation date of the record in PVCBUFFER table, value of PVCBUFFER.CREATEDpublic PVCAdapter getAdapter()
public java.lang.String getB_exec()
public java.lang.String getB_new()
public java.lang.String getB_update()
public java.lang.String getErrUrl()
public java.lang.String getNo()
public java.lang.String[] getNoArray()
public java.lang.String getParameters()
public java.lang.String getPostUrl()
public long getTimeout()
public java.lang.String getUrl()
public java.lang.Long getUserId()
getUserId
in interface ECCommand
getUserId
in class AbstractECTargetableCommand
public boolean isGeneric()
isGeneric
in interface ControllerCommand
isGeneric
in class ControllerCommandImpl
public boolean isRetriable()
isRetriable
in interface ControllerCommand
isRetriable
in class ControllerCommandImpl
public void performExecute() throws ECException
performExecute
in interface ECCommand
performExecute
in class AbstractECTargetableCommand
ECException
- If an error occures while processing this method.public void setAdapter(PVCAdapter newAdapter)
newAdapter
- The PVC adapter object.public void setB_exec(java.lang.String newB_exec)
setB_exec
in interface PVCBufferUrlCmd
newB_exec
- The value of the b_exec parameter.public void setB_new(java.lang.String newB_new)
setB_new
in interface PVCBufferUrlCmd
newB_new
- The value of the b_new parameter.public void setB_update(java.lang.String newB_update)
setB_update
in interface PVCBufferUrlCmd
newB_update
- The value of the b_update paramter.public void setErrUrl(java.lang.String newErrUrl)
setErrUrl
in interface PVCBufferUrlCmd
newErrUrl
- The redirect view name.public void setNo(java.lang.String newNo)
newNo
- The the string of b_no parameter value.public void setParameters(java.lang.String newParameters)
setParameters
in interface PVCBufferUrlCmd
newParameters
- The parameters string.public void setPostUrl(java.lang.String newPostUrl)
newPointUrl
- The redirect URL of this command.public void setRequestProperties(TypedProperty hshReqParameters) throws ECApplicationException
setRequestProperties
in interface ControllerCommand
setRequestProperties
in class ControllerCommandImpl
reqProp
- The parameters sent to the command.ECApplicationException
- If an error occurs while processing the methodpublic void setTimeout(long newTimeout)
setTimeout
in interface PVCBufferUrlCmd
newTimeout
- The buffer timeout value.public void setUrl(java.lang.String newUrl)
setUrl
in interface PVCBufferUrlCmd
newUrl
- The target redirect URL.public void setUserId(java.lang.Long newUserId)
setUserId
in interface PVCBufferUrlCmd
newUserId
- The user ID.public void validateParameters() throws ECException
This method does following checks. If an error occures the method throws ECException.
validateParameters
in interface ECCommand
validateParameters
in class AbstractECTargetableCommand
ECException
- If an error occurs while processing this method
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |