org.ofbiz.pos.jpos.service
Class MsrTestService

java.lang.Object
  extended by org.ofbiz.pos.jpos.service.BaseService
      extended by org.ofbiz.pos.jpos.service.MsrTestService
All Implemented Interfaces:
jpos.loader.JposServiceInstance, jpos.services.BaseService, jpos.services.MSRService12, jpos.services.MSRService13, jpos.services.MSRService14, jpos.services.MSRService15, jpos.services.MSRService16, jpos.services.MSRService17

public class MsrTestService
extends BaseService
implements jpos.services.MSRService17


Field Summary
protected  java.lang.String[] accountNumber
           
protected  boolean autoDisable
           
protected  boolean decodeData
           
protected  int errorType
           
protected  java.lang.String[] expireDate
           
protected  java.lang.String firstname
           
protected static MsrTestService instance
           
static int JPOS_MSR_ACCT_ERR
           
static int JPOS_MSR_EXPD_ERR
           
protected  int[] lrc
           
protected  java.lang.String middle
           
static java.lang.String module
           
protected  boolean parseDecodeData
           
protected  boolean sendSentinels
           
protected  int[] sentinels
           
protected  java.lang.String serviceCode
           
protected  java.lang.String suffix
           
protected  java.lang.String surname
           
protected  java.lang.String title
           
protected  byte[] track1Data
           
protected  byte[] track1DiscretionaryData
           
protected  byte[] track2Data
           
protected  byte[] track2DiscretionaryData
           
protected  byte[] track3Data
           
protected  int tracksToRead
           
 
Fields inherited from class org.ofbiz.pos.jpos.service.BaseService
claimed, deviceEnabled, deviceName, entry, eventQueue, eventsEnabled, freezeEvents, healthText, physicalDesc, physicalName, serviceDesc, serviceVer, state
 
Constructor Summary
MsrTestService()
           
 
Method Summary
 void clearInput()
           
 java.lang.String getAccountNumber()
           
 boolean getAutoDisable()
           
 boolean getCapISO()
           
 boolean getCapJISOne()
           
 boolean getCapJISTwo()
           
 int getCapPowerReporting()
           
 boolean getCapTransmitSentinels()
           
 boolean getDecodeData()
           
 int getErrorReportingType()
           
 java.lang.String getExpirationDate()
           
 java.lang.String getFirstName()
           
 java.lang.String getMiddleInitial()
           
 boolean getParseDecodeData()
           
 int getPowerNotify()
           
 int getPowerState()
           
 java.lang.String getServiceCode()
           
 java.lang.String getSuffix()
           
 java.lang.String getSurname()
           
 java.lang.String getTitle()
           
 byte[] getTrack1Data()
           
 byte[] getTrack1DiscretionaryData()
           
 byte[] getTrack2Data()
           
 byte[] getTrack2DiscretionaryData()
           
 byte[] getTrack3Data()
           
 byte[] getTrack4Data()
           
 int getTracksToRead()
           
 boolean getTransmitSentinels()
           
static void sendTest()
           
 void setAutoDisable(boolean b)
           
 void setDecodeData(boolean b)
           
 void setErrorReportingType(int i)
           
 void setParseDecodeData(boolean b)
           
 void setPowerNotify(int i)
           
 void setTracksToRead(int i)
           
 void setTransmitSentinels(boolean b)
           
 
Methods inherited from class org.ofbiz.pos.jpos.service.BaseService
checkHealth, claim, close, deleteInstance, directIO, fireEvent, getCheckHealthText, getClaimed, getDataCount, getDataEventEnabled, getDeviceEnabled, getDeviceServiceDescription, getDeviceServiceVersion, getFreezeEvents, getPhysicalDeviceDescription, getPhysicalDeviceName, getState, open, release, setDataEventEnabled, setDeviceEnabled, setEntry, setFreezeEvents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface jpos.services.MSRService12
getDataCount, getDataEventEnabled, setDataEventEnabled
 
Methods inherited from interface jpos.services.BaseService
checkHealth, claim, close, directIO, getCheckHealthText, getClaimed, getDeviceEnabled, getDeviceServiceDescription, getDeviceServiceVersion, getFreezeEvents, getPhysicalDeviceDescription, getPhysicalDeviceName, getState, open, release, setDeviceEnabled, setFreezeEvents
 
