Previous Topic Next topic Print topic


Class CobolConnectionRequestInfo

An implementation class that enables a resource adapter to pass its own request-specific data structure across connection request flow.
java.lang.Object

extended by com.microfocus.cobol.connector.spi.CobolConnectionRequestInfo

All Implemented Interfaces

ConnectionRequestInfo, Serializable

Class Specifications

public class CobolConnectionRequestInfo

extends Object

implements ConnectionRequestInfo, Serializable

Field Summary

static int USE_USERPWD

Constructor Summary

CobolConnectionRequestInfo()
Create a COBOL connection request info instance.
CobolConnectionRequestInfo(boolean sessType)
Create a COBOL connection request info instance.
CobolConnectionRequestInfo(String user, String password, String realm, boolean sessType)
Create a COBOL connection request info instance.

Methods

Method Summary
boolean equals(Object obj)
void setGuid(String guid)

Set the guid.

boolean getStatefulSession()

Get the stateful session.

String getGuid()

Get the guid.

String getUser()

Get the user name.

String getPassword()

Get the password.

String getRealm()

Get the realm.

int hashCode()

Hash code for the connection request info instance.

int getUsage()

Get the usage.

Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface javax.resource.spi. ConnectionRequestInfo
equals, hashCode

Field Detail

USE_USERPWD
public static final int USE_USERPWD

See Also:

Constant Field Values

Constructor Detail

CobolConnectionRequestInfo
public CobolConnectionRequestInfo()

Create a CobolConnectionRequestInfo instance.

CobolConnectionRequestInfo
public CobolConnectionRequestInfo(boolean sessType)

Create a CobolConnectionRequestInfo instance.

CobolConnectionRequestInfo
public CobolConnectionRequestInfo(String user,
				                        String password,
				                        String realm, 
                                  boolean sessType)
Parameters:
user The user ID.
password The password that corresponds to the user ID.
realm The realm.

Method Detail

equals
public boolean equals (Object obj)

Is this object equal to obj.

Specified by:
equals in interface ConnectionRequestInfo
Parameters:
obj The other obj.
Returns:
setGuid
public void setGuid(String guid)

Set the guid.

getStatefulSession
public boolean getStatefulSession()

Get stateful session.

getGuid
public String getGuid()

Get the guid.

Returns:
The guid.
getUser
public String getUser()

Get the user name.

Returns:
The user name.
getPassword
public String getPassword()

Get the password.

Returns:
The password.
getRealm
public String getRealm()

Get the realm.

Returns:
The realm.
hashCode
public int hashCode()

Hash code for the connection request info instance.

Specified by:
hashCode in interface ConnectionRequestInfo
Returns:
The hash code.
getUsage
public int getUsage()

Get the usage.

Returns:
The usage.
Previous Topic Next topic Print topic