com.ibm.as400.access.LicenseBaseReply Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jt400 Show documentation
Show all versions of jt400 Show documentation
The Open Source version of the IBM Toolbox for Java
///////////////////////////////////////////////////////////////////////////////
//
// JTOpen (IBM Toolbox for Java - OSS version)
//
// Filename: LicenseBaseReply.java
//
// The source code contained herein is licensed under the IBM Public License
// Version 1.0, which has been approved by the Open Source Initiative.
// Copyright (C) 1997-2000 International Business Machines Corporation and
// others. All rights reserved.
//
///////////////////////////////////////////////////////////////////////////////
package com.ibm.as400.access;
/** This class is used to access certain information from the release license reply datastream.
**/
class LicenseBaseReply extends ClientAccessDataStream
{
private static final String copyright = "Copyright (C) 1997-2000 International Business Machines Corporation and others.";
protected int primaryRC_=0; // return code returned by server
protected int secondaryRC_=0; // return code returned by server
/** REPLY_PRIMARY_RETURN_CODE_LOCATION - Location of the primary return code in the reply datastream.
**/
static final int REPLY_PRIMARY_RETURN_CODE_LOCATION = 22;
/** REPLY_SECONDARY_RETURN_CODE_LOCATION - Location of the secondary return code in the reply datastream.
**/
static final int REPLY_SECONDARY_RETURN_CODE_LOCATION = 24;
LicenseBaseReply()
{
super();
}
/** This method creates a new LicenseReleaseReply object.
**/
public Object getNewDataStream()
{
return new LicenseBaseReply();
}
/** This method returns the primary return code for the license release datastream.
* @return primary return code
**/
public int getPrimaryRC()
{
return get16bit(REPLY_PRIMARY_RETURN_CODE_LOCATION);
}
/** This method returns the secondary return code for the license release datastream.
* @return secondary return code
**/
public int getSecondaryRC()
{
return get16bit(REPLY_SECONDARY_RETURN_CODE_LOCATION);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy