|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ibm.jtopenlite.HostServerConnection
public abstract class HostServerConnection
Represents a TCP/IP socket connection to an IBM i Host Server job. All HostServerConnections have associated system information provided via the SystemInfo class.
| Nested Class Summary | |
|---|---|
protected static class |
HostServerConnection.HostInputStream
|
protected static class |
HostServerConnection.HostOutputStream
|
| Field Summary | |
|---|---|
protected HostServerConnection.HostInputStream |
in_
|
protected HostServerConnection.HostOutputStream |
out_
|
| Constructor Summary | |
|---|---|
protected |
HostServerConnection(SystemInfo info,
String user,
String jobName,
Socket socket,
HostServerConnection.HostInputStream in,
HostServerConnection.HostOutputStream out)
|
| Method Summary | |
|---|---|
void |
close()
Sends an "end job" datastream (if supported) and closes the underlying socket. |
protected static String |
connect(SystemInfo info,
HostServerConnection.HostOutputStream dout,
HostServerConnection.HostInputStream din,
int serverID,
String user,
String password)
|
protected void |
finalize()
|
protected static byte[] |
getEncryptedPassword(byte[] userBytes,
byte[] passwordBytes,
byte[] clientSeed,
byte[] serverSeed,
int passwordLevel)
|
SystemInfo |
getInfo()
Returns the system information associated with this connection. |
String |
getJobName()
Returns the host server job string for the job that is connected to this connection. |
String |
getUser()
Returns the currently authenticated user of this connection. |
boolean |
isClosed()
Returns true if close() has been called on this connection. |
boolean |
isDatastreamDebug()
Returns true if datastream debugging is currently enabled. |
static boolean |
isDefaultDatastreamDebug()
Returns true if debugging is enabled by default for all HostServerConnection datastreams. |
protected abstract void |
sendEndJobRequest()
|
void |
setDatastreamDebug(boolean debug)
If debug is true, enables datastream debugging for this connection. |
protected static void |
writePadEBCDIC(String s,
int len,
HostServerConnection.HostOutputStream out)
|
protected static void |
writePadEBCDIC10(String s,
HostServerConnection.HostOutputStream out)
|
protected static void |
writeStringToUnicodeBytes(String s,
HostServerConnection.HostOutputStream out)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final HostServerConnection.HostInputStream in_
protected final HostServerConnection.HostOutputStream out_
| Constructor Detail |
|---|
protected HostServerConnection(SystemInfo info,
String user,
String jobName,
Socket socket,
HostServerConnection.HostInputStream in,
HostServerConnection.HostOutputStream out)
| Method Detail |
|---|
public static boolean isDefaultDatastreamDebug()
public boolean isDatastreamDebug()
public void setDatastreamDebug(boolean debug)
public final void close()
throws IOException
close in interface ConnectionIOException
protected abstract void sendEndJobRequest()
throws IOException
IOException
protected final void finalize()
throws Throwable
finalize in class ObjectThrowablepublic final boolean isClosed()
isClosed in interface Connectionpublic final SystemInfo getInfo()
public final String getUser()
getUser in interface Connectionpublic final String getJobName()
getJobName in interface Connection
protected static byte[] getEncryptedPassword(byte[] userBytes,
byte[] passwordBytes,
byte[] clientSeed,
byte[] serverSeed,
int passwordLevel)
throws IOException
IOException
protected static String connect(SystemInfo info,
HostServerConnection.HostOutputStream dout,
HostServerConnection.HostInputStream din,
int serverID,
String user,
String password)
throws IOException
IOException
protected static void writePadEBCDIC10(String s,
HostServerConnection.HostOutputStream out)
throws IOException
IOException
protected static void writePadEBCDIC(String s,
int len,
HostServerConnection.HostOutputStream out)
throws IOException
IOException
protected static void writeStringToUnicodeBytes(String s,
HostServerConnection.HostOutputStream out)
throws IOException
IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||