public interface OPERequestContext
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getAttribute(java.lang.String attributeName)
gets the attribute by name
|
Discount |
getDiscount(java.lang.String discountId)
Get the discount from the memory based on discount Id
|
OPEServiceBase |
getOpeServiceBase()
Gets the handle to access the incoming service requests
|
Price |
getPrice(java.lang.String priceId)
Get the price from the memory based on price Id
|
Product |
getProduct(java.lang.String productId)
Get the product from the memory based on product Id
|
java.lang.String |
getProperty(java.lang.String key,
java.lang.String defaultValue)
Fetched the configuration property by name from the configuration files
|
void |
putAttribute(java.lang.String attributeName,
java.lang.Object value)
Add custom attributes in the execution context to be fetchec later if required
|
void |
removeAttribute(java.lang.String attributeName)
removes attribute from the execution context
|
void putAttribute(java.lang.String attributeName, java.lang.Object value)
attributeName
- value
- void removeAttribute(java.lang.String attributeName)
attributeName
- java.lang.Object getAttribute(java.lang.String attributeName)
attributeName
- OPEServiceBase getOpeServiceBase()
Product getProduct(java.lang.String productId)
productId
- Price getPrice(java.lang.String priceId)
priceId
- Discount getDiscount(java.lang.String discountId)
discountId
- java.lang.String getProperty(java.lang.String key, java.lang.String defaultValue)
key
- - The name of the propertydefaultValue
- - Default value to return in case property is not found