Methods inherited from interface jpos.loader.JposServiceInstance
deleteInstance
 

Field Detail

module

public static final java.lang.String module

JPOS_MSR_ACCT_ERR

public static final int JPOS_MSR_ACCT_ERR
See Also:
Constant Field Values

JPOS_MSR_EXPD_ERR

public static final int JPOS_MSR_EXPD_ERR
See Also:
Constant Field Values

instance

protected static MsrTestService instance

title

protected java.lang.String title

firstname

protected java.lang.String firstname

middle

protected java.lang.String middle

surname

protected java.lang.String surname

suffix

protected java.lang.String suffix

accountNumber

protected java.lang.String[] accountNumber

expireDate

protected java.lang.String[] expireDate

serviceCode

protected java.lang.String serviceCode

track1DiscretionaryData

protected byte[] track1DiscretionaryData

track2DiscretionaryData

protected byte[] track2DiscretionaryData

track1Data

protected byte[] track1Data

track2Data

protected byte[] track2Data

track3Data

protected byte[] track3Data

sentinels

protected int[] sentinels

lrc

protected int[] lrc

parseDecodeData

protected boolean parseDecodeData

decodeData

protected boolean decodeData

autoDisable

protected boolean autoDisable

sendSentinels

protected boolean sendSentinels

tracksToRead

protected int tracksToRead

errorType

protected int errorType
Constructor Detail

MsrTestService

public MsrTestService()
Method Detail

getCapISO

public boolean getCapISO()
                  throws jpos.JposException
Specified by:
getCapISO in interface jpos.services.MSRService12
Throws:
jpos.JposException

getCapJISOne

public boolean getCapJISOne()
                     throws jpos.JposException
Specified by:
getCapJISOne in interface jpos.services.MSRService12
Throws:
jpos.JposException

getCapJISTwo

public boolean getCapJISTwo()
                     throws jpos.JposException
Specified by:
getCapJISTwo in interface jpos.services.MSRService12
Throws:
jpos.JposException

getAccountNumber

public java.lang.String getAccountNumber()
                                  throws jpos.JposException
Specified by:
getAccountNumber in interface jpos.services.MSRService12
Throws:
jpos.JposException

getAutoDisable

public boolean getAutoDisable()
                       throws jpos.JposException
Specified by:
getAutoDisable in interface jpos.services.MSRService12
Throws:
jpos.JposException

setAutoDisable

public void setAutoDisable(boolean b)
                    throws jpos.JposException
Specified by:
setAutoDisable in interface jpos.services.MSRService12
Throws:
jpos.JposException

getDecodeData

public boolean getDecodeData()
                      throws jpos.JposException
Specified by:
getDecodeData in interface jpos.services.MSRService12
Throws:
jpos.JposException

setDecodeData

public void setDecodeData(boolean b)
                   throws jpos.JposException
Specified by:
setDecodeData in interface jpos.services.MSRService12
Throws:
jpos.JposException

getErrorReportingType

public int getErrorReportingType()
                          throws jpos.JposException
Specified by:
getErrorReportingType in interface jpos.services.MSRService12
Throws:
jpos.JposException

setErrorReportingType

public void setErrorReportingType(int i)
                           throws jpos.JposException
Specified by:
setErrorReportingType in interface jpos.services.MSRService12
Throws:
jpos.JposException

getExpirationDate

public java.lang.String getExpirationDate()
                                   throws jpos.JposException
Specified by:
getExpirationDate in interface jpos.services.MSRService12
Throws:
jpos.JposException

getFirstName

public java.lang.String getFirstName()
                              throws jpos.JposException
Specified by:
getFirstName in interface jpos.services.MSRService12
Throws:
jpos.JposException

getMiddleInitial

public java.lang.String getMiddleInitial()
                                  throws jpos.JposException
Specified by:
getMiddleInitial in interface jpos.services.MSRService12
Throws:
jpos.JposException

getParseDecodeData

public boolean getParseDecodeData()
                           throws jpos.JposException
