com.epam.fixengine.session.common
Class AbstractFIXSessionFactory

java.lang.Object
  extended by SecureFIXSessionFactory
      extended by com.epam.fixengine.session.common.AbstractFIXSessionFactory

public abstract class AbstractFIXSessionFactory
extends SecureFIXSessionFactory

This is abstract implementation of FIXSessionFactory.
This class provides the base functionality for creates initiator and acceptor session,
and configurations it listeners. The user implementation should overrides getMessageFactory method.

See Also:
FIXSession, HandlerChain, StandardSessionFactory

Field Summary
static String SYSTEM_MESSAGEHANDLER_0
           
static String SYSTEM_MESSAGEHANDLER_1
           
static String SYSTEM_MESSAGEHANDLER_2
           
static String SYSTEM_MESSAGEHANDLER_3
           
static String SYSTEM_MESSAGEHANDLER_4
           
static String SYSTEM_MESSAGEHANDLER_5
           
static String SYSTEM_MESSAGEHANDLER_A
           
static String SYSTEM_MESSAGEHANDLER_GLOBAL
           
static String USER_MESSAGEHANDLER_GLOBAL
           
 
Constructor Summary
AbstractFIXSessionFactory()
           
 
Method Summary
 FIXSession createAcceptorSession(SessionParameters details, FIXTransport transport)
           
 FIXSession createInitiatorSession(SessionParameters details)
           
protected  ExtendedFIXSession getAcceptorSession(SessionParameters details, FIXTransport transport, HandlerChain chain)
           
 FIXVersion getFIXVersion()
          Gets fixVersion.
protected  ExtendedFIXSession getInitiatorSession(SessionParameters details, HandlerChain chain)
           
abstract  FIXMessageFactory getMessageFactory()
          Gets message factory.
 void setFixVersion(FIXVersion fixVersion)
          Sets fix version.
protected  void setGlobalSystemHandlers(HandlerChain chain, SessionParameters details)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SYSTEM_MESSAGEHANDLER_GLOBAL

public static final String SYSTEM_MESSAGEHANDLER_GLOBAL
See Also:
Constant Field Values

SYSTEM_MESSAGEHANDLER_A

public static final String SYSTEM_MESSAGEHANDLER_A
See Also:
Constant Field Values

SYSTEM_MESSAGEHANDLER_0

public static final String SYSTEM_MESSAGEHANDLER_0
See Also:
Constant Field Values

SYSTEM_MESSAGEHANDLER_1

public static final String SYSTEM_MESSAGEHANDLER_1
See Also:
Constant Field Values

SYSTEM_MESSAGEHANDLER_2

public static final String SYSTEM_MESSAGEHANDLER_2
See Also:
Constant Field Values

SYSTEM_MESSAGEHANDLER_3

public static final String SYSTEM_MESSAGEHANDLER_3
See Also:
Constant Field Values

SYSTEM_MESSAGEHANDLER_4

public static final String SYSTEM_MESSAGEHANDLER_4
See Also:
Constant Field Values

SYSTEM_MESSAGEHANDLER_5

public static final String SYSTEM_MESSAGEHANDLER_5
See Also:
Constant Field Values

USER_MESSAGEHANDLER_GLOBAL

public static final String USER_MESSAGEHANDLER_GLOBAL
See Also:
Constant Field Values
Constructor Detail

AbstractFIXSessionFactory

public AbstractFIXSessionFactory()
Method Detail

getFIXVersion

public FIXVersion getFIXVersion()
Gets fixVersion.


setFixVersion

public void setFixVersion(FIXVersion fixVersion)
Sets fix version.

Parameters:
fixVersion - the fix version

createInitiatorSession

public FIXSession createInitiatorSession(SessionParameters details)
                                  throws IOException
Throws:
IOException
See Also:
FIXSessionFactory.createInitiatorSession(com.epam.fixengine.SessionParameters)

getAcceptorSession

protected ExtendedFIXSession getAcceptorSession(SessionParameters details,
                                                FIXTransport transport,
                                                HandlerChain chain)

getInitiatorSession

protected ExtendedFIXSession getInitiatorSession(SessionParameters details,
                                                 HandlerChain chain)

createAcceptorSession

public FIXSession createAcceptorSession(SessionParameters details,
                                        FIXTransport transport)
See Also:
FIXSessionFactory.createAcceptorSession(com.epam.fixengine.SessionParameters, com.epam.fixengine.transport.FIXTransport)

setGlobalSystemHandlers

protected void setGlobalSystemHandlers(HandlerChain chain,
                                       SessionParameters details)

getMessageFactory

public abstract FIXMessageFactory getMessageFactory()
Gets message factory.

Returns:
Method returns the message factory instance.
See Also:
FIXMessageFactory


Copyright © 2000-2014 EPAM Systems. All Rights Reserved.