@UriParams public class Jt400Configuration extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Jt400Configuration.Format
Enumeration of supported data formats
|
static class |
Jt400Configuration.MessageAction |
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 IBM i system.
|
Jt400Configuration.Format |
getFormat()
Returns the data format for sending messages.
|
Jt400Configuration.MessageAction |
getMessageAction() |
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 IBM i user.
|
String |
getProcedureName() |
int |
getReadTimeout() |
String |
getSearchKey() |
Jt400Configuration.SearchType |
getSearchType() |
String |
getSystemName()
Returns the name of the IBM i system.
|
Jt400Type |
getType() |
String |
getUserID()
Returns the ID of the IBM i user.
|
boolean |
isGuiAvailable()
Returns whether IBM i prompting is enabled in the environment running Camel.
|
boolean |
isKeyed() |
boolean |
isSecured() |
boolean |
isSendingReply() |
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 IBM i system.
|
void |
setFieldsLength(String fieldsLength) |
void |
setFormat(Jt400Configuration.Format format)
Sets the data format for sending messages.
|
void |
setGuiAvailable(boolean guiAvailable)
Sets whether IBM i prompting is enabled in the environment running Camel.
|
void |
setKeyed(boolean keyed)
Whether to use keyed or non-keyed data queues.
|
void |
setMessageAction(Jt400Configuration.MessageAction messageAction)
Action to be taken on messages when read from a message queue.
|
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 IBM i program definition.
|
void |
setPassword(String password) |
void |
setProcedureName(String procedureName)
Procedure name from a service program to call
|
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 IBM i are secured with SSL.
|
void |
setSendingReply(boolean sendingReply)
If true, the consumer endpoint will set the Jt400Constants.MESSAGE_REPLYTO_KEY header of the camel message for
any IBM i inquiry messages received.
|
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
URISyntaxExceptionpublic 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 String getProcedureName()
public void setProcedureName(String procedureName)
public Jt400Configuration.MessageAction getMessageAction()
public void setMessageAction(Jt400Configuration.MessageAction messageAction)
public boolean isSendingReply()
public void setSendingReply(boolean sendingReply)
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