public enum Use extends Enum<Use>
Entry
objects to determine during which circumstances a parameter may be
negotiated or declared.
The factors to consider are:
ProtocolDataUnit
sent over
the connection
Enum Constant and Description |
---|
FFP
The parameter may be negotiated by any connection in the Full Feature Phase (specifically the
TextNegotiationStage ). |
INITIAL
The parameter may only be declared in the initial
ProtocolDataUnit . |
INITIAL_AND_FFP
The parameter may only be declared in the initial
ProtocolDataUnit or by any PDU sent as part of the
TextNegotiationStage in the Full Feature Phase. |
LEADING_LOPNS
The parameter may be negotiated by a leading connection in the
LoginOperationalParameterNegotiationStage
only. |
LOPNS
The parameter may be negotiated by any connection in the
LoginOperationalParameterNegotiationStage . |
LOPNS_AND_FFP
The parameter may be negotiated by any connection in the
LoginOperationalParameterNegotiationStage or in
the Full Feature Phase (specifically the TextNegotiationStage ). |
Modifier and Type | Method and Description |
---|---|
boolean |
checkUse(org.jscsi.parser.login.LoginStage loginStage,
boolean leadingConnection,
boolean initialPdu)
This method can be used for checking if this
Use instance permits negotiating its associated parameter
given a situation described by the passed parameters. |
static Use |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Use[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Use LEADING_LOPNS
LoginOperationalParameterNegotiationStage
only.public static final Use LOPNS
LoginOperationalParameterNegotiationStage
.public static final Use LOPNS_AND_FFP
LoginOperationalParameterNegotiationStage
or in
the Full Feature Phase (specifically the TextNegotiationStage
).public static final Use FFP
TextNegotiationStage
).public static final Use INITIAL
ProtocolDataUnit
.public static final Use INITIAL_AND_FFP
ProtocolDataUnit
or by any PDU sent as part of the
TextNegotiationStage
in the Full Feature Phase.public static Use[] values()
for (Use c : Use.values()) System.out.println(c);
public static Use valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullpublic boolean checkUse(org.jscsi.parser.login.LoginStage loginStage, boolean leadingConnection, boolean initialPdu)
Use
instance permits negotiating its associated parameter
given a situation described by the passed parameters.loginStage
- specifies the stage of phaseleadingConnection
- true
if and only if the connection is the leading connection of its sessioninitialPdu
- true
if and only if the ProtocolDataUnit
is the first PDU sent over the
connectiontrue
if and only if all requirements of this Use
instance have been metCopyright © 2013 University of Konstanz, Distributed Systems Group. All Rights Reserved.