public class GXCreateSessionRequest extends GXAbstractSessionConnectionRequest
Constructor and Description |
---|
GXCreateSessionRequest() |
GXCreateSessionRequest(GXIApplicationServerContext serverContext,
String applicationName)
Constructor for local connection to ApplinX Server.
|
GXCreateSessionRequest(String serverURL,
String applicationName,
String sessionID,
String password,
String sessionDescription,
String hostService)
Constructor for all parameters.
|
GXCreateSessionRequest(String serverURL,
String applicationName,
String sessionID,
String password,
String sessionDescription,
String hostSessionId,
String hostSessionPassword)
Constructor for all parameters besides host service.
|
Modifier and Type | Method and Description |
---|---|
String |
getConnectionPool() |
String |
getHostNewPassword() |
String |
getHostPassword() |
String |
getHostService()
Deprecated.
@see
getConnectionPool() |
String |
getHostUserName() |
String |
getSessionDescription() |
boolean |
isFailOnWarning() |
void |
readExternal(ObjectInput in) |
void |
setConnectionPool(String pool)
/**
Set the session to use a predefined connection pool.
|
void |
setFailOnWarning(boolean failOnWarning)
Set whether to throw an exception as for error on connection warnings.
|
void |
setHostNewPassword(String pwd)
Sets a password that will be used to replace the current host password.
|
void |
setHostPassword(String pwd)
Sets a password that will be used to connect to the host.
|
void |
setHostUserName(String id)
Sets a user ID that will be used to connect to the host.
|
void |
setSessionDescription(String description)
Set the session description.
|
void |
setUseHostService(String serviceName)
Deprecated.
|
void |
writeExternal(ObjectOutput out) |
getApplicationName, getClientId, getServerContext, getServerURL, getSessionID, getSessionPassword, setApplicationName, setClientId, setServerContext, setServerURL, setSessionID, setSessionPassword
addVariable, addVariable, addVariableArray, clone, equals, getVariables, hashCode, setVariables
public GXCreateSessionRequest()
public GXCreateSessionRequest(GXIApplicationServerContext serverContext, String applicationName)
serverContext
- context of ApplinX server.applicationName
- name of a valid application in ApplinX server (at
the given URL).public GXCreateSessionRequest(String serverURL, String applicationName, String sessionID, String password, String sessionDescription, String hostSessionId, String hostSessionPassword)
serverURL
- URL of ApplinX server.applicationName
- name of a valid application in ApplinX server (at
the given URL).sessionID
- ID for the session that will be created on ApplinX server.password
- password for the connection between the base object and ApplinX
server.sessionDescription
- description string for the session. It will appear in
the sessions list in the Administrator.hostSessionId
- host connection username. Relevant for SSH or Natural UNIX hosts.hostSessionPassword
- host connection password. Relevant for SSH or Natural UNIX hosts.public GXCreateSessionRequest(String serverURL, String applicationName, String sessionID, String password, String sessionDescription, String hostService)
serverURL
- URL of ApplinX server.applicationName
- name of a valid application in ApplinX server (at
the given URL).sessionID
- ID for the session that will be created on ApplinX server.password
- password for the connection between the base object and ApplinX
server.sessionDescription
- description string for the session. It will appear in
the sessions list in the Administrator.hostService
- connect to a connection from a pool of a host service.public void setSessionDescription(String description)
description
- the desciption of this sessionpublic String getSessionDescription()
public void setUseHostService(String serviceName)
setConnectionPool(String)
serviceName
- the host service to usepublic void setConnectionPool(String pool)
pool
- the connection pool to usepublic String getHostService()
getConnectionPool()
null
if no service was defined.public String getConnectionPool()
null
if no service was defined.public String getHostUserName()
setHostUserName(String)
public String getHostPassword()
setHostUserName(String)
public String getHostNewPassword()
setHostNewPassword(String)
public void setHostUserName(String id)
id
- The user ID for the connection.public void setHostPassword(String pwd)
pwd
- The password for the connectionsetHostUserName(String)
public void setHostNewPassword(String pwd)
pwd
- The new passwordsetHostUserName(String)
public boolean isFailOnWarning()
public void setFailOnWarning(boolean failOnWarning)
false
.public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
readExternal
in class GXAbstractSessionConnectionRequest
IOException
ClassNotFoundException
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class GXAbstractSessionConnectionRequest
IOException
Copyright 2021 Software AG. All rights reserved. Use is subject to license terms.