Class LoopbackChannel
java.lang.Object
java.util.Observable
org.jpos.iso.FilteredBase
org.jpos.iso.channel.LoopbackChannel
- All Implemented Interfaces:
Cloneable, FilteredChannel, ISOChannel, ISOSource, LogSource
-
Field Summary
Fields inherited from class FilteredBase
incomingFilters, outgoingFiltersFields inherited from interface ISOChannel
CONNECT, RX, SIZEOF_CNT, TX -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconnect()Connects ISOChannelvoiddisconnects ISOChannelint[]getName()getRealm()booleanreceive()Receives an ISOMsgvoidReconnect channelvoidvoidsend(byte[] b) sends a byte[] over the TCP/IP sessionvoidsends an ISOMsg over the TCP/IP sessionvoidvoidassociates this ISOChannel with a name on NameRegistrarvoidsetPackager(ISOPackager packager) setPackager is optional on LoopbackChannel, it is used for debugging/formating purposes onlyvoidsetUsable(boolean usable) Methods inherited from class FilteredBase
addFilter, addIncomingFilter, addOutgoingFilter, applyIncomingFilters, applyOutgoingFilters, clone, getIncomingFilters, getOutgoingFilters, removeFilter, removeIncomingFilter, removeOutgoingFilter, setIncomingFilters, setOutgoingFiltersMethods inherited from class Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
-
Constructor Details
-
LoopbackChannel
public LoopbackChannel()
-
-
Method Details
-
setPackager
setPackager is optional on LoopbackChannel, it is used for debugging/formating purposes only- Specified by:
setPackagerin interfaceISOChannel- Parameters:
packager- an ISOPackager
-
connect
Description copied from interface:ISOChannelConnects ISOChannel- Specified by:
connectin interfaceISOChannel
-
disconnect
-
reconnect
Description copied from interface:ISOChannelReconnect channel- Specified by:
reconnectin interfaceISOChannel
-
isConnected
- Specified by:
isConnectedin interfaceISOChannel- Specified by:
isConnectedin interfaceISOSource- Returns:
- true if Channel is connected and usable
-
send
Description copied from interface:ISOChannelsends an ISOMsg over the TCP/IP session- Specified by:
sendin interfaceISOChannel- Specified by:
sendin interfaceISOSource- Parameters:
m- the Message to be sent- Throws:
IOExceptionISOException
-
send
Description copied from interface:ISOChannelsends a byte[] over the TCP/IP session- Specified by:
sendin interfaceISOChannel- Parameters:
b- the byte array to be sent- Throws:
IOExceptionISOException
-
receive
Description copied from interface:ISOChannelReceives an ISOMsg- Specified by:
receivein interfaceISOChannel- Returns:
- the Message received
- Throws:
IOExceptionISOException
-
setUsable
- Specified by:
setUsablein interfaceISOChannel- Parameters:
usable- - usable state
-
getCounters
-
setName
Description copied from interface:ISOChannelassociates this ISOChannel with a name on NameRegistrar- Specified by:
setNamein interfaceISOChannel- Parameters:
name- name to register- See Also:
-
getName
- Specified by:
getNamein interfaceISOChannel- Returns:
- this ISOChannel's name ("" if no name was set)
-
getPackager
- Specified by:
getPackagerin interfaceISOChannel- Returns:
- current packager
-
resetCounters
-
setLogger
-
getRealm
-
getLogger
-