|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ecebs.rtd.enabler.types.request.ModifyRequest
com.ecebs.rtd.enabler.types.request.LoadProductRequest
public class LoadProductRequest
Represents a request to be sent to an RTD server to load a product on to a CM
Constructor Summary | |
---|---|
LoadProductRequest()
Create a request with no intialised parameters. |
|
LoadProductRequest(String cardId,
CardType cardType,
String productName)
Sets all the required parameters with the provided values. |
Method Summary | |
---|---|
LoadProductRequest |
addParam(String key,
Object value)
Add a parameter to the request. |
LoadProductRequest |
setCardId(String cardId)
Set the ID of the card to load the product on to |
LoadProductRequest |
setCardType(CardType cardType)
Set the type of the card to load the product on to |
LoadProductRequest |
setProductName(String productName)
Set the name of the product to load |
Outcome |
validate()
Validate that the required fields have been set |
Methods inherited from class com.ecebs.rtd.enabler.types.request.ModifyRequest |
---|
getCardId, getCardType, getRequestId, setRequestId |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LoadProductRequest()
setCardId(String)
,
setCardType(CardType)
,
setProductName(String)
public LoadProductRequest(String cardId, CardType cardType, String productName)
cardId
- ID of the card that the product should be loaded ontocardType
- The type of the cardproductName
- The name of the productMethod Detail |
---|
public LoadProductRequest setCardId(String cardId)
cardId
- ID of the card to load the product on to
public LoadProductRequest setCardType(CardType cardType)
cardType
- Type of the card to load the product on to
public LoadProductRequest setProductName(String productName)
productName
- Name of the product to load
public LoadProductRequest addParam(String key, Object value)
ModifyRequest
value
will be converted by
calling Object.toString()
addParam
in class ModifyRequest
key
- The key for the parametervalue
- The value of the parameter
public Outcome validate()
Request
validate
in interface Request
validate
in class ModifyRequest
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |