jPOS 1.6.1 API Documentation

org.jpos.iso.channel
Class XMLChannel

java.lang.Object
  extended by java.util.Observable
      extended by org.jpos.iso.BaseChannel
          extended by org.jpos.iso.channel.XMLChannel
All Implemented Interfaces:
java.lang.Cloneable, Configurable, ReConfigurable, BaseChannelMBean, ClientChannel, FactoryChannel, FilteredChannel, ISOChannel, ISOSource, ServerChannel, LogSource

public class XMLChannel
extends BaseChannel

Implements an ISOChannel able to exchange jPOS generated (or compliant) XML based ISO-8583 messages

Version:
$Id: XMLChannel.java 2594 2008-01-22 16:41:31Z apr $
Author:
Alejandro P. Revilla
See Also:
ISOMsg, ISOException, ISOChannel

Field Summary
 
Fields inherited from interface org.jpos.iso.ISOChannel
CONNECT, RX, SIZEOF_CNT, TX
 
Constructor Summary
XMLChannel()
          Public constructor (used by Class.forName("...").newInstance())
XMLChannel(ISOPackager p)
          Construct server ISOChannel
XMLChannel(ISOPackager p, java.net.ServerSocket serverSocket)
          constructs a server ISOChannel associated with a Server Socket
XMLChannel(java.lang.String host, int port, ISOPackager p)
          Constructs client ISOChannel
 
Method Summary
 void disconnect()
          disconnects the TCP/IP session.
 
Methods inherited from class org.jpos.iso.BaseChannel
accept, addFilter, addFilter, addIncomingFilter, addOutgoingFilter, clone, connect, getBytes, getChannel, getConfiguration, getCounters, getHeader, getHost, getIncomingFilters, getLogger, getMaxPacketLength, getName, getOriginalRealm, getOutgoingFilters, getPackager, getPort, getRealm, getServerSocket, getSocket, getSocketFactory, getTimeout, isConnected, isOverrideHeader, receive, reconnect, removeFilter, removeFilter, removeIncomingFilter, removeOutgoingFilter, resetCounters, send, sendKeepAlive, setConfiguration, setHeader, setHeader, setHost, setHost, setIncomingFilters, setLocalAddress, setLogger, setMaxPacketLength, setName, setOutgoingFilters, setOverrideHeader, setPackager, setPort, setServerSocket, setSocketFactory, setTimeout, setUsable
 
Methods inherited from class java.util.Observable
addObserver, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLChannel

public XMLChannel()
Public constructor (used by Class.forName("...").newInstance())


XMLChannel

public XMLChannel(java.lang.String host,
                  int port,
                  ISOPackager p)
Constructs client ISOChannel

Parameters:
host - server TCP Address
port - server port number
p - an ISOPackager
See Also:
ISOPackager

XMLChannel

public XMLChannel(ISOPackager p)
           throws java.io.IOException
Construct server ISOChannel

Parameters:
p - an ISOPackager
Throws:
java.io.IOException
See Also:
ISOPackager

XMLChannel

public XMLChannel(ISOPackager p,
                  java.net.ServerSocket serverSocket)
           throws java.io.IOException
constructs a server ISOChannel associated with a Server Socket

Parameters:
p - an ISOPackager
serverSocket - where to accept a connection
Throws:
java.io.IOException
See Also:
ISOPackager
Method Detail

disconnect

public void disconnect()
                throws java.io.IOException
Description copied from class: BaseChannel
disconnects the TCP/IP session. The instance is ready for a reconnection. There is no need to create a new ISOChannel

Specified by:
disconnect in interface BaseChannelMBean
Specified by:
disconnect in interface ISOChannel
Overrides:
disconnect in class BaseChannel
Throws:
java.io.IOException

jPOS.org