@UriParams public class Jt400Configuration extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Jt400Configuration.Format
Enumeration of supported data formats
|
static class |
Jt400Configuration.SearchType
SearchTypes for reading from Keyed Data Queues
|
Constructor and Description |
---|
Jt400Configuration(String endpointUri,
com.ibm.as400.access.AS400ConnectionPool connectionPool) |
Modifier and Type | Method and Description |
---|---|
int |
getCcsid() |
com.ibm.as400.access.AS400 |
getConnection()
Obtains an
AS400 object that connects to this endpoint. |
int |
getCssid()
Returns the CCSID to use for the connection with the AS/400 system.
|
Jt400Configuration.Format |
getFormat()
Returns the data format for sending messages.
|
String |
getObjectPath()
Returns the fully qualified integrated file system path name of the
target object of this endpoint.
|
Integer[] |
getOutputFieldsIdxArray() |
Integer[] |
getOutputFieldsLengthArray() |
String |
getPassword()
Returns the password of the AS/400 user.
|
int |
getReadTimeout() |
String |
getSearchKey() |
Jt400Configuration.SearchType |
getSearchType() |
String |
getSystemName()
Returns the name of the AS/400 system.
|
Jt400Type |
getType() |
String |
getUserID()
Returns the ID of the AS/400 user.
|
boolean |
isGuiAvailable()
Returns whether AS/400 prompting is enabled in the environment running
Camel.
|
boolean |
isKeyed() |
boolean |
isSecured() |
void |
releaseConnection(com.ibm.as400.access.AS400 connection)
Releases a previously obtained
AS400 object from use. |
void |
setCcsid(int ccsid)
Sets the CCSID to use for the connection with the AS/400 system.
|
void |
setFieldsLength(String fieldsLength) |
void |
setFormat(Jt400Configuration.Format format)
Sets the data format for sending messages.
|
void |
setGuiAvailable(boolean guiAvailable)
Sets whether AS/400 prompting is enabled in the environment running
Camel.
|
void |
setKeyed(boolean keyed)
Whether to use keyed or non-keyed data queues.
|
void |
setObjectPath(String objectPath) |
void |
setOutputFieldsIdx(String outputFieldsIdx) |
void |
setOutputFieldsIdxArray(Integer[] outputFieldsIdxArray)
Specifies which fields (program parameters) are output parameters.
|
void |
setOutputFieldsLengthArray(Integer[] outputFieldsLengthArray)
Specifies the fields (program parameters) length as in the AS/400 program definition.
|
void |
setPassword(String password) |
void |
setReadTimeout(int readTimeout)
Timeout in millis the consumer will wait while trying to read a new message of the data queue.
|
void |
setSearchKey(String searchKey)
Search key for keyed data queues.
|
void |
setSearchType(Jt400Configuration.SearchType searchType)
Search type such as EQ for equal etc.
|
void |
setSecured(boolean secured)
Whether connections to AS/400 are secured with SSL.
|
void |
setSystemName(String systemName) |
void |
setType(Jt400Type type)
Whether to work with data queues or remote program call
|
void |
setUserID(String userID) |
public Jt400Configuration(String endpointUri, com.ibm.as400.access.AS400ConnectionPool connectionPool) throws URISyntaxException
URISyntaxException
public Jt400Type getType()
public void setType(Jt400Type type)
public String getSystemName()
public void setSystemName(String systemName)
public String getUserID()
public void setUserID(String userID)
public String getPassword()
public void setPassword(String password)
public String getObjectPath()
public void setObjectPath(String objectPath)
public int getCssid()
public void setCcsid(int ccsid)
public Jt400Configuration.Format getFormat()
public void setFormat(Jt400Configuration.Format format)
public boolean isGuiAvailable()
public void setGuiAvailable(boolean guiAvailable)
public int getCcsid()
public boolean isKeyed()
public void setKeyed(boolean keyed)
public String getSearchKey()
public void setSearchKey(String searchKey)
public Jt400Configuration.SearchType getSearchType()
public void setSearchType(Jt400Configuration.SearchType searchType)
public Integer[] getOutputFieldsIdxArray()
public boolean isSecured()
public void setSecured(boolean secured)
public void setOutputFieldsIdxArray(Integer[] outputFieldsIdxArray)
public Integer[] getOutputFieldsLengthArray()
public void setOutputFieldsLengthArray(Integer[] outputFieldsLengthArray)
public int getReadTimeout()
public void setReadTimeout(int readTimeout)
public void setOutputFieldsIdx(String outputFieldsIdx)
public void setFieldsLength(String fieldsLength)
public com.ibm.as400.access.AS400 getConnection()
AS400
object that connects to this endpoint. Since
these objects represent limited resources, clients have the
responsibility of releasing them
when
done.AS400
object that connects to this endpointpublic void releaseConnection(com.ibm.as400.access.AS400 connection)
AS400
object from use.connection
- a previously obtained AS400
object to releaseApache Camel