biz.onixs.fix.engine
Enum SessionRole

java.lang.Object
  extended by java.lang.Enum<SessionRole>
      extended by biz.onixs.fix.engine.SessionRole
All Implemented Interfaces:
Serializable, Comparable<SessionRole>

public enum SessionRole
extends Enum<SessionRole>

SessionInternal role.


Enum Constant Summary
ACCEPTOR
          Acceptor - the receiving party of the FIX session.
INITIATOR
          Initiator - establishes the telecommunications link and initiates the session via transmission of the initial Logon message.
NA
          SessionInternal role is not set.
 
Method Summary
static SessionRole valueOf(String name)
          Returns the enum constant of this type with the specified name.
static SessionRole[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

NA

public static final SessionRole NA
SessionInternal role is not set.


INITIATOR

public static final SessionRole INITIATOR
Initiator - establishes the telecommunications link and initiates the session via transmission of the initial Logon message.


ACCEPTOR

public static final SessionRole ACCEPTOR
Acceptor - the receiving party of the FIX session.

It listens for the incoming connection on the pre-defined port. The acceptor has responsibility to perform first level authentication and formally declare the connection request "accepted" through transmission of an acknowledgment Logon message.

Method Detail

values

public static SessionRole[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (SessionRole c : SessionRole.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static SessionRole valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null


Copyright © 2005-2012 Onix Solutions. All Rights Reserved.