Class AbstractFIXSessionFactory
java.lang.Object
com.epam.fixengine.session.common.SecureFIXSessionFactory
com.epam.fixengine.session.common.AbstractFIXSessionFactory
- All Implemented Interfaces:
FIXSessionFactory
public abstract class AbstractFIXSessionFactory
extends com.epam.fixengine.session.common.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
-
Nested Class Summary
Nested classes/interfaces inherited from class com.epam.fixengine.session.common.SecureFIXSessionFactory
com.epam.fixengine.session.common.SecureFIXSessionFactory.RestrictedMessageException
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateAcceptorSession
(SessionParameters details) Creates the acceptor session.createAcceptorSession
(SessionParameters details, FIXTransport transport) Creates the acceptor session.createInitiatorSession
(SessionParameters details) Creates the initiator session.protected ExtendedFIXSession
getAcceptorSession
(SessionParameters details, FIXTransport transport, HandlerChain chain) Gets fixVersion.protected ExtendedFIXSession
getInitiatorSession
(SessionParameters details, HandlerChain chain) abstract FIXMessageFactory
Gets message factory.void
setFixVersion
(FIXVersion fixVersion) Sets fix version.protected void
setGlobalSystemHandlers
(HandlerChain chain, SessionParameters details) Methods inherited from class com.epam.fixengine.session.common.SecureFIXSessionFactory
checkAllowedMessageTypes, checkIfMessageRestricted, checkIfMessageTypeRestricted, checkLimits
-
Field Details
-
SYSTEM_MESSAGEHANDLER_GLOBAL
- See Also:
-
SYSTEM_MESSAGEHANDLER_A
- See Also:
-
SYSTEM_MESSAGEHANDLER_0
- See Also:
-
SYSTEM_MESSAGEHANDLER_1
- See Also:
-
SYSTEM_MESSAGEHANDLER_2
- See Also:
-
SYSTEM_MESSAGEHANDLER_3
- See Also:
-
SYSTEM_MESSAGEHANDLER_4
- See Also:
-
SYSTEM_MESSAGEHANDLER_5
- See Also:
-
USER_MESSAGEHANDLER_GLOBAL
- See Also:
-
-
Constructor Details
-
AbstractFIXSessionFactory
public AbstractFIXSessionFactory()
-
-
Method Details
-
getFIXVersion
Gets fixVersion. -
setFixVersion
Sets fix version.- Parameters:
fixVersion
- the fix version
-
createInitiatorSession
Description copied from interface:FIXSessionFactory
Creates the initiator session.- Parameters:
details
- the session configuration- Returns:
- FIXSession the fix session
- Throws:
IOException
- if the session cannot be created
-
getAcceptorSession
protected ExtendedFIXSession getAcceptorSession(SessionParameters details, FIXTransport transport, HandlerChain chain) -
getInitiatorSession
-
createAcceptorSession
Description copied from interface:FIXSessionFactory
Creates the acceptor session.- Parameters:
details
- the session configuration- Returns:
- FIXSession the fix session
- Throws:
IOException
- if the session cannot be created
-
createAcceptorSession
public FIXSession createAcceptorSession(SessionParameters details, FIXTransport transport) throws IOException Description copied from interface:FIXSessionFactory
Creates the acceptor session.- Parameters:
details
- the session configurationtransport
- the fix transport- Returns:
- FIXSession the fix session
- Throws:
IOException
- if the session cannot be created- See Also:
-
setGlobalSystemHandlers
-
getMessageFactory
Gets message factory.- Returns:
- Method returns the message factory instance.
- See Also:
-