public class ECActionMapping
extends org.apache.struts.action.ActionMapping
implements com.ibm.commerce.adapter.HttpRequestAttributes
BaseAction
class.
The custom properties are:
https
1
indicates that the request was expected to be received on a secure channel (HTTPS
).
A redirect to the SSL
port will be issued if it has been received on an insecure channel (HTTP
).authenticate
defaultProperties
HTTP
request query stringdefaultProperties
property provides a generic way to define other properties
to be passed to the BaseAction
class.Constructor and Description |
---|
ECActionMapping()
This is the default constructor for this class.
|
Modifier and Type | Method and Description |
---|---|
org.apache.struts.action.ActionForward |
findForward(java.lang.String name)
Find and return the
ForwardConfig instance defining
how forwarding to the specified logical name should be handled. |
java.lang.String |
getAuthenticate()
This method gets the value of the
authenticate property. |
java.lang.String |
getCredentialsAccepted()
This method returns the flag that represents the type of
authentication that is required to access the forward.
|
java.lang.String |
getCredentialsAccepted(java.lang.Integer storeId)
This method returns the flag that represents the type of
authentication that is required to access the forward.
|
java.lang.String |
getCsrfProtected()
This method gets the value of the
csrfProtected property. |
java.lang.String |
getCsrfProtected(java.lang.Integer storeId)
This method gets the value of the
csrfProtected property for a given store. |
java.lang.String |
getDefaultProperties()
This method gets the value of the
defaultProperties property. |
java.lang.String |
getDefaultProperties(java.lang.Integer storeId)
This method gets the value of the
defaultProperties property for a given store. |
java.lang.String |
getGenerateLTPAToken()
This method gets the value of the
generateLTPAToken property. |
java.lang.String |
getGenerateLTPAToken(java.lang.Integer storeId)
This method gets the value of the
generateLTPAToken property for a given store. |
java.lang.String |
getHttps()
This method gets the value of the
HTTPS property. |
java.lang.String |
getHttps(java.lang.Integer storeId)
This method gets the value of the
HTTPS property for a given store. |
int |
getHttpValue(java.lang.Integer storeId)
This method returns the value of the
HTTPS property for a given store. |
java.lang.String |
getRemoveLTPAToken()
This method gets the value of the
removeLTPAToken property. |
java.lang.String |
getRemoveLTPAToken(java.lang.Integer storeId)
This method gets the value of the
removeLTPAToken property for a given store. |
java.lang.String |
getSaveToken()
This method gets the value of the
saveToken property. |
java.util.List |
getStoreIdList()
This method gets the list of the store ID values that are included in this action mapping.
|
java.lang.String |
getValidateToken()
This method gets the value of the
validateToken property. |
java.lang.String |
getVcProtected()
This method gets the value of the
vcProtected property. |
java.lang.String |
getVcProtected(java.lang.Integer storeId)
This method gets the value of the
vcProtected property for a given store. |
boolean |
isAuthenticate(java.lang.Integer storeId)
This method determines whether the
authenticate property is set for a given store. |
boolean |
isCrossSiteScriptingForgeryProtected(java.lang.Integer storeId)
This method determines whether the
csrfProtected property is set for a given store. |
boolean |
isGenerateLTPAToken(java.lang.Integer storeId)
This method determines whether the
generateLTPAToken property is set for a given store. |
boolean |
isHttps(java.lang.Integer storeId)
This method determines whether the
HTTPS property is set for a given store. |
boolean |
isRemoveLTPAToken(java.lang.Integer storeId)
This method determines whether the
removeLTPAToken property is set for a given store. |
boolean |
isSaveToken(java.lang.Integer storeId)
This method checks whether the
saveToken property is set for a given store. |
boolean |
isValidateToken(java.lang.Integer storeId)
This method determines whether the
validateToken property is set for a given store. |
boolean |
isVerficationCodeProtected(java.lang.Integer storeId)
This method determines whether the
vcProtected property is set for a given store. |
void |
merge(org.apache.struts.config.ActionConfig actionConfig)
This method merges the content of the specified action configuration object
with the current object.
|
void |
setAuthenticate(java.lang.String value)
This method sets the value of the
authenticate property. |
void |
setCredentialsAccepted(java.lang.String value)
This method sets the flag that determines whether or not a user that
is partially authenticated is allowed to access this
URL . |
void |
setCsrfProtected(java.lang.String value)
This method sets the value of the
csrfProtected property. |
void |
setDefaultProperties(java.lang.String value)
This method sets the value of the
defaultProperties property. |
void |
setGenerateLTPAToken(java.lang.String value)
This method sets the value of the
generateLTPAToken property. |
void |
setHttps(java.lang.String value)
This method sets the value of the
HTTPS property. |
void |
setRemoveLTPAToken(java.lang.String value)
This method sets the value of the
removeLTPAToken property. |
void |
setSaveToken(java.lang.String value)
This method sets the value of the
saveToken property. |
void |
setValidateToken(java.lang.String value)
This method sets the value of the
validateToken property. |
void |
setVcProtected(java.lang.String value)
This method sets the value of the
vcProtected property. |
java.lang.String |
toString()
This method returns the
String representation of this action mapping. |
addExceptionConfig, addForwardConfig, findException, findExceptionConfig, findExceptionConfigs, findForwardConfig, findForwardConfigs, freeze, getAttribute, getCancellable, getForward, getInclude, getInput, getModuleConfig, getMultipartClass, getName, getParameter, getPath, getPrefix, getRoleNames, getRoles, getScope, getSuffix, getType, getUnknown, getValidate, removeExceptionConfig, removeForwardConfig, setAttribute, setCancellable, setForward, setInclude, setInput, setModuleConfig, setMultipartClass, setName, setParameter, setPath, setPrefix, setRoles, setScope, setSuffix, setType, setUnknown, setValidate
public ECActionMapping()
public java.util.List getStoreIdList()
public void setHttps(java.lang.String value)
HTTPS
property.value
- A value of 1
means "set to true
"public void setAuthenticate(java.lang.String value)
authenticate
property.value
- A value of 1
means "set to true
".public void setValidateToken(java.lang.String value)
validateToken
property.value
- A value of 1
means "validate".public void setCsrfProtected(java.lang.String value)
csrfProtected
property.value
- A value of 1
means "set to true
".public void setVcProtected(java.lang.String value)
vcProtected
property.value
- A value of 1
means "set to true
".public void setGenerateLTPAToken(java.lang.String value)
generateLTPAToken
property.value
- A value of 1
means "set to true
".public void setRemoveLTPAToken(java.lang.String value)
removeLTPAToken
property.value
- A value of 1
means "set to true
".public void setDefaultProperties(java.lang.String value)
defaultProperties
property.value
- The new value of the defaultProperties
property.public java.lang.String getAuthenticate()
authenticate
property.authenticate
property.public java.lang.String getDefaultProperties()
defaultProperties
property.defaultProperties
property.public java.lang.String getDefaultProperties(java.lang.Integer storeId)
defaultProperties
property for a given store.storeId
- The store ID.defaultProperties
property.public boolean isValidateToken(java.lang.Integer storeId)
validateToken
property is set for a given store.storeId
- The store ID.boolean
value; true
if the validateToken
property is set and false
otherwise.public void setSaveToken(java.lang.String value)
saveToken
property.value
- The new value of the saveToken
property.public java.lang.String getHttps()
HTTPS
property.HTTPS
property.public java.lang.String getHttps(java.lang.Integer storeId)
HTTPS
property for a given store.storeId
- The store IDHTTPS
property.public java.lang.String getSaveToken()
saveToken
property.saveToken
property.public java.lang.String getValidateToken()
validateToken
property.validateToken
property.public boolean isAuthenticate(java.lang.Integer storeId)
authenticate
property is set for a given store.isAuthenticate
in interface com.ibm.commerce.adapter.HttpRequestAttributes
storeId
- The store ID.boolean
value; true
if the authenticate
property is set and false
otherwise (the default).public boolean isSaveToken(java.lang.Integer storeId)
saveToken
property is set for a given store.storeId
- The store ID.boolean
value; true
if the saveToken
property is set and false
otherwise (the default).public boolean isHttps(java.lang.Integer storeId)
HTTPS
property is set for a given store.storeId
- The store ID.boolean
value; true
if the HTTPS
property is set and false
otherwise (the default).public java.lang.String toString()
String
representation of this action mapping.toString
in class org.apache.struts.config.ActionConfig
String
representation of this action mapping.public void setCredentialsAccepted(java.lang.String value)
URL
.
R
or null
- The partially authenticated user has no access.P
- The partially authenticated user can access the URL
.P
, a partially authenticated user
is not entitled to access any resource by default.value
- The flag that represents the type of
authentication that is required to access the forward.public java.lang.String getCredentialsAccepted()
R
or null
- The partially authenticated user has no access.P
- The partially authenticated user can access the URL
.P
, a partially authenticated user
is not entitled to access any resource by default.public java.lang.String getCredentialsAccepted(java.lang.Integer storeId)
R
or null
- The partially authenticated user has no access.P
- The partially authenticated user can access the URL
.P
, a partially authenticated user
is not entitled to access any resource by default.getCredentialsAccepted
in interface com.ibm.commerce.adapter.HttpRequestAttributes
storeId
- The store identifier of the resources authentication
credentials flag.public int getHttpValue(java.lang.Integer storeId)
HTTPS
property for a given store.getHttpValue
in interface com.ibm.commerce.adapter.HttpRequestAttributes
storeId
- The store ID.HTTPS
property.public java.lang.String getCsrfProtected()
csrfProtected
property.csrfProtected
property.public java.lang.String getCsrfProtected(java.lang.Integer storeId)
csrfProtected
property for a given store.storeId
- The store IDcsrfProtected
property.public boolean isCrossSiteScriptingForgeryProtected(java.lang.Integer storeId)
csrfProtected
property is set for a given store.
If it is set to 1 which means true, the request must be passed in with a authToken parameter.isCrossSiteScriptingForgeryProtected
in interface com.ibm.commerce.adapter.HttpRequestAttributes
storeId
- The store ID.boolean
value; true
if the csrfProtected
property is set to 1 and false
otherwise (the default).public java.lang.String getVcProtected()
vcProtected
property.vcProtected
property.public java.lang.String getVcProtected(java.lang.Integer storeId)
vcProtected
property for a given store.storeId
- The store IDvcProtected
property.public boolean isVerficationCodeProtected(java.lang.Integer storeId)
vcProtected
property is set for a given store.
If it is set to 1 which means true, the request must be passed in with a verCode parameter.storeId
- The store ID.boolean
value; true
if the vcProtected
property is set to 1 and false
otherwise (the default).public java.lang.String getGenerateLTPAToken()
generateLTPAToken
property.generateLTPAToken
property.public java.lang.String getGenerateLTPAToken(java.lang.Integer storeId)
generateLTPAToken
property for a given store.storeId
- The store IDgenerateLTPAToken
property.public boolean isGenerateLTPAToken(java.lang.Integer storeId)
generateLTPAToken
property is set for a given store.storeId
- The store ID.boolean
value; true
if the generateLTPAToken
property is set to 1 and false
otherwise (the default).public java.lang.String getRemoveLTPAToken()
removeLTPAToken
property.removeLTPAToken
property.public java.lang.String getRemoveLTPAToken(java.lang.Integer storeId)
removeLTPAToken
property for a given store.storeId
- The store IDremoveLTPAToken
property.public boolean isRemoveLTPAToken(java.lang.Integer storeId)
removeLTPAToken
property is set for a given store.storeId
- The store ID.boolean
value; true
if the removeLTPAToken
property is set to 1 and false
otherwise (the default).public void merge(org.apache.struts.config.ActionConfig actionConfig)
ECActionMapping
.actionConfig
- The action configuration to merge.public org.apache.struts.action.ActionForward findForward(java.lang.String name)
Find and return the ForwardConfig
instance defining
how forwarding to the specified logical name should be handled. This is
performed by checking local and then global configurations for the
specified forwarding configuration. If no forwarding configuration
can be found, return null
.
findForward
in class org.apache.struts.action.ActionMapping
name
- Logical name of the forwarding instance to be returned