Specified by:
getParseDecodeData in interface jpos.services.MSRService12
Throws:
jpos.JposException

setParseDecodeData

public void setParseDecodeData(boolean b)
                        throws jpos.JposException
Specified by:
setParseDecodeData in interface jpos.services.MSRService12
Throws:
jpos.JposException

getServiceCode

public java.lang.String getServiceCode()
                                throws jpos.JposException
Specified by:
getServiceCode in interface jpos.services.MSRService12
Throws:
jpos.JposException

getSuffix

public java.lang.String getSuffix()
                           throws jpos.JposException
Specified by:
getSuffix in interface jpos.services.MSRService12
Throws:
jpos.JposException

getSurname

public java.lang.String getSurname()
                            throws jpos.JposException
Specified by:
getSurname in interface jpos.services.MSRService12
Throws:
jpos.JposException

getTitle

public java.lang.String getTitle()
                          throws jpos.JposException
Specified by:
getTitle in interface jpos.services.MSRService12
Throws:
jpos.JposException

getTrack1Data

public byte[] getTrack1Data()
                     throws jpos.JposException
Specified by:
getTrack1Data in interface jpos.services.MSRService12
Throws:
jpos.JposException

getTrack1DiscretionaryData

public byte[] getTrack1DiscretionaryData()
                                  throws jpos.JposException
Specified by:
getTrack1DiscretionaryData in interface jpos.services.MSRService12
Throws:
jpos.JposException

getTrack2Data

public byte[] getTrack2Data()
                     throws jpos.JposException
Specified by:
getTrack2Data in interface jpos.services.MSRService12
Throws:
jpos.JposException

getTrack2DiscretionaryData

public byte[] getTrack2DiscretionaryData()
                                  throws jpos.JposException
Specified by:
getTrack2DiscretionaryData in interface jpos.services.MSRService12
Throws:
jpos.JposException

getTrack3Data

public byte[] getTrack3Data()
                     throws jpos.JposException
Specified by:
getTrack3Data in interface jpos.services.MSRService12
Throws:
jpos.JposException

getTracksToRead

public int getTracksToRead()
                    throws jpos.JposException
Specified by:
getTracksToRead in interface jpos.services.MSRService12
Throws:
jpos.JposException

setTracksToRead

public void setTracksToRead(int i)
                     throws jpos.JposException
Specified by:
setTracksToRead in interface jpos.services.MSRService12
Throws:
jpos.JposException

clearInput

public void clearInput()
                throws jpos.JposException
Specified by:
clearInput in interface jpos.services.MSRService12
Throws:
jpos.JposException

getCapPowerReporting

public int getCapPowerReporting()
                         throws jpos.JposException
Specified by:
getCapPowerReporting in interface jpos.services.MSRService13
Throws:
jpos.JposException

getPowerNotify

public int getPowerNotify()
                   throws jpos.JposException
Specified by:
getPowerNotify in interface jpos.services.MSRService13
Throws:
jpos.JposException

setPowerNotify

public void setPowerNotify(int i)
                    throws jpos.JposException
Specified by:
setPowerNotify in interface jpos.services.MSRService13
Throws:
jpos.JposException

getPowerState

public int getPowerState()
                  throws jpos.JposException
Specified by:
getPowerState in interface jpos.services.MSRService13
Throws:
jpos.JposException

getCapTransmitSentinels

public boolean getCapTransmitSentinels()
                                throws jpos.JposException
Specified by:
getCapTransmitSentinels in interface jpos.services.MSRService15
Throws:
jpos.JposException

getTrack4Data

public byte[] getTrack4Data()
                     throws jpos.JposException
Specified by:
getTrack4Data in interface jpos.services.MSRService15
Throws:
jpos.JposException

getTransmitSentinels

public boolean getTransmitSentinels()
                             throws jpos.JposException
Specified by:
getTransmitSentinels in interface jpos.services.MSRService15
Throws:
jpos.JposException

setTransmitSentinels

public void setTransmitSentinels(boolean b)
                          throws jpos.JposException
Specified by:
setTransmitSentinels in interface jpos.services.MSRService15
Throws:
jpos.JposException

sendTest

public static void sendTest()
                     throws GeneralException
Throws:
GeneralException