|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.locomotive.commerce.ics.SCMPMessage
A wrapper for the CyberSource C-Library ics_msg API funtions essentially mirror their C counterparts. Used by ICSRequest and ICSReply. Most often an implementor will not need to use this lower level interface, but it is provided for additional flexibility. Please see the Cybersource CommerceFLEX API documentation for more information.
Constructor Summary | |
SCMPMessage(boolean debug_on)
Creates a new SCMPMessage. |
Method Summary | |
int |
addField(java.lang.String name,
java.lang.String value)
Adds a name value pair to the message. |
protected void |
finalize()
When the SCMPMessages are unreferenced, the garbage collector eventually comes along to free the memory. |
int |
getFieldCount()
Gets the field count. |
java.lang.String |
getName(int field_index)
gets the field name at index postion field_index. |
java.lang.String |
getValue(int field_index)
gets the field value at index postion field_index. |
java.lang.String |
getValueByName(java.lang.String name)
Gets the field for a specified name. |
int |
removeField(java.lang.String name)
removes a field of the specified name |
SCMPMessage |
send()
sends a message to the ICS gateway. |
java.lang.String |
toString()
Provides debugging information and complete message contents, as a String. |
Methods inherited from class java.lang.Object |
clone,
equals,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public SCMPMessage(boolean debug_on) throws SCMPException
debug_on
- if true, turns on debugging to the stdout of the
C based ics_msg library.Method Detail |
public int addField(java.lang.String name, java.lang.String value)
name
- - the name of the field. Should not be null or ""value
- - the field value. Can be nullstring. ("")public int getFieldCount()
public java.lang.String getName(int field_index)
public java.lang.String getValue(int field_index)
public java.lang.String getValueByName(java.lang.String name)
name
- - the name of the name value pairpublic int removeField(java.lang.String name)
public SCMPMessage send() throws SCMPException
public java.lang.String toString()
protected void finalize()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |