Package org.jscsi.target.settings.entry

Examples of org.jscsi.target.settings.entry.Entry


            values.add(split[1]);
        }

        // get respective entry (declared by initiator, or negotiated) and
        // let it process the key=value pair
        Entry entry;
        boolean everythingOkay = true;
        while (keys.size() > 0) {
            entry = getEntry(keys.get(0));
            // respond to unknown keys
            if (entry == null) {
                responseKeyValuePairs.add(TextParameter.toKeyValuePair(keys.get(0), TextKeyword.NOT_UNDERSTOOD));
            } else {// appropriate entry was found
                // process key=value pair and remember if there is any trouble
                everythingOkay &= entry.negotiate(target, loginStage, leadingConnection, initialPdu, keys.get(0), values.get(0), responseKeyValuePairs);
            }
            // remove processed key and values
            keys.remove(0);
            values.remove(0);
        }
View Full Code Here


     *
     * @param key identifies an {@link Entry}
     * @return the requested {@link Entry} or <code>null</code>
     */
    private Entry getEntry (final String key) {
        Entry entry = null;
        // check connection-only entries
        entry = getEntry(key, entries);
        if (entry == null) // keep looking in session-wide entries
        entry = sessionSettingsNegotiator.getEntry(key);
        return entry;
View Full Code Here

TOP

Related Classes of org.jscsi.target.settings.entry.Entry

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.