Package org.jscsi.parser.logout

Examples of org.jscsi.parser.logout.LogoutRequestParser


            case LOGIN_REQUEST :
                return new LoginRequestParser(protocolDataUnit);
            case LOGIN_RESPONSE :
                return new LoginResponseParser(protocolDataUnit);
            case LOGOUT_REQUEST :
                return new LogoutRequestParser(protocolDataUnit);
            case LOGOUT_RESPONSE :
                return new LogoutResponseParser(protocolDataUnit);
            case TEXT_REQUEST :
                return new TextRequestParser(protocolDataUnit);
            case TEXT_RESPONSE :
View Full Code Here


    /** {@inheritDoc} */
    public final void execute () throws InternetSCSIException {

        final ProtocolDataUnit protocolDataUnit = protocolDataUnitFactory.create(true, true, OperationCode.LOGOUT_REQUEST, connection.getSetting(OperationalTextKey.HEADER_DIGEST), connection.getSetting(OperationalTextKey.DATA_DIGEST));
        final LogoutRequestParser logoutRequest = (LogoutRequestParser) protocolDataUnit.getBasicHeaderSegment().getParser();

        logoutRequest.setReasonCode(reasonCode);
        if (reasonCode != LogoutReasonCode.CLOSE_SESSION) {
            logoutRequest.setConnectionID(connection.getConnectionID());
        }

        connection.send(protocolDataUnit);
        connection.nextState(new LogoutResponseState(connection));
        super.stateFollowing = true;
View Full Code Here

TOP

Related Classes of org.jscsi.parser.logout.LogoutRequestParser

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.