public class Application extends API
com.ibm.cics.server.API
for general restrictions on using the JCICS API.
Modifier and Type | Class and Description |
---|---|
static class |
Application.MatchStyle
The style of matching that will be used when invoking an application.
|
Constructor and Description |
---|
Application(java.lang.String operation,
java.lang.String application) |
Application(java.lang.String operation,
java.lang.String application,
int majorVersion,
int minorVersion,
Application.MatchStyle match) |
Application(java.lang.String operation,
java.lang.String application,
java.lang.String platform) |
Application(java.lang.String operation,
java.lang.String application,
java.lang.String platform,
int majorVersion,
int minorVersion,
Application.MatchStyle match) |
Application(java.lang.String operation,
java.lang.String application,
java.lang.String platform,
Version version,
Application.MatchStyle match) |
Application(java.lang.String operation,
java.lang.String application,
Version version,
Application.MatchStyle match) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getApplication() |
Application.MatchStyle |
getMatch() |
java.lang.String |
getOperation() |
java.lang.String |
getPlatform() |
Version |
getVersion() |
void |
invoke()
Invoke the defined application passing no data.
|
void |
invoke(byte[] commarea)
Invoke the defined application passing a commarea.
|
void |
invoke(Channel channel)
Invoke the defined application passing a
Channel . |
void |
setApplication(java.lang.String application) |
void |
setMatch(Application.MatchStyle match) |
void |
setOperation(java.lang.String operation) |
void |
setPlatform(java.lang.String platform) |
void |
setVersion(Version version) |
public Application(java.lang.String operation, java.lang.String application, java.lang.String platform, Version version, Application.MatchStyle match)
operation
- The operation name for the context. Max 64 characters long.application
- The application name for the context. Max 64 characters long.platform
- The platform name for the context. Max 64 characters long.version
- The Version
of the application.match
- The type of matching that will be done when invoking the application.java.lang.IllegalArgumentException
- Caused by a string > 64 characters, null fields or using MatchStyle.NONE and specifying a version.public Application(java.lang.String operation, java.lang.String application, Version version, Application.MatchStyle match)
operation
- The operation name for the context. Max 64 characters long.application
- The application name for the context. Max 64 characters long.version
- The Version
of the application.match
- The type of matching that will be done when invoking the application.java.lang.IllegalArgumentException
- Caused by a string > 64 characters, null fields or using MatchStyle.NONE and specifying a version.public Application(java.lang.String operation, java.lang.String application)
operation
- The operation name for the context. Max 64 characters long.application
- The application name for the context. Max 64 characters long.java.lang.IllegalArgumentException
- Caused by a string > 64 characters.public Application(java.lang.String operation, java.lang.String application, java.lang.String platform)
operation
- The operation name for the context. Max 64 characters long.application
- The application name for the context. Max 64 characters long.platform
- The platform name for the context. Max 64 characters long.java.lang.IllegalArgumentException
- Caused by a string > 64 characters.public Application(java.lang.String operation, java.lang.String application, java.lang.String platform, int majorVersion, int minorVersion, Application.MatchStyle match)
operation
- The operation name for the context. Max 64 characters long.application
- The application name for the context. Max 64 characters long.platform
- The platform name for the context. Max 64 characters long.majorVersion
- The major version of the application.minorVersion
- The minor version of the application.match
- The type of matching that will be done when invoking the application.java.lang.IllegalArgumentException
- Caused by a string > 64 characters, null fields or using MatchStyle.NONE and specifying a version.public Application(java.lang.String operation, java.lang.String application, int majorVersion, int minorVersion, Application.MatchStyle match)
operation
- The operation name for the context. Max 64 characters long.application
- The application name for the context. Max 64 characters long.majorVersion
- The major version of the application.minorVersion
- The minor version of the application.match
- The type of matching that will be done when invoking the application.java.lang.IllegalArgumentException
- Caused by a string > 64 characters, null fields or using MatchStyle.NONE and specifying a version.public java.lang.String getOperation()
public java.lang.String getApplication()
public java.lang.String getPlatform()
public Version getVersion()
Version
of the application.public void setVersion(Version version)
version
- Set the Version
of the application.public Application.MatchStyle getMatch()
MatchStyle
of the application.public void setMatch(Application.MatchStyle match)
match
- Set the MatchStyle
of the application.public void setOperation(java.lang.String operation)
operation
- Set the operation name of the applicationpublic void setApplication(java.lang.String application)
application
- Set the application name of the applicationpublic void setPlatform(java.lang.String platform)
platform
- Set the platform name of the applicationpublic boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Object.equals(java.lang.Object)
public void invoke() throws InvalidRequestException, ApplicationNotFoundException
InvalidRequestException
- A parameter that was passed was invalid.ApplicationNotFoundException
- The application could not be found.public void invoke(Channel channel) throws InvalidRequestException, ApplicationNotFoundException
Channel
.channel
- The channel containing the data to pass.InvalidRequestException
- A parameter that was passed was invalid.ApplicationNotFoundException
- The application could not be found.public void invoke(byte[] commarea) throws InvalidRequestException, ApplicationNotFoundException
commarea
- The data to pass to the application.InvalidRequestException
- A parameter that was passed was invalid.ApplicationNotFoundException
- The application could not be found.