public class ClientRequest.Context extends ThreadServletContext
ThreadServletContext and adds variables unique to this
application.| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
function
The submitted method value.
|
protected int |
linesAccepted
Number of accepted order lines.
|
protected int |
linesRejected
Number of rejected order lines.
|
protected Product |
product
The product value.
|
protected javax.servlet.http.HttpServletRequest |
request
The current HTTP request object.
|
protected javax.servlet.http.HttpServletResponse |
response
The current HTTP response object.
|
protected int |
responseCode
The HTTP response code.
|
private static long |
serialVersionUID
The class' serialization version id.
|
org.apache.velocity.VelocityContext |
templateData
The current set of Velocity template data.
|
ivHashCode, ivHashFlds, ivObjAttrs| Modifier | Constructor and Description |
|---|---|
protected |
Context(javax.servlet.http.HttpServletRequest rqst,
javax.servlet.http.HttpServletResponse resp)
Constructs a new
Context. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getParamString(java.lang.String name)
A shortcut convenience method that returns a parameter value from the
current request as a
String. |
javax.servlet.http.HttpServletRequest |
getRequest()
Returns the current servlet HTTP request.
|
javax.servlet.http.HttpServletResponse |
getResponse()
Returns the current servlet HTTP response.
|
protected void |
setShoppingCart(Cart cart)
Sets the context's shopping cart.
|
protected void |
setShoppingUser(User user)
Sets the context's shopping user.
|
delAttr, equals, freeDbConnection, getAttr, getAttrBigDecimal, getAttrBoolean, getAttrDouble, getAttrInteger, getAttrLong, getAttrString, getCatalogVerifier, getDbConnection, getDbConnectionInfo, getDbController, getDbObject, getFavoritesHandler, getInterface, getLogonUser, getParam, getParamBigDecimal, getParamDate, getParamDouble, getParamInteger, getParamLong, getParams, getServletRequest, getServletStack, getSession, getShoppingCart, getShoppingProfile, getShoppingUser, getSiteActivity, getUomHandler, isCustAdmin, isDefaultUser, isLoggedOn, isPermitActive, isPost, isRetail, isSfiSelect, isSfiShopping, isShopping, isSiteAdmin, isWholesale, setAttr, setLogonUsercloneMapAttributes, formatValue, formatValue, getHashFields, getMapArrayList, getMapAttributes, getMapBigDecimal, getMapBoolean, getMapDate, getMapDouble, getMapInteger, getMapLong, getMapMapped, getMapObject, getMapShort, getMapString, getMapString, getMapStringBuffer, getMapStringBuilder, getMapTime, getMapTimestamp, getMapVector, hashCode, setHashFields, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMapAttributes, setMapObject, setMapTime, setMapTimestamp, toStringArrayprivate static final long serialVersionUID
protected javax.servlet.http.HttpServletRequest request
protected javax.servlet.http.HttpServletResponse response
protected int responseCode
protected java.lang.String function
public org.apache.velocity.VelocityContext templateData
protected Product product
protected int linesAccepted
protected int linesRejected
protected Context(javax.servlet.http.HttpServletRequest rqst,
javax.servlet.http.HttpServletResponse resp)
Context.rqst - (HttpServletRequest) The servlet's incoming request.resp - (HttpServletResponse) The servlet's outgoing response.public javax.servlet.http.HttpServletRequest getRequest()
getRequest in interface BaseServletContextgetRequest in class ThreadServletContextpublic javax.servlet.http.HttpServletResponse getResponse()
getResponse in interface BaseServletContextgetResponse in class ThreadServletContextprotected void setShoppingCart(Cart cart)
cart - (Cart) The shopping cart.protected void setShoppingUser(User user)
user - (User) The shopping user.public java.lang.String getParamString(java.lang.String name)
String.getParamString in interface BaseServletContextgetParamString in class ThreadServletContextname - (String) The name of the desired parameter value.